Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react spring bounce in animation

// Here's a small bounce in animation
// Note: must import useSpring, animated, config from 'react-spring'

var animation = useSpring({
    from: {
        opacity: 0,
        transform: "translateY(100px)",
    },
    to: {
        opacity: 1,
        transform: "translateY(0px)",
    },
    config: config.wobbly, // make it nice and wobbly
})
 
PREVIOUS NEXT
Tagged: #react #spring #bounce #animation
ADD COMMENT
Topic
Name
2+5 =