0

Rotation issue on my coding

My first coding for box rotaion and second for circle but when i apply second code then both animation going same. Befor use second code my first code is square raotation animation.... https://code.sololearn.com/W3FYJkJQiLqs/?ref=app

11th Jun 2019, 5:07 AM
Bhupender
Bhupender - avatar
4 Respostas
+ 5
Correction : https://code.sololearn.com/WT8isVr2K8AZ/?ref=app Explanation : Don't use same id twice (HTML line 39, CSS line 5) Use different class names (HTML line 41) The sub with different animation are child of different class. (CSS line 15, CSS line 45) (all line numbers are line numbers of my correction)
11th Jun 2019, 12:57 PM
Gordon
Gordon - avatar
+ 4
Of course your 2nd style for sub element gets applied to both. If i add sub.three in place of css style for 2nd sub it shows a circle. Minor issue: Your code was a bit confusing. Can you better separate the styles and comment your code so others do not have a hard time reading it? That can make a difference if people will, or will not read the code and (hopefully) answer...
11th Jun 2019, 9:40 AM
Lord Krishna
Lord Krishna - avatar
0
Ys u r right how can seprate both sub
11th Jun 2019, 11:48 AM
Bhupender
Bhupender - avatar
0
Thank now i am understand
13th Jun 2019, 4:35 AM
Bhupender
Bhupender - avatar