Layout Animations » Inline Styling Versus CSS Classes
Inline Styling Versus CSS Classes
You can trigger layout animations by changing a motion element’s inline CSS styling or by giving it a different CSS class. But you might need to make some adjustments when using classes.Inline stylingWe’re animating both the size and position of a motion.div using layout.Here’s a version of the animation with the CSS properties written inline, […]