Built-in Motion Engine (Beta)
Enabling the Engine
USE_ANIMATE=trueUsing the animate function
animate function<div id="myBox">Hello!</div>
<script>
// Get the element
const box = document.getElementById('myBox');
// Animate it with 'fade-in' over 300ms
animate(box, 'fade-in', 300);
// Or using a selector
// animate('#myBox', 'fade-in', 300);
</script>Adding New Animations
Last updated