Transition
An example of setting transition options in Motion for Vue.
Source code
<script setup>
import { motion } from "motion-v"
</script>
<template>
<motion.div
class="ball"
:initial="{ opacity: 0, scale: 0.5 }"
:animate="{ opacity: 1, scale: 1 }"
:transition="{
duration: 0.8,
delay: 0.5,
ease: [0, 0.71, 0.2, 1.01]
}"
/>
</template>
<style>
.ball {
width: 200px;
height: 200px;
border-radius: 50%;
background: var(--accent);
}
</style>Related examples
Latest in Vue
Motion+
Unlock all 400+ examples
- Source code for every Plus example.
- Provide examples direct to your agent via Motion's MCP.
- Lifetime access to new examples and APIs.








