1607566800
In this video we are going to learn how to make image slider or image slideshow using HTML ,CSS and Vanilla JavaScript under 5 minutes. The design is inspired by flat UI and flat design we have used material colors for flat look
Subscribe : https://www.youtube.com/channel/UC9vqZpApNd4M0Pl5yR4banw
Source Code :
HTML :
<html>
<head>
<title>Automatic Image Slideshow</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="box">
<img id="image">
</div>
<script src="app.js"></script>
</body>
</html>
CSS :
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.box {
width:60%;
height: 70%;
box-shadow: 0 0 25px -3px rgba(0,0,0,0.4);
}
.box img{
width:100%;
height: 100%;
}
JavaScript :
var images = ['images/img1.png','images/img2.jpg','images/img3.jpg','images/img4.jpg','images/img5.jpg'];
var i =0;
function slideShow() {
document.getElementById("image").src=images[i];
_if_(i<images.length-1){
i++;
}
_else_ {
i=0;
}
setTimeout("slideShow()" , 2000);
}
window.onload = slideShow;
#js #javascript #html #css
1628189100
Image Uploader with Preview || Html CSS JavaScript || #html #css #javascript #coding
1618667723
how to create a Sidebar Menu using HTML and CSS only. Previously I have shared a Responsive Navigation Menu Bar using HTML & CSS only, now it’s time to create a Side Navigation Menu Bar that slides from the left or right side.
#sidebar menu using html css #side navigation menu html css #css side navigation menu bar #,pure css sidebar menu #side menu bar html css #side menu bar using html css
1607566800
In this video we are going to learn how to make image slider or image slideshow using HTML ,CSS and Vanilla JavaScript under 5 minutes. The design is inspired by flat UI and flat design we have used material colors for flat look
Subscribe : https://www.youtube.com/channel/UC9vqZpApNd4M0Pl5yR4banw
Source Code :
HTML :
<html>
<head>
<title>Automatic Image Slideshow</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="box">
<img id="image">
</div>
<script src="app.js"></script>
</body>
</html>
CSS :
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.box {
width:60%;
height: 70%;
box-shadow: 0 0 25px -3px rgba(0,0,0,0.4);
}
.box img{
width:100%;
height: 100%;
}
JavaScript :
var images = ['images/img1.png','images/img2.jpg','images/img3.jpg','images/img4.jpg','images/img5.jpg'];
var i =0;
function slideShow() {
document.getElementById("image").src=images[i];
_if_(i<images.length-1){
i++;
}
_else_ {
i=0;
}
setTimeout("slideShow()" , 2000);
}
window.onload = slideShow;
#js #javascript #html #css
1618667097
Tutorial: https://youtu.be/9DDiorNZiyw
#create a portfolio website with html css javascript #personal portfolio complete website using only html css javascript #responsive portfolio website html css javascript #responsive personal portfolio website #portfolio website #responsive website
1610036135
Image Slider or Image Carousel is an expedient way to show multiple images on a website. Alluring flashy images can draw many visitors to the site. Below image shows a sample image slider:
#css #html #javascript #slider