Donghyeok Yun
Donghyeok Yun
4,514 Points

How do I stay after css animation plays?

I created this fading out text animation, how can I make sure the text stays faded away tho. Because the text comes back.

h1 {
opacity: 0; animation: fadeOut; animation-duration: 2s; animation-delay: 2s; }

@keyframes fadeOut { from { opacity: 1; }

to { opacity: 0; } }

Steven Parker
Steven Parker
203,151 Points

This appears to be a duplicate of your previous question, see the answer(s) posted there.

Please don't post the same question multiple times. You may want to delete this duplicate, click on the small rectangle with the 3 dots to see the option.