• Home
  • Easy Surf
  • Bug Me
Blue Orange Green Pink Purple

Featured-content

Is Bada the new best rival to iOS and Android? ...

Or just another piece of never-ending headache and torture for the customers! Decide yourself with a video

Read More

New Year's Greetings from Google

#2 Amazing CSS effect: Add a Polaroid effect to your snaps with a twist

Since this is my third blogger tutorial, I would like to know whether my previous tutorials have helped you in any way at all, if it has then it is my pleasure.Please dont be shy to send me queries,or ask some info or help you with any problem.

Now to get back to the Polaroid effect, as you know there are already many tutorials on Polaroid boxes, but i will also show you how to add an animated caption.



  • Well to start off, go to the Edit HTML page and add the following CSS code before ]]></b:skin> section the document.
 td.pol{
background-color: #F2F5ED;
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, .25);
padding: 20px 20px 25px 20px;
-webkit-transition: all .5s ease-out;
-moz-transition: all .5s ease-out;
-webkit-transform: rotate(-6deg);
-moz-transform: rotate(-6deg);
border-radius: 1px 3px 2px 4px;
border: 1px solid whiteSmoke;
box-shadow: 0px 0px 10px rgba(0, 0, 0, .75);
}


td.pol{
border-radius: 2px 3px 2px 4px;
border: 1px solid whiteSmoke;
background-color: #F2F5ED;
padding: 20px 20px 25px 20px;
text-align: center;
box-shadow: 0px 0px 10px rgba(0,0,0,.25);
-webkit-box-shadow:0px 0px 10px rgba(0,0,0,.25);
   transition:all .3s ease-out;
    -webkit-transition:all .5s ease-out;
    -moz-transition:all .5s ease-out;
    -webkit-transform:rotate(-6deg);
    -moz-transform:rotate(-6deg);
   }


td.pol:hover{
    box-shadow:0px 0px 15px rgba(2, 2,2,.5);
    -webkit-shadow:0px 0px 15px rgba(2,2,2,.5);
    -webkit-transform:rotate(-2deg);
    -moz-transform:rotate(-2deg);
    -webkit-transform:scale(1.2,1.2);
    -moz-transform:scale(1.2,1.2);
}
p.cap1
{
font-family: 'Special Elite', arial, serif;
color: silver;
font-size: 12px;
-webkit-transition: all .3s;
-moz-transition:all .3s;
text-shadow: 0px 0px 1.5px rgba(0, 0, 0, 0.5);
-webkit-transform: rotate(90deg);
bottom: 20px;
position: absolute;
left: -20px;}


.ff p:hover{color:black;
font-weight:normal;
text-shadow: 0px 0px 1.5px rgba(0, 0, 0, 0.2)}


p.cap2{
z-index:3;
color: silver;
font-size: 18px;
-webkit-transition: all .3s;
-moz-transition:all .3s;
text-shadow: 0px 0px 1.5px rgba(0, 0, 0, 0.5);
font-family: 'The Girl Next Door', arial, serif;
vertical-align: text-bottom;}


Also you will need the font so add the following piece of code after head tag.


<link href='http://fonts.googleapis.com/css?family=Special+Elite&amp;subset=latin' rel='stylesheet' type='text/css'/>                                                                      <link href='http://fonts.googleapis.com/css?family=The+Girl+Next+Door&amp;subset=latin' rel='stylesheet' type='text/css'/>  

  •  Now that the coding part is done, its time to for a demo.


      To use your CSS Polaroid effect simply  add the attribute
      class='pol'  to the <td> tag inside a table.
      The advantage of this is that you can add the Polaroid effect to  
       a  photo of any size without the hassle of awkwardly sized 
       images due to preset sizes.
     
     
      For the two captions use the selector for the Date as
     class='cap1' 
     and for the text caption as
     class='cap2'


See the Example below:

<table>       <td class='pol'>

 <img src='http://ih1.redbubble.net/work.4976985.1.flat,550x550,075,f.old-analog-nostalgia.jpg'/>

<p class='cap1'>20/04/89</p> <p class='cap2'>The backyard mobike pic </p>

</td>        </table>




20/04/89

The backyard mobike pic 


So pretty neat right, feel free to use it and ask me if you have any problems.







Read More 0 comments | Posted by Hemanth at Friday, May 06, 2011 | edit post

0 comments



Post a Comment

Newer Post Older Post Home

Popular Posts

  • The Most Naive pet in the world!
    If there is one thing  about cats its that they are one of the most unpredictable creatures.You don't know when they are happy or angry ...
  • My first Post
    Hello to everyone so i would like to begin with my first post. And this is going be about an extract from The Secret     If you look at what...
  • Amazing CSS effect : Make Link Buttons that GLOW
    Please use Chrome or Safari to be mystified by the animation.Firefox doesn't work. Once again a very happy day to all of you.This...

in Touch : Leave Your Comments on My Blog

HTML Comment Box is loading comments...

Popular Feeds

Blog 4 Fun
Join me on Facebook Follow me on Twitter Subscribe to RSS

Artist iLIKE.Let the music play.

One Republic - Good Life

Music Bar

Blog 4 Fun

Everything is energy

About

A Blog created by accident but will be kept alive for you.
This blog here is dedicated to expanding your knowledge on everything we see,feel,hear and speak about.
Read your greed on topics like

Web 2.0

Tech

Life as it seems

Music

Latest buzz and happenings

Your presence at the blog is highly valued and is our most prized possesion.
-Thank You

Please use Chrome for a proper compaitability

Like
My Great Web page
Share My Blog
Let me Simplify
  • What's happenin? (9)
  • Life (8)
  • What the Tech? (6)
  • Fotography (3)
  • Fun-attainment (2)
  • Fusic (1)
Blog Archive
  • ▼  2011 (11)
    • ►  August (1)
    • ▼  May (1)
      • #2 Amazing CSS effect: Add a Polaroid effect to yo...
    • ►  April (1)
    • ►  March (1)
    • ►  February (3)
    • ►  January (4)
  • ►  2010 (11)
    • ►  December (4)
    • ►  November (3)
    • ►  October (1)
    • ►  September (3)
Free counters!

Best Of The Best (remix) Edited | Online Karaoke
  • Search My Blog






  • Hemanth
    About The Author

    I am your non average 10th grader boy and this Blog here is dedicated to posting on topics of what will interest you.I am not a great programmer or html coder or a great word weaver but i will do my bit in connecting with you.
    • Home
    • Posts RSS
    • Comments RSS
    • Easy Surf

    © Copyright Blog 4 FUN. All rights reserved.
    Designed by FTL Wordpress Themes | Bloggerized by FalconHive.com | Blogger Templates
    brought to you by Smashing Magazine

    Back to Top