JamesGrubb Posted August 27, 2020 Share Posted August 27, 2020 Hi all having a little trouble with mask-image syntax. Could someone ha a look please. Many thanks See the Pen OJNmQNa by limitedunlimited (@limitedunlimited) on CodePen Link to comment Share on other sites More sharing options...
JamesGrubb Posted August 27, 2020 Author Share Posted August 27, 2020 BTW Trying to scale the mask Link to comment Share on other sites More sharing options...
JamesGrubb Posted August 27, 2020 Author Share Posted August 27, 2020 have tried `"mask-size": "400%"` Link to comment Share on other sites More sharing options...
elegantseagulls Posted August 27, 2020 Share Posted August 27, 2020 Hi @JamesGrubb, you'll want to animate: gsap.to(nav, { maskSize: '0%', duration: 1 }); 3 Link to comment Share on other sites More sharing options...
JamesGrubb Posted August 27, 2020 Author Share Posted August 27, 2020 Thank you @elegantseagulls Link to comment Share on other sites More sharing options...
elegantseagulls Posted August 27, 2020 Share Posted August 27, 2020 4 minutes ago, JamesGrubb said: Thank you @elegantseagulls No problem! In general, if you're animating a property with a- in it, the gsap object equivalent will be camelCased (border-radius, line-height, background-size, box-shadow, etc). Happy tweening! 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now