Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
You simply activate the event to the container of your icons and when that event is activated you can remove the class that contains the first icon and then add the class that contains the second digit with some transition to make it look nice. Another way to do it is to superimpose one icon on top of another, but one of them will have the empty display property, and once the event to the container is fired, you will remove that icon and hide the other.
22nd May 2020, 6:59 PM
Emanuel Maliaño
Emanuel Maliaño - avatar