Accordion slider ( hover based) is made using only pure CSS3 code that is simple, but the results are satisfactory Sob ! ! . Without using any Javascript , HTML markup code that is easy and scalable accordion slider ( can be customized ) for the number of pictures / images posted and can be easily applied on your website / blog . As part of your blog is very functional , and not just fashion alone ! There are many types of Accordion Slider ( slider accordion ) but unfortunately most use Javascirpt , jQyery Accordion Slider plugin , you can imagine how if a visitor / visitor has been shut off / make disable Javascript in their browser ?
Certainly accordion slider does not work well and let you and the visitor .
Yes many advantages , if you make the Accordion Slider with pure CSS , in addition to lightweight because it does not need to load a bunch of javascript code that can also be used as complex image gallery / pictures , video gallery , tour navigation ( for the product ) , for a content slider , or to display the portfolio version .
And more importantly Accordion Horizontal Slider with CSS3 Cool this works well in almost all major browsers : Chrome4 + , Safari 4 + , Opera 10.5 + , Firefox 4 + and IE7 + , 8.9 .
Transition horizontal accordion slider that we make are based or just hover effect by directing the pointer / mouse over the image / object then the slide will move / work .
HTML
<div class="accordian">
<ul>
<li>
<div class="image_title"><a href="#">Accordion Style Slider dengan CSS 1</a></div>
<a href="#"><img src="Images" /> </a>
</li>
<li>
<div class="image_title"><a href="#">Accordion Style Slider dengan CSS 2</a></div>
<a href="#"><img src="Images" /> </a>
</li>
<li>
<div class="image_title"><a href="#">Accordion Style Slider dengan CSS 3</a></div>
<a href="#"><img src="Images" /> </a>
</li>
<li>
<div class="image_title"><a href="#">Accordion Style Slider dengan CSS 4</a></div>
<a href="#"><img src="Images" /> </a>
</li>
<li><div class="image_title"><a href="#">Accordion Style Slider dengan CSS 5</a></div>
<a href="#"><img src="Images" /> </a>
</li>
</ul>
</div>
CSS
* {
margin: 0;
padding: 0;
}
body {
background: #ccc;
font-family: arial, verdana, tahoma;
}
.accordian {
width: 805px; // Lebar keseluruhan accordion slider
height: 320px; // Tinggi keseluruhan accordion slider
overflow: hidden;
margin: 100px auto;
box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
-webkit-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
-moz-box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.35);
}
.accordian ul {
width: 2000px;
}
.accordian li {
position: relative;
display: block;
width: 160px; // Lebar gambar saat normal
float: left;
border-left: 1px solid #888;
box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.5);
transition: all 0.5s;
}
.accordian ul:hover li {
width: 40px; // Lebar gambar saat tertutup
}
.accordian ul li:hover {
width: 640px; // Lebar gambar saat terbuka
}
.accordian li img {
display: block;
}
.image_title {
background: rgba(0, 0, 0, 0.5);
position: absolute;
left: 0; bottom: 0;
width: 640px;
}
.image_title a {
display: block;
color: #fff;
text-decoration: none;
padding: 20px;
font-size: 16px;
}
Installation Accordion Horizontal Slider in Blog
If you want to install the Accordion Horizontal Slider as a widget on your blog, steps:
Sign Blogger> Layout> click Add a Gadget
Click the Add HTML Javascipt> Put the whole code inside Accordion Horizontal Slider
then Save
A U R E L Y N E - Talk less , do some action !