Settings
Layout settings are defined directly in the createLayout() parameters Object.
import { createLayout } from 'animejs';
createLayout('.layout-container', {
┌─────────────────────────────┐
│ children: '.item', │
│ duration: 350, │
│ delay: 0, ├─ Settings
│ ease: 'inOut(3.5)', │
│ properties: ['boxShadow'], │
└─────────────────────────────┘
enterFrom: { opacity: 0 },
leaveTo: { opacity: 0 },
swapAt: { opacity: 0 },
onBegin: () => {},
onUpdate: () => {},
onComplete: () => {},
}).then(() => {});
In this section