Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6
Guess... no needa use keyframes Use something like this: window.onload = () => { anime({ targets:'.squa', translateX: 250, rotateZ: 360, scale: 3, loop:true })
8th Sep 2020, 10:39 AM
JOY
JOY - avatar
+ 2
share code
8th Sep 2020, 10:28 AM
JOY
JOY - avatar
+ 2
let animation = anime({ targets: '.squa', translateX: [ {value: 100, duration: 500}, {value: -10, duration: 500, delay: 3000} ], translateY: [ {value: 100, duration: 500, delay: 1500}, {value: -10, duration: 500, delay: 4500} ], easing: 'linear', });
8th Sep 2020, 11:19 AM
JOY
JOY - avatar
+ 1
In that case you gotta use some more animation blocks bro AteFish🇧🇩
8th Sep 2020, 10:49 AM
JOY
JOY - avatar