How can I make this rotation fit to the circle? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I make this rotation fit to the circle?

The code should make the dot follow a perfect circle,but in the lower right corner there's a small gap to the circle's border. How can I fix this? https://code.sololearn.com/WsKQiqckHLin/?ref=app

18th Jun 2020, 10:52 AM
Knee Class
Knee Class - avatar
2 Answers
+ 1
border in the #background are actually moving the entire circle by 2px to the right and bottom. you can alter the formula a little, or removing the border, or add box-sizing: border-box; at the #background element
18th Jun 2020, 11:06 AM
Taste
Taste - avatar
0
Ohhhhh you're right I totally forgot about that. Thank you very much! :)
18th Jun 2020, 12:02 PM
Knee Class
Knee Class - avatar