Saturday, September 15, 2012

Animated Circle Gallery with Pan Style For Blogger

In this post i will explain, how to add circle image gallery with pan style.This will give a nice look to your blog.Im using css3 for this gallery.It include nice hover style. you can try to add it to your blog. Earlier image effect post are
here. Check demo below.

Demo

circle-gallery


1. Log in to blogger account and Go to Design >> Edit HTML
    (make sure backup your template first)

2. Put checked marked in Expand Widget Templates

3.Find this code  by using Ctrl+F  ]]></b:skin>

4.  Paste below code Before ]]></b:skin> code

/*GALLERY-Bloggertrix.com*/
.gallery {
    width: 800px;
    margin: 50px auto;}
ul {
    list-style: none;}
.gallery li {
    height: 100px;
    width: 100px;
    margin: 15px;
    float: left;
    overflow: hidden;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;}
.gallery li img {
    margin: -100px 0px 0px 0px;
    z-index: -1;
    -webkit-transition: margin 1.5s ease;
    -moz-transition: margin 1.5s ease;
    -o-transition: margin 1.5s ease;
    -ms-transition: margin 1.5s ease;
    transition: margin 1.5s ease;
}
.gallery li:hover img {
    margin-left: -150px;
    margin-top: -150px;
    cursor: pointer;
}
.gallery li p {
    width: 100px;
    padding: 20px;
    position: relative;
    left: 15%;
    top: 110%;
    z-index: 1;
    color: white;
    text-align: center;
    text-transform: uppercase;
    font: bold 18px/1 Helvetica, Verdana, sans-serif;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
    -webkit-transition: top 0.5s ease;
    -moz-transition: top 0.5s ease;
    -o-transition: top 0.5s ease;
    -ms-transition: top 0.5s ease;
    transition: top 0.5s ease;
}
.gallery li:hover p {
    top: 75%;
    margin:-55px 0 0 -35px;}

5. Go to blogger  Design > Page Element.

6. Click Add Gadget and select 'HTML/Javascript

7.Paste below code.
<div class="gallery">
        <ul>
            <li><p>Swing</p><img src="http://2.bp.blogspot.com/-zUNMFcjPkVc/UFKze3KmDoI/AAAAAAAABJo/pjMHgg5pQBk/s1600/bloggertrix-image1.jpg" /></li>
            <li><p>Surf</p><img src="http://1.bp.blogspot.com/-b9PVVUdbazM/UFKzfvIAiUI/AAAAAAAABJw/sG4HTNpUZqI/s1600/bloggertrix-image2.jpg" /></li>
            <li><p>Pedal</p><img src="http://2.bp.blogspot.com/--NQaW8tsOvU/UFKzg9K_2JI/AAAAAAAABJ4/TXXQznWZMMA/s1600/bloggertrix-image3.jpg" /></li>
            <li><p>Thrash</p><img src="http://2.bp.blogspot.com/-uvgnXBAl4Qw/UFKziLLz1tI/AAAAAAAABKA/NvIun8orB9U/s1600/bloggertrix-image4.jpg" /></li>
            <li><p>Ride</p><img src="http://1.bp.blogspot.com/-Fd7M8t2K9SM/UFKzjTPwV5I/AAAAAAAABKI/9GGqFcjF9aA/s1600/bloggertrix-image5.jpg" /></li>
            <li><p>Kick</p><img src="http://3.bp.blogspot.com/-AfR7psaTteI/UFKzkvZrp9I/AAAAAAAABKQ/TWdOBy0to8g/s1600/bloggertrix-image6.jpg" /></li>
            <li><p>Dive</p><img src="http://1.bp.blogspot.com/-UTlXzPKVZOs/UFKzls4isDI/AAAAAAAABKY/g2hX045rWHw/s1600/bloggertrix-image7.jpg" /></li>
        </ul>
</div>

8. Now save your template. You are done.

0 comments:

Post a Comment