Jump to content
Search Community

Cinema spotlight

sugo 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

Hello

 

I just started out with GreenSock for a one page scroll site, and I have to say, i love it! 

I'm having a little trouble with something though.

 

I'm trying to make a cinema light, or searchlight if that's a better term. The spotlight has to move around with the mouse and the gradient should stretch/rotate and follow it.

 

I think this demo will make things more clear:

See the Pen shrDl by sugomi (@sugomi) on CodePen

 

anyone can help me with this?

Thx in advance

Link to comment
Share on other sites

Hi and Welcome to the GreenSock forums,

 

Glad to hear you are having fun and success with the GSAP tools.

Also, thanks for the demo! Great to have first-time posters be so helpful.

 

Unfortunately, figuring out all the calculations to redraw or resize that gradient goes a bit beyond the support we give to help people understand the GSAP API.

 

There are quite a few sharp developers floating around here, so perhaps it will be easy or a fun challenge for one of them. 

 

There's nothing wrong with asking its just that this isn't the sort of thing I can knock out quickly or easily.

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