Jump to content
Search Community

Animating svg drop shadow

jp_uk81 test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi guys,

I'm trying to animate this svg to give the effect as it lifted off the background. In this pen I tried to animate the scale and the drop shadow and the animation is triggered with scrollmagic. 

 

I have set the initial drop shadow in the CSS as advised by Dipscom here but the drop shadow doesn't animate.

 

What am I doing wrong?

 

If this effect can't be achieved this way is there another way to approach it?

 

thank you

 

See the Pen gByBvR by Jp_uk (@Jp_uk) on CodePen

Link to comment
Share on other sites

  • 2 weeks later...

Hi Guys, 

the above work well on the codepen but on my site the animation is really jerky, in particular when you click the down arrow to scroll down to the section with the animate V. While the window is scrolling it stops for a moment and then carries on to the bottom. 

What could cause this?

Thank you

 

Link to comment
Share on other sites

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...