Jump to content
Search Community

Spotlight animation

brain_dev test
Moderator Tag

Go to solution Solved by ZachSaucier,

Recommended Posts

Hey guys!

I have a hero image with a city skyline (vector drawing). I want to recreate the bat signal on top of one of the buildings. I'm using an image as the spotlight (could make an SVG as well, whatever works best). I know how to create it in CSS but I'm brand spanking new to gsap so I was wondering if someone could point me in the right direction where I can recreate the same animation using gsap 3. The only way I managed to do it was to use a timeline and change the rotation, x, and y values every 10 degrees lol which is dumb. Any input would help, thanks!

See the Pen vYyKRWa by gabbydiaz (@gabbydiaz) on CodePen

Link to comment
Share on other sites

On 2/9/2021 at 9:25 AM, ZachSaucier said:

Hey brain_dev and welcome to the GreenSock forums.

 

Sorry, but what's your question?  I am not sure which part you're seeking help with. Are you seeking the GSAP equivalent to your CSS animation?

Yes pls, and thanks.

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