Jump to content

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

Can gsap update offset() by ticker()?

Recommended Posts


I have an issue with my offset,

if you mouseover text you will see image reveal and mouse follow.

So everything is great, but for example I have block above whose height can be changed,

so my offset after that will be not right.


Can you give me advice, is there any methods in gsap that can update offset()?

I thought about gsap.ticker(), but not sure is it right direction or not.

See the Pen PoZePyo by ChicagoJostik (@ChicagoJostik) on CodePen

Link to post
Share on other sites

Never mind guys about this.

All should I do, just move variables:

offset = self.offset(),
offsetL = offset.left,
offsetT = offset.top,

inside cursorMove().

😅 Can I delete my post?

Link to post
Share on other sites
2 minutes ago, AslanGoi said:

Can I delete my post?

Nope - it might be helpful to others later on!

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