Hi
In my copy I can see this code around line 520:
- Code: Select all
var config = {
complete: function(el) {
el = jQuery(el);
if(el.attr('data-count')) {
startCounting(el, el.attr('data-count'));
}
if(el.hasClass('gk-add-rotate-animation')) {
el.addClass('gk-rotate-animation');
}
if(el.hasClass('bar')) {
el.addClass('gk-loaded');
}
if(el.parent().hasClass('gkNspPM-NewsSlider')) {
el.attr('style', '');
el.parent().addClass('gk-run-animation');
}
if(el.hasClass('gk-border-anim')) {
el.addClass('gk-anim-complete');
}
},
mobile: true
};
window.sr = new scrollReveal(config);
and after adding the vFactor it should looks like:
- Code: Select all
var config = {
complete: function(el) {
el = jQuery(el);
if(el.attr('data-count')) {
startCounting(el, el.attr('data-count'));
}
if(el.hasClass('gk-add-rotate-animation')) {
el.addClass('gk-rotate-animation');
}
if(el.hasClass('bar')) {
el.addClass('gk-loaded');
}
if(el.parent().hasClass('gkNspPM-NewsSlider')) {
el.attr('style', '');
el.parent().addClass('gk-run-animation');
}
if(el.hasClass('gk-border-anim')) {
el.addClass('gk-anim-complete');
}
},
mobile: true,
vFactor: 0.90
};
window.sr = new scrollReveal(config);
You are probably using a different version of template, but this code should be there, just maybe in a different place.