+ 1

If you want to do color change for a shape

How could you do that?i am trying to make a color change animation to my shape but just can’t get it right what can I do with css?

10th May 2018, 7:58 AM
Cryonic
Cryonic - avatar
10 Respostas
+ 2
NightLord You have maded some errors: 1) id attribute MUST setted at only ONE element (you have setted "square" id to different elements) 2) You have called same animation with different names (colorchange and colourchange) 3) Most important you make animation on wrong css property... You must animate "fill" and not "color"
10th May 2018, 10:09 AM
KrOW
KrOW - avatar
+ 1
Can you link your code?
10th May 2018, 8:44 AM
KrOW
KrOW - avatar
+ 1
👍👍👍👍
10th May 2018, 10:26 AM
KrOW
KrOW - avatar
+ 1
See this code and READ comments in it https://code.sololearn.com/Wqe3jRT2brW3/
10th May 2018, 11:28 AM
KrOW
KrOW - avatar
+ 1
Ok thank you again
10th May 2018, 11:29 AM
Cryonic
Cryonic - avatar
+ 1
👍👍👍 again 😁😁
10th May 2018, 11:31 AM
KrOW
KrOW - avatar
0
https://code.sololearn.com/WWSOwQIKIF22/?ref=app here is the code more or less I am still busy with it
10th May 2018, 9:54 AM
Cryonic
Cryonic - avatar
0
Oh ok thank you for the help
10th May 2018, 10:21 AM
Cryonic
Cryonic - avatar
0
Can you please show me how it should look like cause I don’t really know where to change in css
10th May 2018, 11:11 AM
Cryonic
Cryonic - avatar
0
What about giving it a image background at the end?do I just put it in css or in HTML
10th May 2018, 1:08 PM
Cryonic
Cryonic - avatar