Jump to content
Search Community

Backdrop Filter blur not working with rotating elements

Giustotech

Go to solution Solved by Rodrigo,

Recommended Posts

Posted

Hello everyone,
basically I'm trying to create a glassmorphism card that appears while scrolling, as you can see in the code pen there is a circle, when you scroll the card show with a rotating animation, the problem is that during the animation the backdrop blur effect doesnt work but it works only when the animation finish

What I've tried:
-removing autoAlpha: 0

-adding position relative instead of static to make z-index work

-adding backdropFilter to gsap animation

 

any kind of help would be awesome thank you all!

See the Pen PoLdvNa by Giusto-the-typescripter (@Giusto-the-typescripter) on CodePen.

  • Solution
Posted

Hi @Giustotech and welcome to the GSAP Forums!

 

I'm far from being an expert in CSS filters, normally I stay away from filters because they're expensive and I'm a performance freak ?‍?

 

But this seems to work the way you expect:

See the Pen eYXLqNL by GreenSock (@GreenSock) on CodePen.

 

Hopefully this helps.

Happy Tweening!

  • Like 1
Posted
On 2/9/2024 at 7:24 PM, Rodrigo said:

Hi @Giustotech and welcome to the GSAP Forums!

 

I'm far from being an expert in CSS filters, normally I stay away from filters because they're expensive and I'm a performance freak ?‍?

 

But this seems to work the way you expect:

 

 

 

Hopefully this helps.

Happy Tweening!

This community is the best and so are you! Thank you a lot I couldn't figure out how to fix it!! Thank you for your time and your help! 

  • Like 2

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