Calculate spring physics for natural, realistic animations
Higher mass = heavier, slower movement
Higher stiffness = tighter spring, faster movement
Higher damping = more friction, less bounce
// Framer Motion
import { motion } from 'framer-motion';
<motion.div
initial={{ scale: 0 }}
animate={{ scale: 1 }}
transition={{
type: "spring",
mass: 1,
stiffness: 180,
damping: 12,
velocity: 0
}}
>
Content
</motion.div>M:1 S:100 D:26M:1 S:180 D:12M:1 S:400 D:28M:1 S:50 D:20M:1 S:30 D:50M:1 S:300 D:10M:0.5 S:500 D:30M:2 S:200 D:8M:1 S:100 D:20M:1 S:300 D:30Help others discover this tool!