What is Accordion Slider?
Majority of Webmasters don’t know what does Accordion means because the same word is also used for a musical instrument. However, an Accordion slider is a type of a widget that holds images together and gives an entire new look to your site. Moreover, it is a kind of JavaScript function that operates on hover.
Features of Unleashed Accordion Image Slider:
- It is built with high speed Jquery so no compromise on Site speed.
- You can easily customize it style according to your needs.
- It has multiple animated hover transactions.
- Ability to add more than one slider on the same page.
- Allows to add Six images with transparent background.
- Works perfectly on multiple browsers i.e. Opera, Chrome, internet explorer and etc.
How To Install It in Blogger:
The steps are extremely straightforward and would hardly take 15 minutes to complete the integration so do as mentioned below.
- Go to Blogger.com >> Template >> Edit HTML >> Proceed.
- Now search for ]]></b:skin> and once you find it, just above it paste the following Styling code.
/* ExE Accordion Image Slider For Blogger (www.exeblogger.blogspot.com) */
.ExEwrapaccordion {
margin-left: auto;
margin-right: auto;
width: 890px;
}
.caption_home{
position:absolute;
left:0;
}
.Accordionlink { display:none !important;}
ExEover, #ExEover2, #ExEover3, #ExEover4, #ExEover5, #ExEover6 {
overflow:hidden;
display:block;
position:relative;
display:inline-block;
}
.ExEContainer {
overflow: hidden;
display:block;
-moz-box-shadow: -5px 0px 5px rgba(1, 1, 1, 0.3);
-webkit-box-shadow: -5px 0px 5px rgba(1, 1, 1, 0.3);
box-shadow: -5px 0px 5px rgba(1, 1, 1, 0.3);
position:absolute;
cursor: pointer;
float:left;
display: inline-block;
zoom: 1;
}
.ExEContainer img {
position:relative;
}
.caption {
position:absolute;
background:rgba(1, 1, 1, 0.4);
padding:20px;
left:0;
}
.caption p {
color:#FFF;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
font-size:12px;
line-height:1.6;
}
.caption h1 {
color:#CCC;
font-size:16px;
font-weight:normal;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
margin-bottom:5px;
}
.caption a {
text-decoration:none;
}
.caption_1 {
position:absolute;
padding:20px;
-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
box-shadow:inset 0px 1px 0px 0px #ffffff;
background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
background-color:#ededed;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
border:1px solid #dcdcdc;
display:inline-block;
text-shadow:1px 1px 0px #ffffff;
margin:0px 20px 20px 20px;
left:0;
}
.caption_1 p {
color:#999;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
font-size:12px;
line-height:1.6;
}
.caption_1 h1 {
color:#666;
font-size:16px;
font-weight:normal;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
margin-bottom:5px;
}
.caption_1 a {
text-decoration:none;
}
.caption_2 {
position:absolute;
background: #F03;
padding:20px;
left:0;
margin:0px 20px 20px 20px;
border-right: 1px solid #FF8080;
border-bottom: 1px solid #FF8080;
}
.caption_2 p {
color:#FFF;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
font-size:12px;
line-height:1.6;
}
.caption_2 h1 {
color:#EFEFEF;
font-size:16px;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
margin-bottom:5px;
}
.caption_2 a {
text-decoration:none;
}
.caption_3 {
position:absolute;
background: rgba(255, 255, 255, 0.7);
padding:20px;
left:0;
margin:0px 20px 20px 20px;
border: 1px solid #fff;
}
.caption_3 p {
color:#666;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
font-size:12px;
line-height:1.6;
}
.caption_3 h1 {
color:#333;
font-size:16px;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
margin-bottom:5px;
}
.caption_3 a {
text-decoration:none;
}
.caption_4{
position:absolute;
background: #111725 url(../images/top_2.png) top repeat-x;
padding:20px;
left:0;
margin:0px 20px 20px 20px;
}
.caption_4 p {
color:#FFF;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
font-size:12px;
line-height:1.6;
}
.caption_4 h1 {
color:#CCC;
font-size:16px;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
margin-bottom:5px;
}
.caption_4 a {
text-decoration:none;
}
- Then within the template search for </head> and just above it paste the following JavaScript coding.
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js' type='text/javascript'/>
<script src='https://mybloggerlab.googlecode.com/files/jquery.unleash.min.js' type='text/javascript'/>
<script src='https://mybloggerlab.googlecode.com/files/jquery.animation.easing.js' type='text/javascript'/>
<script type='text/javascript'>
$(window).load(function() {
$('#ExEover').unleash({
duration: 700,
childClassName: '.ExEContainer',
captionClassName: '.caption_home',
SliderWidth: '890px',
SliderHeight: '300px',
width: 590,
Event: "hover",
easing: "quadEaseOut",
captionEasing: "backEaseInOut",
CollapseOnMouseLeave: true,
CaptionAnimation: "pop-up"
});
});
</script>
- Save the template and half of your work is almost done.
- Now paste the following HTML Structure code where you want to show this Accordion Slider i.e. Layout >> Add a Gadget >> Add HTML/JavaScript >> and paste the following code.
<div class="ExEwrapaccordion">
<div id="ExEover">
<div class="ExEContainer">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2idpnD0uxvZ-6KfCbld83CJiNyLouUfKk9NUtFa-BiHD5b0eNbg0LcOR4u-8hdpBWX4RkB1yhLQFR_ONKLpSalfClthhvJoudPl-zcwQuE80aC5oWpfUBDaVVwGS4huCHCauhhSZVo5MZ/s1600/b1.jpg"/>
<div class="caption_home">
<a href="Your-Post-URL"><img src="Your-Image-Here"/></a>
</div>
</div>
<div class="ExEContainer">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgqgGZZIJrqRlf0d6LFaKp4tzBk5YeOszOQTP60UBUFbh04UxpFQvokf4Ab9YJhoXMhuA1KhfuiemyO-QZnhKRNd6VxfUUPoPceSG5GqMSOuuRkJ2XNrbHAkmCnCiVq9K_WaYEyIv74IWHz/s1600/b2.jpg"/>
<div class="caption_home">
<a href="Your-Post-URL"><img src="Your-Image-Here"/></a>
</div>
</div>
<div class="ExEContainer">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiox_qsh0qEBfvnt5E7wvDeHA9tZJtmgr1bBzO36OTV_EAisbaijkexKjt-YrwDbxOPyOntiIhFHxuS63ORodyL__R7SNrbo5DaK0mxZcqxOLq47SNLXZVdm4WjgI3mxlnLhzG23h7INPIb/s1600/b3.jpg"/>
<div class="caption_home">
<a href="Your-Post-URL"><img src="Your-Image-Here"/></a>
</div>
</div>
<div class="ExEContainer"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjrcpvkhaxOiR30bWW1N_4BB1jJd7J3m0seQCiViejoGhkfDxtfNDgVPk8dJhRe0qPmLMLX1rAOL9IWFFu8KnFZDTW5l9I2lc3bL27eIsF4Ki-StcJTAtFmUHkzFD6zhTkJUsPveDESrsX/s1600/b4.jpg"/>
<div class="caption_home">
<a href="Your-Post-URL"><img src="Your-Image-Here"/></a>
</div>
</div>
<div class="ExEContainer">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkdje7sFniLSTlmcq52ch_XV0_WjQP_Lserjpc6mDGT-drxM2Ju3V20HtzuCRFuor5DyjEFCvpS2aCfuAQUsKoIqr5YcVKBtaoYjNX4BuG5ACmMXJ3lC1SKYW2bfZbKnNsnobuIwIN1MU/s1600/b5.jpg"/>
<div class="caption_home">
<a href="Your-Post-URL"><img src="Your-Image-Here"/></a>
</div>
</div>
<div class="ExEContainer">
<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs4C7_CmLtpr0T5eIbV12tH31utxHgcFP98Q7xbCnMySkFTxSo9Z8OdTE5lHFJj9RsVEr4PfETccUlrBxO8ipz_bJ8JfYOSW3vpVCYcXFrRcxLwvCMwuxtncq_9GRdkhhHyjqvBfuaBvT5/s1600/b6.jpg"/>
<div class="caption_home">
<a href="Your-Post-URL"><img src="Your-Image-Here"/></a>
</div>
</div>
</div>
<div class="Accordionlink"><a href="www.exeblogger.blogspot.com">ExE Blogger</a><div>
<div>
<img alt="logo" class="logo" height="26" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCEi6N6zK7U7g6KdhfBfh1I5ont2FwwkXY1Bu8E0spsvhvVvCJVG3kJk9Gh3juCqxYDzV6cjOLkEzjM6evSZJmaGI2_Nb-BBp1jXVEhkW84RpJo5shjpIbjB-9wMH6Eso3A6i0MOpGjWjp/s1600/shadow_2.png" width="890px"/>
</div>
</div>
<div class="Accordionlink"><a href="www.exeblogger.blogspot.com">ExE Blogger</a><div>
<div>
Customization:
- Replace Your-Image-Here with your featured images. Remember: Use Transparent images otherwise the background will be hidden and save it in PNG format.
- To change the width of your slider replace 890px From CSS, JavaScript and HTML Structure coding. Remember: you have to change it Three times from the above coding.
- Replace Your-Post-URL with your specific URL that you want to target once your visitors will click certain image on accordion slider.
All Done: Once you have fully customized your slider go and save your Gadget. Now go ahead and visit your site to witness incredible unleashed accordion slider.
Credits: MBL
If you enjoyed this post and wish to be informed whenever a new post is published, then make sure you
Subscribe to our regular Email Updates!
Thanks a lot Muhammad Usman Ghani, I can use this slider for my client's blog.
ReplyDeleteRegards
Gagan Masoun
www.BlogsDaddy.com
Welcome Gagan Masoun for Such nice words... :)
Delete