Skip to content

ppmpreetham/gsap-animations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

GSAP Animations

Cool GSAP animations that I use

Center Fall down

Makes the center element fall down first, then the rest of the elements fall down in a staggered manner

Works with a Stagger of elements

Center Fall down

Code

gsap.to(".stagger-box", {
    y:25,
    duration:1,
    stagger:0.5,
    ease:"bounce.out",
    stagger: {
        ease: "back.out",
      amount: 1,
      from: "center",
    }
});

Center Float

Makes the center element float up first, then the rest of the elements float too.

Works with a Stagger of elements Could be implemented when selection

Center Fall down

Code

gsap.to(".stagger-box", {
    y:-25,
    duration:1,
    stagger:0.5,
    ease:"back.out",
    repeat: -1,
    yoyo: true,
    stagger: {
      ease: "back.out",
      amount: 1,
      from: "center",
    }
});

About

Cool GSAP animations that I use

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published