PinchedElementWrapper
PinchedElementWrapper handles smooth transformations of DOM elements with zoom and translation, with optional transition animations.
Key features
-
Efficient transformations — Uses
requestAnimationFrame
to batch transformations for optimal performance. - Optional transitions — Can apply CSS transitions for smooth animations between transform states.
- Element size tracking — Maintains the element's original dimensions for reference during transformations.