Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var animator = function( timeOut ) {
$( "[name='animation']" ).removeAttr( "class" );
window.setTimeout(
function() {
$( "[name='animation']" ).each(
function() {
var animToBeApplied = $( this ).attr( "animation" );
$( this ).addClass( "animated " + animToBeApplied );
}
);
},
timeOut
);
};
var hideLoader = function() {
window.setTimeout(
function() {
$( ".loading" ).fadeOut();
},
100
);
};
$( document ).ready(
function() {
$( "#projects" ).pagepiling(
{
afterRender: function(){
hideLoader();
animator( 1000 );
},
onLeave: function( index, nextIndex, direction ) {
animator( 500 );
}
}
);
$( "#share" ).jsSocials(
{
showCount: true,
showLabel: true,
shares: [ "twitter", "facebook", "googleplus", "linkedin", "pinterest", "stumbleupon" ]
}
);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment