set limit to rotate #1898
Replies: 4 comments
-
Have you tried setting |
Beta Was this translation helpful? Give feedback.
-
yes, i tried
but i think when we want to play animation with scroll, this function doesn't work ! |
Beta Was this translation helpful? Give feedback.
-
The following page has an example of how to interpolate between the two rotations you desire |
Beta Was this translation helpful? Give feedback.
-
@mesmaili151 If you are animating theta, phi and radius and you want the animation to stop before the scroll gets to 1, then you'll need to limit all three to the values your calc statements give when page scroll is at the value you want the animation to stop at. It'll be something along the lines of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i have a animation thats starts with scrolling.
camera-orbit="calc(-300rad + env(window-scroll-y) * -6rad) calc(80deg + env(window-scroll-y) * 0deg) calc(3m - env(window-scroll-y) * 1.5m)"
How can i set a limit for rotating the animation with scrolling?
i mean i want to rotate the animation with scroll just for 20deg and after that the animation stops.
Beta Was this translation helpful? Give feedback.
All reactions