New course! Every coder should learn Generative AI!
Try a free lesson0
help me please
English: I need to make a ball that will move in my figure: a square or a rectangle, who understands help me please :D Russian: ╨Ь╨╜╨╡ ╨╜╤Г╨╢╨╜╨╛ ╤Б╨┤╨╡╨╗╨░╤В╤М ╤И╨░╤А╨╕╨║ ╨║╨╛╤В╨╛╤А╤Л╨╣ ╨▒╤Г╨┤╨╡╤В ╨┤╨▓╨╕╨│╨░╤В╤М╤Б╤П ╨▓ ╨╝╨╛╨╡╨╣ ╤Д╨╕╨│╤Г╤А╨╡: ╨║╨▓╨░╨┤╤А╨░╤В ╨╕╨╗╨╕ ╨╢╨╡ ╨┐╤А╤П╨╝╨╛╤Г╨│╨╛╨╗╨╕╨╜╨╕╨║, ╨║╤В╨╛ ╨┐╨╛╨╜╨╕╨╝╨░╨╡╤В ╨┐╨╛╨╝╨╛╨│╨╕╤В╨╡ ╨┐╨╛╨╢╨░╨╗╤Г╨╣╤Б╤В╨░ :D
7 Answers
+ 3
Maybe this gives you an idea ,and sorry if you don't understand but the idea is to move the ball left ,down,right and top and left again,
https://code.sololearn.com/WPHClrkufJ3o/?ref=app
+ 3
Look at the css code for ball carefully and if you don't understand all these ,then go through Html course,then css and later js
+ 2
Abhay,
Thank you so much, you really helped, and you guys also thank you: D
+ 1
Change its x and y using js ,
U should share your code
0
but how to make in a circle? just learning: D
0
I just have a rounded rectangle and I would like for the ball to travel beautifully inside
0
I canтАЩt understand what is there?