1

.about5 {
    animation: 
    fade 4s ease forwards; animation-delay: 5s;} 



     @keyframes fade {
     0% { opacity: 0; }
     50% { opacity: 1; }
    100% { opacity: 0;}}
<div class="about5">About</div>

The animation delays for 5s correctly, but before fading, flashes once. Why? Is this because I'm using ease and should I use linear?

Page on desktop here.

Chris
  • 1,206
  • 2
  • 15
  • 35
Animate1
  • 31
  • 6

1 Answers1

0

If you only want your content to fade-out, you could set the opacity to the 0% keyframe at 1 like this:

...
@keyframes fade {
 0% { opacity: 1; }
 50% { opacity: 1; }
100% { opacity: 0;}}

For more information about ease & linear, this post could explain it way better than I could :)

Kevin Métivier
  • 68
  • 2
  • 10