You can set default transition props for a group of Motion components by wrapping them into a single MotionConfig component:

    import { MotionConfig } from 'svelte-motion'

<MotionConfig transition={{duration:1}}>

Works with layout and animate.

Second Example

In this example the layout is switched between different strategies, flex, grid and float. The speed of all animations is controlled by a single motion control. Based on this tweet


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.