Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const activateScrollReveal = () => {
const ScrollReveal = require('scrollreveal').default
const sr = ScrollReveal({ duration: 800 }) // eslint-disable-line no-undef
sr.reveal('.reveal')
}
const activateScrollReveal = () => {
const ScrollReveal = require('scrollreveal').default
const sr = ScrollReveal({ duration: 800 }) // eslint-disable-line no-undef
sr.reveal('.reveal')
}
const activateScrollReveal = () => {
const ScrollReveal = require('scrollreveal').default
const sr = ScrollReveal({ duration: 800 }) // eslint-disable-line no-undef
sr.reveal('.reveal')
}
const sr = require('scrollreveal').default();
function generateOptions(defaultOptions, bindingValue, bindingModifiers) {
const options = Object.assign({}, defaultOptions, bindingValue);
if (bindingModifiers) {
if (bindingModifiers.reset) {
options.reset = true;
}
if (bindingModifiers.nomobile) {
options.mobile = false;
}
if (bindingModifiers.nodesktop) {
options.desktop = false;
}
mounted() {
if (this.animation) {
const ScrollReveal = require("scrollreveal").default
ScrollReveal().reveal(this.$el, {
container: this.animationContainer,
duration: this.animationDuration
})
}
},
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var sr = require('scrollreveal').default();
function generateOptions(defaultOptions, bindingValue, bindingModifiers) {
var options = _extends({}, defaultOptions, bindingValue);
if (bindingModifiers) {
if (bindingModifiers.reset) {
options.reset = true;
}
if (bindingModifiers.nomobile) {
options.mobile = false;
}
if (bindingModifiers.nodesktop) {
options.desktop = false;
}