I have a page-out transition animation that I am using with css. It relies on changing the class of a container to start a css animation. I'm looking for a way to activate this animation (by adding the class to the container) then waiting for it to finish, then go to the link the href has. Here is the JSFiddle.
<div class="navigationbar">
<a href="home.html">
<h2 class="logo">The Lowdown.</h2>
</a>
<ul>
<li><a href="text.html">CONTACT US</a></li>
<li><a href="edition.html">EDITIONS</a></li>
<li><a href="articles.html">ARTICLES</a></li>
<li><a href="#aboutus">ABOUT US</a></li>
<li><a class="active" href="https:/google.com">HOME</a></li>
</ul>
</div>
<div class="loader loader--active">
<div class="loader__icon">
</div>
<div class="loader__tile"></div>
<div class="loader__tile"></div>
<div class="loader__tile"></div>
<div class="loader__tile"></div>
<div class="loader__tile"></div>
<div class="loader__tile"></div>
</div>
Is there any way to do this?