title: loading effect repeats. not redirecting to the main page
body: <p>The home page does not come after passing the beer animation. The animation is constantly repeating. I want to redirect to my home page after the animation is passed.I'm trying to do. That he should lead me to another page after the beer's up.</p>
  
  <p>jsfiddle.net/sehzade/0hzr6L7k</p>