to 代码示例
import { animate } from 'animejs';
animate('.square', {
x: {
to: '16rem', // From 0px to 16rem
ease: 'outCubic',
},
rotate: {
to: '.75turn', // From 0turn to .75turn
ease: 'inOutQuad'
},
});
<div class="large row">
<div class="square"></div>
</div>