UNPKG

anim8-core

Version:

Custom JavaScript animation library with modular effects

19 lines (15 loc) 428 B
// src/effects/rotateScale.js import { animate } from '../core/animate.js'; import { easeOutExpo } from '../easings/easeOutExpo.js'; import { resolveElement } from '../utils/resolveElement.js'; export function rotateScale(target) { const el = resolveElement(target); if (!el) return; animate(el, { rotate: [0, 360], scale: [0.5, 1], }, { duration: 1000, easing: easeOutExpo, }); }