Use your left/right keys to browse tutorials
Building an animated 3D poll

Building an animated 3D poll

1 Star2 Stars3 Stars4 Stars5 Stars
Posted on June 10, 2010

Regular readers of Papermashup will have seen the post that I wrote last week on Easy Poll, the personal project that I launched a few weeks back that allows you to create a simple 2 answer poll that you can share and gather feedback on. You can read the post about it and check out easypoll.papermashup here I’d love to hear your feedback.

I thought i’d cover how to create a 3d animated poll using jQuery and CSS similar to the polls page on Easy Poll.

The Code

I don’t usually do this but here’s the complete code snippet so you can see the JavaScript CSS and HTML all in one space. most of the configuration is achieved thought the CSS but you’ll notice that on page load the bars animate to the correct height using the jQuery animate function which we’re passing a percentage height into.

.rating {
background-position:bottom left;

.graph {

.graph .bar1, .graph .bar2, .graph .bar3{
background-position:top left;
font-family:Arial, Helvetica, sans-serif;

.graph .bar1 span, .graph .bar2 span,  .graph .bar3 span  {
text-shadow:0 1px #fff;

<script type="text/javascript" src=""></script>
<script type="text/javascript">







<div class="polls">

        <div class="rating">
            	<div class="graph">
                	<strong class="bar1">
			<div class="ans">Answer 1</div>

	     <div class="rating">
            	<div class="graph">
                	<strong class="bar2">

		   <div class="ans">Answer 2</div>

            <div class="rating">
            	<div class="graph">
                	<strong class="bar3">

		   <div class="ans">Answer 3</div>

        <div class="clear"></div>



More tutorials from Papermashup
5 discussions around Building an animated 3D poll
  1. Clint Hansen says:

    I would like to use this animated 3D chart on a webpage that pulls data from a Google spreadsheet I’ve already set up. My problem is not knowing the code to place into the provided chart code to make it read from and display the spreadsheet. Any help would be greatly appreciated!

  2. Joseph says:

    hi ,Dear Ashley
    i saw your code and watche the Demo ….it was amazing

    would u pleas tell me can use it in ASP.Net Project,for example in the eShop web site
    in one ASP page show the items the Customer buy from eShop?

    thanks a lot,have nice Day

  3. Juan says:

    Very nice like always!

  4. Pingback: Tweets that mention Building an animated 3D poll | --

Never miss an update from Papermashup

Get notified about the latest tutorials and downloads.

Subscribe by Email

Get alerts directly into your inbox after each post and stay updated.

Subscribe by RSS

Add our RSS to your feedreader to get regular updates from us.

Get in contact

Please use the form below to get in contact. If your question is related to a free script download, please use the comments on the article page as community members are more likely to respond quicker than I can personally.

About Me

I'm Ashley Ford, Co-founder and Technical Director at London, UK. Previously I worked at InMobi, Spotify and MySpace. My interests include photography and making short videos I'm also an avid F1 fan. I'm always working on side projects. Here are a few: Easy Poll, We Deliver.

What do you specialise in?

I spend a lot of time coding in PHP and MySQL, as well as front end XHTML and CSS. I also specialise in javascript and the jQuery framework as well as being an avid designer. You can find me on dribbble

Interested in advertising?

If you'd like to advertise on please get in touch via the contact link below for advertising opportunities.

How do I contact you

You can contact me here. and I'm available for consultation, freelance, programming book reviews.

Get on the mailing list

Join over 3000 people who have subscribed to the Papermashup inbox message, and be the first to find out about tutorial, competitions and giveaways.