Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

time an element to disappear css

@keyframes myAnimation{
  0%{
    opacity: 1;
    transform: rotateX(90deg);
  }
  50%{
    opacity: 0.5;
    transform: rotateX(0deg);
  }
  100%{
    display: none;
    opacity: 0;
    transform: rotateX(90deg);
  }
}

#myelement{
    animation-name: myAnimation;
    animation-duration: 2000ms;
    animation-fill-mode: forwards;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #time #element #disappear #css
ADD COMMENT
Topic
Name
6+4 =