Jsem nová-Framer pohybu, to, co se snažím udělat, je napodobovat volant pohybu pohyblivého obrazu, když je rotující
Nevím, jak, aby to fungovalo
Snažil jsem se něco jako toto, ale to nefunguje
const imageRuning :Variants = {
hidden:{
x:"-100vw",
opacity:0
},
visible:{
x:0,
opacity:1,
transitionDuration:"3s"
},
rotation:{
rotate:[180,0],
transition:{
repeat:Infinity,
type:"tween",
ease:"linear"
}
}
}
const HomePage =()=> {
return (
<div className={style.animationContainer}>
<motion.img
className={style.animatedImage}
variants={imageRuning}
initial="hidden"
animate={["visible","rotation"]}
width={100} height={100} src="/static/me.jpg" >
</motion.img>
</div>
)
pomoc, prosím ,