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.
/* MBL Accordion Image Slider For Blogger (www.mybloggerlab.com) */
.MBLwrapaccordion {
margin-left: auto;
margin-right: auto;
width: 890px;
}
.caption_home{
position:absolute;
left:0;
}
.Accordionlink { display:none !important;}
MBLover, #MBLover2, #MBLover3, #MBLover4, #MBLover5, #MBLover6 {
overflow:hidden;
display:block;
position:relative;
display:inline-block;
}
.MBLContainer {
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;
}
.MBLContainer 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() {
$('#MBLover').unleash({
duration: 700,
childClassName: '.MBLContainer',
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="MBLwrapaccordion"><div id="MBLover"><div class="MBLContainer"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidNESncXX0Qn0QQDwJ1MSCWZuFAyHVv4IimQkBKmtGt6ZXRc3GsMchAZC99Jv4YNcfX-l-3HbVh2eVzsI9s39Xiz78cMZ5vyXwK4fNX0hcX-FSFrSqWjotBLo9UNKXfprTptgqDeWBN9-1/s1600/b1.jpg"/><div class="caption_home"><a href="Your-Post-URL"><img src="Your-Image-Here"/></a></div></div><div class="MBLContainer"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEm2gOKzQSElUB7L-sNTCs3tmUcro_kotR7dMrPE7qAWLTfR8QcapCv-yFDj1sv3cUEAsiPsO3FPBHB5DGSN8y5C24MjXRLnpUXjilIY9xdjJUL2mhzbFmM5UzSyx38BHuZHImfFyB1256/s1600/b2.jpg"/><div class="caption_home"><a href="Your-Post-URL"><img src="Your-Image-Here"/></a></div></div><div class="MBLContainer"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1YTPsZy_tQBWE7iIy5V8aW6lUMurNzx3nGr4qdWXV88jjyvuR315bm5YNwSjz09xbsWbT5gXiIFDGfRIfYmRvI4bo8mnW2RrYQ847D_ouZdqqeImXGB0VFcchq92XnYn_dAKlUG_-X_0E/s1600/b3.jpg"/><div class="caption_home"><a href="Your-Post-URL"><img src="Your-Image-Here"/></a></div></div><div class="MBLContainer"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMC2E03xne1cgKePK8PzwZuKKVvQiYCd_sXksVOrI8GTKDtk0_JfiZSll63-m99lMVv-sZ0X8bfJ4ybf5r47hF77vO_FtDHTUi0CHUiSZqpOL7alAx4Fr9sMIHl_HR7yToO04lz-98EPP0/s1600/b4.jpg"/><div class="caption_home"><a href="Your-Post-URL"><img src="Your-Image-Here"/></a></div></div><div class="MBLContainer"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgygUB3p4mhCmW0otBdp7DjE7qoBXYQaNtH6jLLgjeIXsSEIcxSMTDepjKsD7toKYd3kiNkQIGnk2AsLiSpzC8bPHwb_RIHTbXAlwKcod5zMkIA7umDyQLad9Y7bo-TBui3BCpPWeH18v4/s1600/b5.jpg"/><div class="caption_home"><a href="Your-Post-URL"><img src="Your-Image-Here"/></a></div></div><div class="MBLContainer"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKp5Ge1UkfVsws198pwXQmi82AjmTESwcyRVKNzOKBYcTUTsvf_h1Jr7VIODBZDKZEEy5Y47GkktD3v1NbySRwYup8hzqwqb8ERAd3mObwiUQ24gLM-Z1Q48Huh_wTF8koz7TAyGNEyRcb/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.mybloggerlab.com">MBL</a><div><div><img alt="logo" class="logo" height="26" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuBqtem08jwqEgF775IgpluzjZeLpU2lnfby7T1PPL9-wqhuS_pyj7xoFQTAB3wAd6LX9vtX3Zmrl8JOJdFuOH1DQ_sWNYATfy-Ci8Q7R_nc1B53YR9SZ9jo7eDvp0gzaLZASh3Oho1Awt/s1600/shadow_2.png" width="890px"/></div></div><div class="Accordionlink"><a href="www.mybloggerlab.com">MBL</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.
From The Editor’s Desk:
Hope you have enjoyed the
roller-coaster ride if you feel any difficulty while adding this widget feel
free to leave your comments. Till date MBL Blog has produced 50 splendid
widgets For Blogger Platform and this may not been possible without your
support.. If you have any problem or complain about your services feel free to
leave your comment till than peace, Blessing and Happy Celebrating. Credits: alialaa
Post a Comment Blogger Facebook