Jump to content
Search Community

360 degree rotation of gradient

Jake Snellin test
Moderator Tag

Recommended Posts

Hi there!

 

Hope you're well. I've made a website here https://ecstaticdancebrighton.co.uk/ . The sun is a 3d sphere with a linear gradient rotating 360 degrees on a loop. I made the animation in Spline. It feels a little unnecessary to have a 3d animation for this. I'm using a placeholder image for the 2 to 3 seconds it takes for the animation to fully load. It also glitches from time to time - not appearing at all. I'd ideally like to use gsap for this animation instead and simplify, however I can't seem to wrap my head around the best approach to animate a rotating gradient. I also couldn't find much in the forum about this. Any help pointing me in the right direction would be great. I've tried targeting the linear gradient and animating the stop values, but it's not looking as I'd hope. I can provide a minimal demo of what I've tried so far if helpful? Look forward to hearing from you!

 

Thanks,

Jake

Link to comment
Share on other sites

Hi,

 

Indeed a minimal demo would be ideal. As far as I can tell the gradient animation is being handled by THREEJS, right? You could definitely handle that in GSAP, but it'll depend on how you approach that. Certainly rendering that in WebGL posts the challenge of adapting what particular object you're animating, nothing more, and that shouldn't be to complex neither.

 

Happy Tweening!

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