Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

amination with opacity problam

hi i want do do that the defult text will be in opacity 0 before the animation start.
i mean that the text will be in opacity 0 and when the animation end (1 second later)
the text will become visible and become opacity 1.

.defult-text{
  position: absolute;
  top: 360px;
  right: 650px;
  text-align: center;
  font-size: 30px;
  font-family: 'Itim';
  color: #c5c6c7;
}



.defult-text { 

  
  animation: fadeIn 3s ;
  animation-delay: 1s;
  
}


@keyframes fadeIn {
  
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can add the following under your declarations:

.defult-text { 
    …
    opacity: 0; /* applies for the time before the animation starts */
    animation-fill-mode: forwards; /* keeps the state after the animation has finsished */
}

Please see: Maintaining the final state at end of a CSS3 animation

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading