JayShukla Posted July 14, 2022 Share Posted July 14, 2022 Hello, I take this example from the scrolltrigger demo. I'm doing somthing deffrent with the example. I'm trying to manage a scrolltrigger here and the animation should only work backwards or when I scrollup. The header should be at the top without following the screen when we scroll down. I console " self.direction " -1 will come when I go scrollUp. But don't know how to implement that only for backwards. onUpdate: (self) => { self.direction === -1 ? showAnim.play() : showAnim.reverse() } See the Pen BarQdJq by henrymanektech (@henrymanektech) on CodePen Link to comment Share on other sites More sharing options...
Carl Posted July 14, 2022 Share Posted July 14, 2022 It sounds like you're trying to do what @Mamboleoo tweeted about yesterday Give that a shot 3 1 Link to comment Share on other sites More sharing options...
JayShukla Posted July 15, 2022 Author Share Posted July 15, 2022 Thank you. Sir @Carl 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