Jump to content
Search Community

toggleActions not working

devin1229 test
Moderator Tag

Recommended Posts

So I was playing around with the 3D banners demo by adding in some text effects.

In my working pen, I added a blur effect that triggers when it's scrolled into view. However, I want the effect to play again (scrub backwards?) when scrolling back up and I can't get that to work with the toggleActions option.

See the Pen WNddBoE by devin1229 (@devin1229) on CodePen

Link to comment
Share on other sites

4 minutes ago, OSUblake said:

Hi devin,

 

toggleActions doesn't work when you have scrub set, and it is reversing, but your scroll start and end are pretty big, so it's reversing when it's out of view. You can see where your triggers are by setting markers: true.

 

 

 

Hmmm... so I turned off scrubbing and turned my markers on and everything appears to be set correctly. There's a start marker at the top of the section likewise for the end. Is there a better way to achieve this effect?

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