$('.text').parent().parent().addClass('txt');
$('.txt *').wrap('<div class="mytxt"></div>');
$(function() {
$('.mytxt')
$(window).scroll(function() {
var scroll = $(window).scrollTop();
var d = 1;
$('.mytxt').each(function(idx, elem){
if(scroll > ($(this).offset().top + $(this).height()) || (scroll + $(window).height()) < $(this).offset().top) {
$(this).removeClass('wow fadeInUp').removeAttr('data-wow-delay').attr('style', 'visibility: hidden');
}else{
$(this).addClass('wow fadeInUp').attr('style', 'visibility: visible');
$(this).attr('data-wow-delay', d + 's');
d += 0.5;
}
var wow = new WOW(
{
boxClass: 'wow', // animated element css class (default is wow)
animateClass: 'animated', // animation css class (default is animated)
offset: 0, // distance to the element when triggering the animation (default is 0)
mobile: true, // trigger animations on mobile devices (default is true)
live: true, // act on asynchronously loaded content (default is true)
callback: function(box) {
// the callback is fired every time an animation is started
// the argument that is passed in is the DOM node being animated
}
}
);
wow.init();
});
});
$(window).trigger('scroll');
});
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.