myrumpel Posted June 3, 2023 Share Posted June 3, 2023 Hello. I have a task: I need to make an element, which can changes its properties, in dependency from scroll direction. When I scroll to bottom, I need, that the element translates in X for 200% When I scroll to top, the element comes back in default position, like in my example, BUT, in an iPhone it doesn't work. In an iPhone: I started scroll, the element is traslate to right, after scroll, element reset my setting in x position and revert to zero position. Could you tell me, how I can find a solve in this situation. P.S. I`m not sure in my English, and if you don't understand me, I can write it little bit better for a comprehension See the Pen VwEoJQW by myrumpel (@myrumpel) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted June 4, 2023 Share Posted June 4, 2023 Are you maybe just trying to scrub an animation? Like this? See the Pen mdQbJoO?editors=0010 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
myrumpel Posted June 5, 2023 Author Share Posted June 5, 2023 20 hours ago, Cassie said: Are you maybe just trying to scrub an animation? Like this? Good day! I need it for hiding the title, when I scrolling to bottom, so that the button does not overlap the content. It's doesn't he help me)) Anyway, thank you for helping) Link to comment Share on other sites More sharing options...
Cassie Posted June 5, 2023 Share Posted June 5, 2023 Sorry, I don't really understand your question. Maybe you can explain again a little clearer? 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