Amazing Blogger jQuery Featured Slideshow Slides Images And Videos
Featured
Sliders also known as Slideshows, Image Sliders, Featured Posts Sliders and
Carousels are very popular among bloggers.They can be used to link to featured
content in your blog or just as an image carousel for your pictures.I have not
really covered sliders or slideshows too much on Spice Up Your Blog.The main
reason is there are so many tutorials already available for Blogger sliders, i
did share 5 of my favorite Blogger Featured Sliders from other blogs
not too long ago.
But over the coming weeks i have lined up some very unique Slideshow options including the one in this post that not only can slide through images but also accepts html as slides !
The main advantage of this is you can actually have YouTube videos (Or Any Videos) as part of the slideshow.That's not a thumbnail or image linking to the video it's the actual video that can be played within the slideshow, How cool is that.
The slider is called the 'Anything Slider' and was created by Chris Coyier of Css Tricks, Check them out.
Step 1. In Your Blogger Dashboard Click Design > Edit Html
Step 3. Copy and paste the following code directly Above / Before ]]></b:skin>
You will want to add the slider below your header across your blog.This position is known as 'crosscol' or Cross Column.
Highlighted in yellow you can see how the videos were added and highlighted in red you can see how the images were added.That's it, a unique jQuery featured slider for both images and video.
Thanks to Css Tricks for the very cool Slideshow and there is actually another few versions of this slider we may cover in the future.
If you face any problem in this post please let me know your problem. To inform your problem you can leave a comment below. And if you like my post please click the Facebook like button or spread this post by clicking the Twitter, Facebook etc. icons below. Because, it will be a great support for me.
But over the coming weeks i have lined up some very unique Slideshow options including the one in this post that not only can slide through images but also accepts html as slides !
The main advantage of this is you can actually have YouTube videos (Or Any Videos) as part of the slideshow.That's not a thumbnail or image linking to the video it's the actual video that can be played within the slideshow, How cool is that.
The slider is called the 'Anything Slider' and was created by Chris Coyier of Css Tricks, Check them out.
Add The Anything Slider To Blogger
Step 1. In Your Blogger Dashboard Click Design > Edit Html
Step 2. Find the
following piece of code in your blogs Html : (Click Ctrl and F for a search bar
to help find the code)
]]></b:skin>
Step 3. Copy and paste the following code directly Above / Before ]]></b:skin>
/*start slider css http://www.music2radio.blogspot.com for
info*/
/*
AnythingSlider v1.4
By Chris Coyier: http://css-tricks.com
with major improvements by Doug Neiner: http://pixelgraphics.us/
based on work by Remy Sharp: http://jqueryfordesigners.com/
*/
/******* SET DEFAULT DIMENSIONS HERE ********/
div.anythingSlider {
/*
AnythingSlider v1.4
By Chris Coyier: http://css-tricks.com
with major improvements by Doug Neiner: http://pixelgraphics.us/
based on work by Remy Sharp: http://jqueryfordesigners.com/
*/
/******* SET DEFAULT DIMENSIONS HERE ********/
div.anythingSlider {
width: 700px;
height: 390px;
margin: 0 auto;
}
/****** SET COLORS HERE *******/
/* Default State */
div.anythingSlider .thumbNav a.cur, div.anythingSlider .thumbNav a {
background: #777;
}
div.anythingSlider .anythingWindow {
border-top: 3px solid #777;
border-bottom: 3px solid #777;
}
/* Active State */
div.anythingSlider.activeSlider .thumbNav a.cur, div.anythingSlider.activeSlider .thumbNav a {
background-color: #7C9127;
}
div.anythingSlider.activeSlider .anythingWindow {
border-color: #7C9127;
}
/**** DO NOT CHANGE BELOW THIS LINE ****/
/* anythingSlider viewport window */
div.anythingSlider .anythingWindow {
overflow: hidden;
position: relative;
width: 100%;
height: 100%;
}
/* wrapper: 45px right & left padding for the arrows, 28px @ bottom for naviagation */
div.anythingSlider {
position: relative;
padding: 0 45px 28px 45px;
}
/* anythingSlider base UL */
ul.anythingBase {
background: transparent;
list-style: none;
position: absolute;
top: 0; left: 0;
margin: 0;
}
ul.anythingBase li.panel {
background: transparent;
display: block;
float: left;
padding: 0;
margin: 0;
}
/* Navigation Arrows */
div.anythingSlider .arrow {
top: 50%;
position: absolute;
display: block;
}
div.anythingSlider .arrow a {
display: block;
height: 120px;
margin-top: -60px;
width: 45px;
text-align: center;
outline: 0;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGyoZt1_9MEW0zebfW8vgMfGqokZIWN78A5lU7Zzxl54YDUmG8CK5uNxUc899uhSUVp4qwW9iLhFoXRJfgtb-mZUM-jvoSXJzpcfFLogCuoNQwQP_RnwltS5GSuP3-Y-_8Mrnl7coT0HM/s1600/arrows-default.png) no-repeat;
text-indent: -9999px;
}
div.anythingSlider .forward { right: 0; }
div.anythingSlider .back { left: 0; }
div.anythingSlider .forward a { background-position: 0 -40px; }
div.anythingSlider .back a { background-position: -88px -40px; }
div.anythingSlider .forward a:hover, div.anythingSlider .forward a.hover { background-position: 0 -240px; }
div.anythingSlider .back a:hover, div.anythingSlider .back a.hover { background-position: -88px -240px; }
/* Navigation Links */
div.anythingSlider .thumbNav { margin: 0; }
div.anythingSlider .thumbNav li { display: inline; }
div.anythingSlider .thumbNav a {
color: black;
font: 11px/18px Georgia, Serif;
display: inline-block;
text-decoration: none;
padding: 2px 8px;
height: 18px;
margin: 0 5px 0 0;
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvzFHAzrr4dPvqbSY43ShCYv-Q1RkjtlplENuPlZzvISpHSH4vIF_6YWsHTF56rHHDrBE6psnNEl6qSThXbgOWNJi3CHekYYOs-3462DzqjJh5mLF32AGIhjPcX3uqEzMcfvYSWjSPTBI/s1600/cellshade.png);
background-repeat: repeat-x;
text-align: center;
outline: 0;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
}
div.anythingSlider .thumbNav a:hover { background-image: none; }
/* slider autoplay right-to-left, reverse order of nav links to look better */
div.anythingSlider.rtl .thumbNav a { float: right; } /* reverse order of nav links */
div.anythingSlider.rtl .thumbNav { float: left; } /* move nav link group to left */
/* div.anythingSlider.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
/* Autoplay Start/Stop button */
div.anythingSlider .start-stop {
z-index: 10;
background: green url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvzFHAzrr4dPvqbSY43ShCYv-Q1RkjtlplENuPlZzvISpHSH4vIF_6YWsHTF56rHHDrBE6psnNEl6qSThXbgOWNJi3CHekYYOs-3462DzqjJh5mLF32AGIhjPcX3uqEzMcfvYSWjSPTBI/s1600/cellshade.png) repeat-x center top;
color: white;
padding: 2px 5px;
width: 40px;
text-align: center;
text-decoration: none;
float: right;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
}
div.anythingSlider .start-stop.playing { background-color: red; }
div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover { background-image: none; color: #ff0 }
/*end slider css http://www.music2radio.blogspot.com for info*/
}
/****** SET COLORS HERE *******/
/* Default State */
div.anythingSlider .thumbNav a.cur, div.anythingSlider .thumbNav a {
background: #777;
}
div.anythingSlider .anythingWindow {
border-top: 3px solid #777;
border-bottom: 3px solid #777;
}
/* Active State */
div.anythingSlider.activeSlider .thumbNav a.cur, div.anythingSlider.activeSlider .thumbNav a {
background-color: #7C9127;
}
div.anythingSlider.activeSlider .anythingWindow {
border-color: #7C9127;
}
/**** DO NOT CHANGE BELOW THIS LINE ****/
/* anythingSlider viewport window */
div.anythingSlider .anythingWindow {
overflow: hidden;
position: relative;
width: 100%;
height: 100%;
}
/* wrapper: 45px right & left padding for the arrows, 28px @ bottom for naviagation */
div.anythingSlider {
position: relative;
padding: 0 45px 28px 45px;
}
/* anythingSlider base UL */
ul.anythingBase {
background: transparent;
list-style: none;
position: absolute;
top: 0; left: 0;
margin: 0;
}
ul.anythingBase li.panel {
background: transparent;
display: block;
float: left;
padding: 0;
margin: 0;
}
/* Navigation Arrows */
div.anythingSlider .arrow {
top: 50%;
position: absolute;
display: block;
}
div.anythingSlider .arrow a {
display: block;
height: 120px;
margin-top: -60px;
width: 45px;
text-align: center;
outline: 0;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGyoZt1_9MEW0zebfW8vgMfGqokZIWN78A5lU7Zzxl54YDUmG8CK5uNxUc899uhSUVp4qwW9iLhFoXRJfgtb-mZUM-jvoSXJzpcfFLogCuoNQwQP_RnwltS5GSuP3-Y-_8Mrnl7coT0HM/s1600/arrows-default.png) no-repeat;
text-indent: -9999px;
}
div.anythingSlider .forward { right: 0; }
div.anythingSlider .back { left: 0; }
div.anythingSlider .forward a { background-position: 0 -40px; }
div.anythingSlider .back a { background-position: -88px -40px; }
div.anythingSlider .forward a:hover, div.anythingSlider .forward a.hover { background-position: 0 -240px; }
div.anythingSlider .back a:hover, div.anythingSlider .back a.hover { background-position: -88px -240px; }
/* Navigation Links */
div.anythingSlider .thumbNav { margin: 0; }
div.anythingSlider .thumbNav li { display: inline; }
div.anythingSlider .thumbNav a {
color: black;
font: 11px/18px Georgia, Serif;
display: inline-block;
text-decoration: none;
padding: 2px 8px;
height: 18px;
margin: 0 5px 0 0;
background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvzFHAzrr4dPvqbSY43ShCYv-Q1RkjtlplENuPlZzvISpHSH4vIF_6YWsHTF56rHHDrBE6psnNEl6qSThXbgOWNJi3CHekYYOs-3462DzqjJh5mLF32AGIhjPcX3uqEzMcfvYSWjSPTBI/s1600/cellshade.png);
background-repeat: repeat-x;
text-align: center;
outline: 0;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
}
div.anythingSlider .thumbNav a:hover { background-image: none; }
/* slider autoplay right-to-left, reverse order of nav links to look better */
div.anythingSlider.rtl .thumbNav a { float: right; } /* reverse order of nav links */
div.anythingSlider.rtl .thumbNav { float: left; } /* move nav link group to left */
/* div.anythingSlider.rtl .start-stop { float: right; } */ /* move start/stop button - in case you want to switch sides */
/* Autoplay Start/Stop button */
div.anythingSlider .start-stop {
z-index: 10;
background: green url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvzFHAzrr4dPvqbSY43ShCYv-Q1RkjtlplENuPlZzvISpHSH4vIF_6YWsHTF56rHHDrBE6psnNEl6qSThXbgOWNJi3CHekYYOs-3462DzqjJh5mLF32AGIhjPcX3uqEzMcfvYSWjSPTBI/s1600/cellshade.png) repeat-x center top;
color: white;
padding: 2px 5px;
width: 40px;
text-align: center;
text-decoration: none;
float: right;
-moz-border-radius-bottomleft: 5px;
-moz-border-radius-bottomright: 5px;
-webkit-border-bottom-right-radius: 5px;
-webkit-border-bottom-left-radius: 5px;
}
div.anythingSlider .start-stop.playing { background-color: red; }
div.anythingSlider .start-stop:hover, div.anythingSlider .start-stop.hover { background-image: none; color: #ff0 }
/*end slider css http://www.music2radio.blogspot.com for info*/
Note - Width And Height
Are Highlighted At The Top Of The Code and can be easily changed.Those
comfortable enough to do so can also change some of the appearance options.
Step 4. Find the
following piece of code in your blogs Html : (Click Ctrl and F for a search bar
to help find the code)
</head>
Step 5. Copy and paste
the following code Directly Above / Before </head>
<!--start slider scripts-->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'/>
<script src='http://spiceupyourblogextras.googlecode.com/files/jquery.easing.1.2.js' type='text/javascript'/>
<script charset='utf-8' src='http://spiceupyourblogextras.googlecode.com/files/jquery.anythingslider.js' type='text/javascript'/>
<script type='text/javascript'>
var slider2 = ['Recipe', 'Quote', 'Image', 'Quote #2', 'Image #2'];
function formatText(index, panel) {
return slider2[index - 1];
}
$(function () {
$('#slider1').anythingSlider({
width : 800, // Override the default CSS width
easing: 'easeInOutExpo'
});
$('#slider2').anythingSlider({
width : 600, // if resizeContent is false, this is the default width if panel size is not defined
height : 350, // if resizeContent is false, this is the default height if panel size is not defined
resizeContents : false, // If true, solitary images/objects in the panel will expand to fit the viewport
autoPlay : false, // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
navigationFormatter : formatText // Format navigation labels with text
})
$("#slide-jump").click(function(){
$('#slider2').anythingSlider(4);
return false;
});
});
</script>
<!--end slider scripts info : http://www.music2radio.blogspot.com/-->
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'/>
<script src='http://spiceupyourblogextras.googlecode.com/files/jquery.easing.1.2.js' type='text/javascript'/>
<script charset='utf-8' src='http://spiceupyourblogextras.googlecode.com/files/jquery.anythingslider.js' type='text/javascript'/>
<script type='text/javascript'>
var slider2 = ['Recipe', 'Quote', 'Image', 'Quote #2', 'Image #2'];
function formatText(index, panel) {
return slider2[index - 1];
}
$(function () {
$('#slider1').anythingSlider({
width : 800, // Override the default CSS width
easing: 'easeInOutExpo'
});
$('#slider2').anythingSlider({
width : 600, // if resizeContent is false, this is the default width if panel size is not defined
height : 350, // if resizeContent is false, this is the default height if panel size is not defined
resizeContents : false, // If true, solitary images/objects in the panel will expand to fit the viewport
autoPlay : false, // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not
navigationFormatter : formatText // Format navigation labels with text
})
$("#slide-jump").click(function(){
$('#slider2').anythingSlider(4);
return false;
});
});
</script>
<!--end slider scripts info : http://www.music2radio.blogspot.com/-->
Step 6. Save your
template.
We have now added the Css, jQuery and javascript to make the Featured Slider work next we need to add the actual content.
We have now added the Css, jQuery and javascript to make the Featured Slider work next we need to add the actual content.
Adding The Slider And Content
You will want to add the slider below your header across your blog.This position is known as 'crosscol' or Cross Column.
We all have it now so you can
click 'Add A Gadget' and choose 'Html/Javascript'.
Adding slides could not be easier, in your html/javascript gadget you add an opening tag which is <ul id="slider1"> at the top and a closing tag </ul> at the bottom and the images or videos go in the middle wrapped in list tags :
Adding slides could not be easier, in your html/javascript gadget you add an opening tag which is <ul id="slider1"> at the top and a closing tag </ul> at the bottom and the images or videos go in the middle wrapped in list tags :
<ul id="slider1">
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
</ul>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
<li>Place Image Or Video Code Here</li>
</ul>
This is the code for the slider
on the demo page :
<ul id="slider1">
<li><iframe width="640" height="390" src="http://www.youtube.com/embed/FFVSa4HEW1k?rel=0" frameborder="0" allowfullscreen></iframe></li>
<li><a href="http://www.music2radio.blogspot.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwBkFrK-geN0n8mKYAZ2eDv6-Lth8B_6VudjBb39H8qslNdxfN7B3ynp6i8CVAlfKBkmCtXaxhPbFJA-DC9c0a3M9DTAZbyoA6ecBBqnBVayVys14fpjmuoggBGA8uO9U5mZc8B6OBMOM/s1600/slide-civil-2.jpg" alt="" /></a></li>
<li><iframe width="480" height="385" src="http://www.youtube.com/embed/DbtrJmjXMOk?rel=0" frameborder="0" allowfullscreen></iframe></li>
<li><a href="http://www.music2radio.blogspot.com /"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQZpZTXpKXVYLC8v11_CEJNaGl7foX_N2oaTWh-EJL-y5yxxBpDwRo6RwinMg8QlC4PVNbKCuUP-QadVPl8fJ-QBSjs7ngA221ctl5O2g63HD3fE2PYWT0x-c_OGdxVR2-_rgv8UucaaQ/s1600/slide-civil-1.jpg" alt="" /></a></li>
<li><iframe width="640" height="390" src="http://www.youtube.com/embed/bz9LOf9j-DA?rel=0" frameborder="0" allowfullscreen></iframe></li>
<li><a href="http://www.music2radio.blogspot.com /"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh__ChB7B4QwkFA35yJ3B7B6A2XBiz2RKycs-aHQH9UQbJZTlZ6yfoykJS0PuoN9jliysiU_Rm3UWxRucgnP4q5LB2bbmsEvqxvsHet3om6wda6rYdZEHeoiE-gz_5KK6ZqetYYCRX2O4Q/s1600/slide-env-2.jpg" alt="" /></a></li>
</ul>
<li><iframe width="640" height="390" src="http://www.youtube.com/embed/FFVSa4HEW1k?rel=0" frameborder="0" allowfullscreen></iframe></li>
<li><a href="http://www.music2radio.blogspot.com/"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwBkFrK-geN0n8mKYAZ2eDv6-Lth8B_6VudjBb39H8qslNdxfN7B3ynp6i8CVAlfKBkmCtXaxhPbFJA-DC9c0a3M9DTAZbyoA6ecBBqnBVayVys14fpjmuoggBGA8uO9U5mZc8B6OBMOM/s1600/slide-civil-2.jpg" alt="" /></a></li>
<li><iframe width="480" height="385" src="http://www.youtube.com/embed/DbtrJmjXMOk?rel=0" frameborder="0" allowfullscreen></iframe></li>
<li><a href="http://www.music2radio.blogspot.com /"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQZpZTXpKXVYLC8v11_CEJNaGl7foX_N2oaTWh-EJL-y5yxxBpDwRo6RwinMg8QlC4PVNbKCuUP-QadVPl8fJ-QBSjs7ngA221ctl5O2g63HD3fE2PYWT0x-c_OGdxVR2-_rgv8UucaaQ/s1600/slide-civil-1.jpg" alt="" /></a></li>
<li><iframe width="640" height="390" src="http://www.youtube.com/embed/bz9LOf9j-DA?rel=0" frameborder="0" allowfullscreen></iframe></li>
<li><a href="http://www.music2radio.blogspot.com /"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh__ChB7B4QwkFA35yJ3B7B6A2XBiz2RKycs-aHQH9UQbJZTlZ6yfoykJS0PuoN9jliysiU_Rm3UWxRucgnP4q5LB2bbmsEvqxvsHet3om6wda6rYdZEHeoiE-gz_5KK6ZqetYYCRX2O4Q/s1600/slide-env-2.jpg" alt="" /></a></li>
</ul>
Highlighted in yellow you can see how the videos were added and highlighted in red you can see how the images were added.That's it, a unique jQuery featured slider for both images and video.
Thanks to Css Tricks for the very cool Slideshow and there is actually another few versions of this slider we may cover in the future.
If you face any problem in this post please let me know your problem. To inform your problem you can leave a comment below. And if you like my post please click the Facebook like button or spread this post by clicking the Twitter, Facebook etc. icons below. Because, it will be a great support for me.
No comments