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