Search

4. Repeat

With a repeat of Infinity, the animation will never end.

⚡️ Some Examples – 04 – Repeat
open in CodeSandbox
export function Example() {
    return (
        <motion.div
            style={{
                width: 150,
                height: 150,
                borderRadius: 30,
                backgroundColor: "#fff"
            }}
            animate={{ rotate: 360 }}
            transition={{ ease: "linear", duration: 2, repeat: Infinity }}
        />
    );
}

Leave a Reply

plugins premium WordPress
Scroll to Top