How to Make a Simple Automatic Slideshow For Any Website or Blogger
HTML & CSS |
Step 1) Go to your blogger Layout and click Add a Gadget link into sidebar. Now Click Html/Java Script, see the screenshot below for step by step procedure.
Step 2) Now copy and past the html code given below as it is.
Step 3) Add your Slideshow Imapges, See the screenshot below for step by step procedure.<!doctype html><style>* {box-sizing:border-box}body {font-family: Verdana,sans-serif;}.mySlides {display:none}/* Slideshow container */.slideshow-container {max-width: 1000px;position: relative;margin: auto;}/* Caption text */.text {color: #09262c;font-size: 15px;padding: 8px 12px;position: absolute;bottom: 8px;width: 100%;text-align: center;}/* Number text (1/4 etc) */.numbertext {color: #f2f2f2;font-size: 12px;padding: 8px 12px;position: absolute;top: 0;}/* The dots/bullets/indicators */.dot {height: 13px;width: 13px;margin: 0 2px;background-color: #bbb;border-radius: 50%;display: inline-block;transition: background-color 0.6s ease;}.active {background-color: #09262c;}/* Fading animation */.fade {-webkit-animation-name: fade;-webkit-animation-duration: 1.5s;animation-name: fade;animation-duration: 1.5s;}@-webkit-keyframes fade {from {opacity: .4}to {opacity: 1}}@keyframes fade {from {opacity: .4}to {opacity: 1}}/* On smaller screens, decrease text size */@media only screen and (max-width: 300px) {.text {font-size: 11px}}</style><div class="slideshow-container"><div class="mySlides fade"><div class="numbertext">1 / 4</div><img src="https://goo.gl/T4gg2X" style="width:100%" /><div class="text">Caption 1</div></div><div class="mySlides fade"><div class="numbertext">2 / 4</div><img src="https://goo.gl/T4gg2X" style="width:100%" /><div class="text">Caption 2</div></div><div class="mySlides fade"><div class="numbertext">3 / 4</div><img src="https://goo.gl/T4gg2X" style="width:100%" /><div class="text">Caption 3</div></div><div class="mySlides fade"><div class="numbertext">4 / 4</div><img src="https://goo.gl/T4gg2X" style="width:100%" /><div class="text">Caption 4</div></div></div><br /><div style="text-align:center"><span class="dot"></span><span class="dot"></span><span class="dot"></span><span class="dot"></span></div><script>var slideIndex = 0;showSlides();function showSlides() {var i;var slides = document.getElementsByClassName("mySlides");var dots = document.getElementsByClassName("dot");for (i = 0; i < slides.length; i++) {slides[i].style.display = "none";}slideIndex++;if (slideIndex> slides.length) {slideIndex = 1}for (i = 0; i < dots.length; i++) {dots[i].className = dots[i].className.replace(" active", "");}slides[slideIndex-1].style.display = "block";dots[slideIndex-1].className += " active";setTimeout(showSlides, 5000); // Change image every 5 seconds}</script></!doctype>
Step 4) Copy and past your image url address.<div class="mySlides fade">
<div class="numbertext">1 / 4</div>
<img src="Your Image Url" style="width:100%" />
<div class="text">Caption 1</div>
</div>
Post Comment
No comments