Custom Page Loader With Lottie Animation

In this video we are setting up a custom page loader with a Lottie animation and JavaScript. 🖥❤️

Sharing Is Caring!
Facebook
Twitter
LinkedIn

DONATE

Help me keep this site and YouTube channel alive. 🖥❤️

.Get the "code"

*Press the Copy button and pate the code on your site. 

				
					<script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.0/lottie.min.js" type="text/javascript"></script>

<style>
  #loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    transition: opacity 0.3s;
  }
	
</style>

<div id="loader">
<div id="lottie-loader"></div>
</div>

<script>
  window.addEventListener("load", function() {
    const loader = document.getElementById("loader");
    setTimeout(function() {
      loader.style.opacity = "0";
      setTimeout(function() {
        loader.style.display = "none";
      }, 3500);
    }, 3500);
  });

  lottie.loadAnimation({
    container: document.getElementById("lottie-loader"),
    renderer: "svg",
    loop: true,
    autoplay: true,
    path: "https://assets9.lottiefiles.com/packages/lf20_wo8d6jev.json",
    rendererSettings: {
      progressiveLoad: false
    },
    animationData: null,
    renderer: 'canvas',
    images: null,
    events: {
      complete: function() {console.log('Animation Loaded')},
      error: function(e) {console.error(e)}
    }
  });
</script>
				
			
Elementor
Jacob Vinjegaard

Custom Page Loader

Custom Page Loader With Lottie Animation In this video we are setting up a custom page loader with a Lottie animation and JavaScript. 🖥❤️ https://youtu.be/XEd_ylDq_18

Read More »
Elementor
Jacob Vinjegaard

Lenis Smooth Scroll

LENIS SMOOTH SCROLL IN ELEMENTOR Learn how to install the amazing “LENIS Smooth Scroll” library in Elementor, and get the AWWWARDS scroll vibe on your

Read More »