Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { animated, useSpring } from "react-spring";
const App = () => {
const style = useSpring({
from: {
transform: "rotateY(0deg)"
},
transform: "rotateY(25deg)"
});
return (
<>
<div className="container">
{movies.map(src => (
<animated.div
key={src}
className="card"
style={{
...style,
backgroundImage: `url(${src})`
}}
/>
))}
</div>
</>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.