Header Elements are located at the top of the User Interface and are often items that draw users attention as soon as they load the page up. Effective use of a header element can enhance user experience with the product. One of the most common uses of header element is an image slideshow.
Automatic Slideshow
HTML, CSS Code and JS Script
HTML Code
CSS Code
.slideshowContainer {
max-width: 1000px;
position: relative;
margin: auto;
background-color: #333333;
}
.slideshowDot {
height: 15px;
width: 15px;
margin: 0 2px;
background-color: #FFAA80;
border-radius: 50%;
display: inline-block;
transition: background-color 0.2s ease;
}
.slideshowDotActive {
background-color: #ff6633;
}
.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}
}
JS Script