DeltaFrog Posted February 19, 2022 Share Posted February 19, 2022 Howdy everybody! Aiming to mimic a cool website feature. The website below has a bubble animation that follows the mouse and inverts the color of everything under it. Example here: https://silviasguotti.design/ Can anyone point me towards how to do this in GSAP? How do I invert color? Some sort of blending mode? Link to comment Share on other sites More sharing options...
Solution akapowl Posted February 19, 2022 Solution Share Posted February 19, 2022 Hello @DeltaFrog When you inspect it in dev-tools, you'll see it does use a mix-blend-mode: difference Inspecting it, you'll also see, that they are using multiple span elements for the different bubbles, so it's not canvas or something else. Here's a basic example (for that mix-blend mode) based on the example in the quickSetter() documentation. Happy tweening! See the Pen LYOdYXK by akapowl (@akapowl) on CodePen 2 1 Link to comment Share on other sites More sharing options...
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