I want the video to hide/fade out after the video has finished. And I want the h1 header title to appear in the same position when the video ends (hide/fades out).
How can I implement this in JavaScript or CSS?
HTML code:
<div class="header__title">
<h1>
When
<!-- Green highlight effect -->
<span class="highlight">banking</span>
meets<br />
<span class="highlight">the future</span>
</h1>
<h4>The future of money is here.</h4>
<img
src="img/Javacoin homepage picture.png"
class="header__img"
alt="Minimalist bank items"
/>
</div>
<div class="background__video">
<video autoplay muted>
<source src="Javacoin Corporate Intro - Final.mp4" type="video/mp4">
</video>
</div>