Search Blog








Simple Blogger Post Slider With Carousel Effect

Post slider is a awesome way to impress your audience.you can place this slider below header.you can add link in this post slider.you can add feature post or popular post,You can add link of your choice its totally customize widget to add any link for slider in blogger.you  have no need to edit your template, just add this widget in gadget of html/javascript by going layout of blogger.this slider become in action when you mover your cursor over slider image and if you click on image it will redirect to link of post you added.when you move cursor toward right slider post move to show more post behind while moving toward left it show more post same wise.


feature post slider for blogger




In below image you can see slider boarder is blue but we can change it.i will describe customization of slider and post.you can change url link to image and when you hover your mouse you can see title of post.It can also be change.while if you want to add more post in slider then you have to do few more step, i will also describe how to add as many post as you want in slider.



How to add feature post slider

Login to blogger account go to layout

Add gadget of Html/javascript 

Paste below code there.

<style>    #BloggerSpiceCarouselSlider {      height:130px;      background-color:#ffffff;      border:2px solid #3399ff;      position:relative;      margin:50px 50px;      overflow:auto;    }        #BloggerSpiceCarouselSlider:before,    #BloggerSpiceCarouselSlider:after {      content:"";      display:block;      position:absolute;      top:0;      bottom:0;      left:-4px;      width:4px;      height:100%;      box-shadow:0 0 4px black;      z-index:10;    }    #BloggerSpiceCarouselSlider:after {      left:auto;      right:-4px;    }/* CarouselSlider by 5gblogger.blogspot.com  */    #BloggerSpiceCarouselSlider .container {      position:absolute;      top:0;      left:0;      margin:5px 0 0 5px;      width:300%;      height:120px;    }    #BloggerSpiceCarouselSlider figure {      display:block;      background-color:white;      float:left;      width:150px;      height:120px;      margin:0 5px 0 0;      position:relative;      overflow:hidden;    }    #BloggerSpiceCarouselSlider figcaption {      display:block;      position:absolute;      right:0;      bottom:-50px;      left:0;      background-color:black;      font:italic normal 11px Arial,Sans-Serif;      color:white;      padding:4px 10px;      text-align:left;      opacity:.8;    }    #BloggerSpiceCarouselSlider figure img {      display:block;      border:none;      margin:0 0;    }    </style>    <div id="BloggerSpiceCarouselSlider">        <div class="container">            <figure>                <a href="#" title="Title for Caption">                    <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTjMw-CeQaBs6Q8Y1Rvu8nZHqkMZ3S9UWjYuazi706J8rFtJii-a1GXfqamdVwQD8H2lhE7-jK7_vtk_1OPjKntBPvQ993zW1ElAASdGd51lTp9VJUpMkJLzgzYeoxRCS38yt6tiOxTxU-/s1600/7.jpg" />                </a>            </figure>            <figure>                <a href="#" title="Title for Caption">                    <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlvhwswF4FaoCuX-bGWbXIXO4VURiC2Q9fll1iq2i_iOkwF1qzGvDRAWITzRJUNfXjdUx0c0wy1uJZasz4da8T3q-l-TJZxmeQlABnHJakfMZHMyPKKKh7ef9FjgvsO22BPXHtUA6bZE_X/s1600/9.jpg" />                </a>            </figure>            <figure>                <a href="#" title="Title for Caption">                    <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoHq3oDJYIJITOPe-gMILkA_AahJP-42Q78r8S1XmtL4QxhizieZBDvGJfcQYym3FpOoKG0jl_OpEy201xW-bVi8Z-yEv0f5YYqCuqE5L8dAsHszn6Q9872uuhDTC2DWKoKr4U192ZQt4B/s1600/10.jpg" />                </a>            </figure>      <figure>                <a href="#" title="Title for Caption">                    <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnNRP73MYQYPVx7FX2W6dbTZZOhcPDZDeNHVfJgdrCaT0EqxD9cV6ZNX3Ohj2_jORauqbZ0KQjKjLEC2Aerw3dpZTA4zD6ldl1o-uGe_V05TZyG-2NqNlSCUYM5fPatTql8ggNi-TPRv3E/s1600/8.jpg" />                </a>            </figure>            <figure>                <a href="#" title="Title for Caption">                    <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgVnb6hyo-8qNd55kEgZz7bC1Rv5QLMWkYk_KPTuMDVlyz2qxKk42Y_szUhCEq-a_3bdRROcB8qpJCUnaQvJlTK0vSPb4topcNDviwNtYiAeWim2MUnNuL6i8lE6Xy3y2l1Bhoevaxoufd/s1600/6.jpg" />                </a>            </figure>            <figure>                <a href="#" title="Title for Caption">                    <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQFgJcebk5BHb14Py7gb-I8ZPHYaCshpEXUwbJZBNh0PUpdZdEpBT7bIe3E-gWoJjkp_3UdFKKofeD77PTDVWEvS9CawDGJ1g1UaCMvMzU1P8HaGzjWrrXELBRbGwmiN9m8V_rSY6X3-mL/s1600/4.jpg" />                </a>            </figure>      <figure>                <a href="#" title="Title for Caption">                    <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgOczrUjVemE-2HKkNPCXiaGRC11FQuvQtsr1YXNrQjP6MWssMoRX11uxgj0YeHqnUcPqZ9tryQd5vurn-quGKggiV8sImqp2R6Fcann7sB2OqvtmfXkjwNUssTeQpssWKDZsBlicf_D4B7/s1600/3.jpg" />                </a>            </figure>            <figure>                <a href="#" title="Title for Caption2">                    <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRMGGh7NiSYGOSObVJG_ZcfcQGpDq4JteCsxCWbUStyRD_OMKXu4mVzwC6TlToykO-Kww8yGCtLrKe499hazs2zFDBdA-cnB6SA0cgin2RSJse30kRNytwS-n8mG7skv8hutlnP0TL-s_k/s1600/2.jpg" />                </a>            </figure>            <figure>                <a href="#" title="Title for Caption">                    <img alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPU3ey6QMPuTidu8U-Pa0BKThzCM1EOlB2INhDpRo7_69NpMmoW_YiW90WcKj-2AqlvQYkx3wud8weygjlXFRPJ1VL7f7oT7Rq2iVR3wxsYzDVCRveh2Z9CvhxweKgWsCDVOU5fyugsbaZ/s1600/1.jpg" />                </a>            </figure>        </div>    </div>
    <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>    <script type='text/javascript'>//<![CDATA[    (function($) {        var config = {            itemMargins: 5 // Distance between the thumbnails        };        var $thumbnailScroller = $('#BloggerSpiceCarouselSlider'),            $container = $thumbnailScroller.find('.container'),            $item = $container.find('figure'),            item_length = $item.length,            item_width = $item.outerWidth(),            item_margin = config.itemMargins,            total_width = (item_width + item_margin) * item_length,            $window = $(window);        $thumbnailScroller.css('overflow', 'hidden');        $container.css('width', total_width);        // Auto caption builder & hover effect        $item.each(function(cap) {            if ($(this).children().attr('title')) {                cap = $(this).children().attr('title');                $(this).children().removeAttr('title');                $(this).append('<figcaption>' + cap + '</figcaption>');            }        }).hover(function() {            $(this).find('figcaption').stop().animate({                bottom: 0            }, 200);        }, function() {            $(this).find('figcaption').stop().animate({                bottom: -50            }, 200);        });        $window.on("resize", function() {            var o_l = $thumbnailScroller.offset().left,                t_w = $thumbnailScroller.width(),                c_w = total_width;            $thumbnailScroller.on("mousemove", function(e) {                if ($(this).width() < $container.width()) {                    $container.css('left', -((e.pageX - o_l) * (c_w - t_w) / t_w));                }            });        }).trigger("resize");    })(jQuery);    //]]>    </script>

Place the gadget below header and do not forget to save arrangements.




How to change image and links in slider

You will find many section like this in above code highlighted in red color.


<figure>
                <a href="#" title="Title for Caption">
                    <img alt="" src="image url" />
                </a>
            </figure>

Change # with link of your post link

Replace Title for Caption with your post title, use small title for post.

Upload your image on blogger or any where on internet.copy your image url and replace it with image url in slider.

Remember use image of 150px width x 120px height


Save gadget after every change.Enjoy beautiful post slider in blogger.I have tested this slider widget, it is working fine but if you have any problem in installing feel free to ask me.Also hit like if you think this post is helpful.

IconIconIconFollow Me on Pinterest
Blog Widget by LinkWithin