Swapping Elements
When motion elements have the same Layout ID, an automatic layout animation will happen between them when you add one element and remove another.Without animation With Layout ID animation The background color animationThis will be the end result: … but let’s first look at a static version of this example.Without animationThere’s a main Container div […]