Answers for "display none css animation"

CSS
4

css display none transition

div {
  border: 1px solid #eee;
}
div > ul {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s linear;
}
div:hover > ul {
  visibility: visible;
  opacity: 1;
}
Posted by: Guest on November-05-2020
1

css animation display none

/* css animation does not support display none, 
one hack is to just set height:0px;width:0px; on the animation*/
@keyframes JumpOut {                                                          
  0%   { top:10px; }                                                                 
  100% { top:-1020px; height:0px;width:0px;}                                                       
}
Posted by: Guest on July-20-2021

Browse Popular Code Answers by Language