Jump to content
Search Community

how to set border in animation while array of object

Vishal__nce
Moderator Tag

Go to solution Solved by Rodrigo,

Recommended Posts

Vishal__nce
Posted

Oh sorry I forgot to stackblitz i mostly code in va code i think I upload.wrong code i will update soon 

  • Solution
Posted

Hi,

 

You have the wrong selector in your code:

gsap.fromTo(
  "box",
  { scale: 0.8, opacity: 0 },
  {
    scale: 1,
    opacity: 1,
    duration: 1,
    stagger: 0.1,
    ease: "power2.out",
  }
);

You have "box" that tells GSAP to look for all the <box> elements, you probably want to target the elements with the class box, so it should be:

gsap.fromTo(
  ".box",
  { scale: 0.8, opacity: 0 },
  {
    scale: 1,
    opacity: 1,
    duration: 1,
    stagger: 0.1,
    ease: "power2.out",
  }
);

Hopefully this helps

Happy Tweening!

Vishal__nce
Posted

Hi thank you for your response i also made it correct but can you help me to achieve my other animtion where i have to stop my animation i am unable to do that that is my other gsap form. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...