Jump to content
Search Community

Can gsap update offset() by ticker()?

AsKadir
Moderator Tag

Recommended Posts

Posted

Hey!

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.

Posted

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?

ZachSaucier
Posted
2 minutes ago, AslanGoi said:

Can I delete my post?

Nope - it might be helpful to others later on!

  • Like 1

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