Template ini gratis jika anda ingin mendapatkannya unduh disini Download Now!

Widget Membuat Efek Preloading di Blogger











Widget Membuat Efek Preloading di Blogger
Widget Membuat Efek Preloading di Blogger



Efek Preloading


Cara membuat efek preloading di blogger.

Buka dashboard blogger anda. Selanjutnya, Buka Bagian "Theme" dan Klik Opsi Edit Html.


Setelah itu cari kode ]]></b:skin>

Kemudian Copy CSS Script dibawah ini and paste di atas ]]></b:skin> tersebut.



/* Preloader effect by Blogger Pixabin Official */

.preloader {
position: fixed;
width: 100%;
height: 100vh;
background: #f7f7f2;
left: 0;
top: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transition: all 400ms;
z-index: 2000;
}

.preloader.hide {
opacity: 0;
pointer-events: none;
}

.preloader .preloader-text {
color: #838383;
text-transform: uppercase;
letter-spacing: 8px;
font-size: 15px;
}

.preloader .dots-container {
display: flex;
margin-bottom: 48px;
}

.preloader .dot {
background: red;
width: 20px;
height: 20px;
border-radius: 50%;
margin: 0 5px;
}

.preloader .dot.red {
background: #ef476f;
animation: bounce 1000ms infinite;
}

.preloader .dot.green {
background: #06d6a0;
animation: bounce 1000ms infinite;
animation-delay: 200ms;
}

.preloader .dot.yellow {
background: #ffd166;
animation: bounce 1000ms infinite;
animation-delay: 400ms;
}

@keyframes bounce {
50% {
transform: translateY(16px);
}

100% {
transform: translateY(0);
}
}


Kemudian salin kode script di bawah ini, dan tempelkan di atas </body>


<div class='preloader'>
<div class='dots-container'>
<div class='dot red'/>
<div class='dot yellow'/>
<div class='dot green'/>
</div>

<div class='preloader-text'>
Loading...
</div>
</div>


Dan terakhir salin kode script di bawah , dan letakkan di atas atau sebelum </body>


<script>
const preloader = document.querySelector(&quot;.preloader&quot;);
const preloaderDuration = 500;

const hidePreloader = () =&gt; {
setTimeout(() =&gt; {
preloader.classList.add(&quot;hide&quot;);
}, preloaderDuration);
}

window.addEventListener(&quot;load&quot;, hidePreloader);
</script>


Demikian semoga bermanfaat.

إرسال تعليق

tesssssssss
tesssssssss
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.