Search

7. While tap

7. While tap

You’ve heard of whileHover? Here’s whileTap.

⚡️ Some Examples – 07 – While tap
open in CodeSandbox
export function Example() {
    return (
        <motion.div
            style={{
                width: 150,
                height: 150,
                borderRadius: 30,
                backgroundColor: "#fff",
                cursor: "pointer"
            }}
            whileTap={{ rotate: 90, scale: 0.75 }}
        />
    );
}

Leave a Reply

plugins premium WordPress
Scroll to Top