Skip to content

Instantly share code, notes, and snippets.

@philcon93
Created September 26, 2016 22:18
Show Gist options
  • Save philcon93/171eb3f1af9c7dda3aac77661234287c to your computer and use it in GitHub Desktop.
Save philcon93/171eb3f1af9c7dda3aac77661234287c to your computer and use it in GitHub Desktop.
fade in content with javascript

Fade In content

JS

$(function () {
$('.row-parent').one('inview', function (event, visible) {
if (visible) {
$('.item-children').each(function (index) {
var item = $(this);
setTimeout(function () {
item.removeClass('hidden');
item.addClass('animated fadeInUp');
}, index * 400);
});
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment