Skip to content

Instantly share code, notes, and snippets.

@marushu

marushu/fade-slide.js

Last active Jan 20, 2016
Embed
What would you like to do?
$.when($(introBg).delay(1500).fadeIn(5000, 'easeInOutCubic', function(){
$(this).parent().fadeOut(3000, 'easeInOutCubic');
})).then(function(){
$(".flex-outer").delay(3000).animate({opacity: 1}, 3000, 'easeInOutCubic', function(){
$("#test").delay(2000).animate({opacity: 1});
$("#logo-for-slide").delay(2000).animate({opacity: 1});
});
});
$("#test").on("click", function(){
$(".flex-outer").fadeOut(3000, 'easeInOutCubic');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment