I want to make image dissappear by adding a class
But if I woud do this my element would dissapear without animation
I want it to dissappear slowly
I know that there are some css3 properties but I don't know which
I know how to do it with animation of opacity but I don't want
HTML
<img scr="..." class="a">
<button onclick="make_img_dissappear()">Click to dissappear</button>
CSS
.hide{
display: none;
}
.a{
/*these properties must provide adding class with animation*/
}
JAVASCRIPT
function make_img_dissappear(){
$("img").addClass("hide");
}