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 styling We’re animating both the size and position of a motion.div using layout. Here’s a version of the animation with the CSS […]