Vishal__nce Posted February 16 Posted February 16 Hi i am unable to one animation like all imag in the give scale to 1 then simultaneously its border grow to 2px with given color in tailwid css . I treid somehow it did not work . please help . Please help me my some code https://stackblitz.com/edit/stackblitz-starters-tcbfhkfq?file=components%2FCourses.tsx I use gsap hook . can you please help
Rodrigo Posted February 16 Posted February 16 Hi, Your demo doesn't have any GSAP related code in it and GSAP is not even installed 🤷♂️ https://stackblitz.com/edit/stackblitz-starters-3dvja7jr?file=package.json
Vishal__nce Posted February 17 Author Posted February 17 Oh sorry I forgot to stackblitz i mostly code in va code i think I upload.wrong code i will update soon
Vishal__nce Posted February 17 Author Posted February 17 hi this is update link https://stackblitz.com/edit/stackblitz-starters-tcbfhkfq?file=components%2FCourses.tsx . Once again i am explaing animation i wan to achieve a animation where i want to increase the only image size not the outer div also i want to achieve when it grow its border also increases in its maintained colour black or red
Solution Rodrigo Posted February 17 Solution Posted February 17 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 February 17 Author Posted February 17 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now