Jump to content
Search Community

GSAP and -webkit-mask-position

bigmamainthemud 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

Hey all,


I've been messing with masking to get a shine effect on buttons when mouseover takes place but I can't seem to get GSAP to affect "-webkit-mask-position".

I want to give up a code pen but that wold require a bunch of time which I don't have tonight. Just wondering if anyone has successfully used this before.



Link to comment
Share on other sites

I've never seen that used, sorry. That property doesn't even seem to work in Chrome (unrelated to GSAP). Firefox was okay, though, at least in the demo I saw here: https://developer.mozilla.org/en-US/docs/Web/CSS/mask-position. If you need some help, we'd be happy to take a peek at a codepen demo (perhaps you could just fork the one from that URL?) It'd help to see what kind of values you're trying to apply/animate. It's probably possible using an onUpdate or Modifier or string tween.  

Link to comment
Share on other sites

Thanks for getting back to me, Jack. Actually the mask is rendering fine but I can't move the mask as I would like from JS. I want to put up a Codepen but right now I am under the gun for EOD so I'll have to approach this later tonight or sometime next week. Thanks for getting back to me though - I will post asap.

  • 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.
  • Create New...