Jump to content
Search Community

Mask problemo

smallio 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

Hi All,

 

Attempting a slider here & stuck on two parts. I'd like a mask to cover the slides as seen below. Got it working the first time when you click up however it seems to break after that. Just getting my head around incrementing and decrementing with multiple objects, so any help would be greatly appreciated :) - 

 

See the Pen JyKQGg by tjabbe (@tjabbe) on CodePen

 

A smaller problem is seeing the slide fade out on the side in my version. I guess fixing the mask would stop that problem?

 

Cheers,

Smallio

 

 

P.S. My version is the second one down!

See the Pen yEdQMq?editors=1010 by smallio (@smallio) on CodePen

Link to comment
Share on other sites

On 7/6/2018 at 6:54 PM, PointC said:

Hi @smallio :)

 

Your mask timeline breaks after the first click because its already been played. You can solve that by playing from the beginning of the timeline.

 


maskTL.play(0)

 

Hopefully that helps. Happy tweening.

:)

 

 

Thank's again mate, works perfectly :)

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