MotionConfig

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

<script>
    import { MotionConfig } from 'svelte-motion'
</script>

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

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

/ REPL

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.
B
C