Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A bouncy scaling effect.
# react_spring/demo/App7.jsx
import React from 'react'
import { useSpring, animated, config } from 'react-spring'
function App() {
const props = useSpring({
scale: 1,
from: { scale: 0.3 },
config: config.wobbly
})
return <animated.div style={{ width:100, height:100, background:'cyan', transform:props.scale.to(s => `scale(${s})`) }} />
}
export default AppReact Spring is a powerful spring-physics-based animation library for React that enables smooth, natural, and interactive animations using declarative APIs and hooks.
Origin & Creator
React Spring was created by Paul Henschel around 2016 and has been maintained by the open-source community since then.
Industrial Note
React Spring is used in interactive web apps, dashboards, e-commerce interfaces, micro-interactions, and complex React UI transitions that require realistic motion.