I am trying to get some text to fadeIn then fadeOut again after a delay. However, I want a delay on the fadeIn also.
I am aware this can be done with CSS Keyframes? But I wouldn't have any clue how to start and everything I have researched has been only one animation (animate in).
Therefore, I am trying this in JQuery:
$(document).ready(() => {
$(window).on('load', () => {
$('.helper').delay(3000).fadeIn(); {
$(this).delay(6000).fadeOut();
}
});
});
And this HTML/CSS:
<section class="helper" style="display: none;">
<h2 id="helper">Filler Text</h2>
</section>