Fullpage.js Animation With OnLeave And AfterLoad
i'm using fullpage.js and i'd like to animate 2 images as soon as i get to the second section. looks like i can't make it work with css only, so i picked up some js code from the d
Solution 1:
Three things:
If you post a jsfiddle, make sure it works... because it doesn't at all.
You are initializing fullPage.js twice in your site. Inside
myjs.js
and outside it..You can create animations with just css if you want. Check this video.
If you want the images to dissappear again you'll have to tell fullPage.js to do it. It won't magically happen.
Just use the onLeave
again and say something like "whenever the next slide is not section 2, then hide my images".
if(nextIndex != 2){
//hide images
}
Post a Comment for "Fullpage.js Animation With OnLeave And AfterLoad"