MENU
<Motion>
This displays an orange box moving to the right.
RESETRUNFULL
import { spring, Motion } from 'react-motion';export default function App(){
return(<Motion defaultStyle={{left: 0}}
style={{left: spring(1000,{stiffness:50, damping:50, precision:0.1})}}>
{interpolatingStyle => <div style={{position:'fixed',
width:'100px',
height:'100px',
background:'orange',
...interpolatingStyle}} />}
</Motion>);}