+ 2

Problem 3 for this code: how do I make the bullet go slowly to the side? (Like transition duration but for Javascript.)

https://code.sololearn.com/Wh9tG53eUjuJ/?ref=app

1st May 2022, 2:38 PM
Spencer Pawlik
Spencer Pawlik - avatar
2 Answers
+ 4
/* for example: */ .bullet { position:absolute; top:3%; width:20px; height:11px; background-color:#666; border-radius:0 50% 50% 0; transition-duration:1s; animation-name: anim1; animation-duration: 2s; } @keyframes anim1 { from {left: 4%;} to {left: 94%;} }
1st May 2022, 3:13 PM
JaScript
JaScript - avatar
1st May 2022, 4:01 PM
Raul Ramirez
Raul Ramirez - avatar