0

How can I make css onclick animations? (Answered)

I want to make an exit icon disappear after clicking it

23rd Jul 2022, 5:20 PM
Tony Stark
Tony Stark - avatar
4 odpowiedzi
+ 2
if(you mean to make something invisible by clicking on it){ <div onclick="this.style.opacity='0'"></div> }
23rd Jul 2022, 7:36 PM
aliz6398suisiTerminatorEmpireBot
aliz6398suisiTerminatorEmpireBot - avatar
+ 2
If you know JS or jquery you can do something like this. https://codepen.io/thetallweeks/pen/naNPWm
23rd Jul 2022, 5:32 PM
Chris Coder
Chris Coder - avatar
+ 2
Pythoner can you give us more details as to what you really want. An exit icon disappearing could be a simple fade out with css animation or a quick disappearance using JavaScript
23rd Jul 2022, 6:24 PM
BroFar
BroFar - avatar
+ 1
Thank you all for your answers!
26th Jul 2022, 7:12 PM
Tony Stark
Tony Stark - avatar