<div class="container">
<h1>Fading out animation</h1>
</div>
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
h1 {
animation: fadeOut 2s ease;
}
View Compiled
This Pen doesn't use any external JavaScript resources.