+ 2

CSS3 Animation Assignment

Hi Team, I'm currently learning web development. How can I create two round images attached to each other(like a spin wheel) but the border will spin anticlockwise while the round image in the middle spins clockwise. I really need your help to solve this using CCS3 animations and HTML5. Thanks

5th Mar 2020, 6:19 PM
Nnodim Chukwudi Clifford
Nnodim Chukwudi Clifford - avatar
4 Réponses
+ 3
Hello Nnodim Chukwudi Clifford, To have rounded image give it an equal width and height then apply a border-radius half the width Ex: width:200px height:200px border-radius:100px ( or 50%) For animation it's about @keyframes in CSS you have to learn, and transform : rotateZ(360deg) here is what you would need with 360deg for clockwise and -360deg anticlockwise, but learn how to use keyframes. Then you also have to learn about position (relative and absolute),it can be tricky. Here is an example: https://code.sololearn.com/WPHfI9J8p0r7/?ref=app
5th Mar 2020, 11:24 PM
EmmanueLZ.
EmmanueLZ. - avatar
+ 1
Thanks alot Emmanuel Z. I really appreciate your help 👏
6th Mar 2020, 6:19 AM
Nnodim Chukwudi Clifford
Nnodim Chukwudi Clifford - avatar
0
Nnodim Chukwudi Clifford you're welcome, indeed I also thank you because when thinking and coding to give you example , I made mistakes which possibly can be solutions on other stuff i'm working on, so... that's the funny thing.
6th Mar 2020, 7:42 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
Alternative word of 0%?
21st Sep 2021, 4:46 PM
Md Sahadat
Md Sahadat - avatar