[BUG] Trouble with rotate
Author: AndrewPixelCreated Apr 7, 2026Updated May 1, 2026
Labelsbug
- I tried animate(elem, { rotate: { from: 90, to: 180} } ; . I cannot use either from or to with rotate without this error:
anime.umd.min.js:7 Uncaught TypeError: s.includes is not a function at It (anime.umd.min.js:7:4450) at new Re (anime.umd.min.js:7:24682) at t.animate (anime.umd.min.js:7:107860)
- animate(elem, { rotate: 90 } and elem has the CSS rotate: 45deg you end up with the CSS rotate: 45deg; and transform: rotate(90deg); So elem is rotated 135deg instead of 90deg.
Source: juliangarnier/anime