Skip to content

Animation when changing rotation #246

Closed Answered by willnguyen1312
martabal asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Martin, thanks for your question. When changing the currentRotation value, the library updates the rotate property of the image container. We can apply CSS transition on that element. Something like this should do it:

transition: 0.5s;
Zoom.on.wheel.with.animated.rotation.mov

I attached the demo link for your reference - https://willnguyen1312.github.io/zoom-image/examples/react.html

I hope it does answer your question. Thanks :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by willnguyen1312
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants