Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

Follow Mouse

Recommended Posts

Hello everyone, I'm new to gsap. I would like to know if someone can help me make the cursor animations that is on this site : https://14islands.com/

Thanks in advance 🙏

Link to comment
Share on other sites

Hi there Dinho,

We try to keep the forums to specific GSAP questions - From our forum guidelines

On 12/7/2020 at 10:19 PM, GreenSock said:

What topics should be avoided?

As much as we love solving problems, the following types of questions are beyond the scope of what we generally provide here for free:

  • “How do I do this cool effect I saw on a trendy website?” Someone here may point you in the right direction but please don't expect a full tutorial on how to create an effect you saw on a slick web site.

Here's a codepen as a starting point.

Good luck!

See the Pen WNNNBpo by GreenSock (@GreenSock) on CodePen

  • Like 3
Link to comment
Share on other sites

  • 2 weeks later...

Thank you very much Cassie, I will follow the guidline forum in the future, sorry.

  • First, how do I make the ball deform when moving the mouse ?
  • Second, how do I make the border of the red section bounce when the cursor enters above it ?

Here's a codepen that I adjusted :

See the Pen zYdqaQG by DinhoDev (@DinhoDev) on CodePen

Thank you in advance for your answer. 👍


Link to comment
Share on other sites

Hi there Dinho,

Getting a 404 for that pen I'm afraid, could you link it again?

Link to comment
Share on other sites

Hey Dinho,

We're happy to answer GSAP-specific questions, but these are both complex interactions involving a lot of JS logic. I'm afraid we don't have the resources to sculpt custom solutions.

Maybe this thread will help with the 'deforming' side of things though? It's a react solution, but the logic will be the same - get the velocity of the mouse and then skew the element with GSAP.

See the Pen bGRvvOe by blitzve0 (@blitzve0) on CodePen



For the 'bounce' you'd need to look into shape morphing, but again, this is complex. You'll need to track where the mouse is and morph path points depending on where the mouse enters.

Maybe this article will help.


  • Like 2
Link to comment
Share on other sites

Just Added Width Expansion to my codepen above, feel free to adjust the Easing and Duration to match your Needs
(Tranform X Y -50% doesn't seem to be working in this miniviewer, open codepen in another tab for correct display)

See the Pen vYJGPaa by blitzve0 (@blitzve0) on CodePen

  • Like 7
Link to comment
Share on other sites

Thank you very much cassie and blizve0 for your answer, I will see if it can help me and I will get back to you soon

  • Like 1
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.