cialis online pharmacy generic xenical cheap cialis online cialis generic viagra online in canada buy cheap levitra online cialis without a perscription order viagra uk no prescription flagyl cheap generic levitra buying viagra in the uk cheap viagra approved cialis deltasone online buy viagra online without prescription non prescription cialis buy orlistat uk buy cialis in india prednisone 60 mg female viagra online buy viagra without prescription celebrex prescriptions buy cialis canada best prices viagra alternative to prednisone cheapest generic levitra levitra 5mg cheap viagra cialis on line buy xenical without prescription online accutane canadian health care prednisone no prescreption viagra online generic female viagra europe buy cialis low price cheap india viagra

jQuery Animated Cartoon Robot

One of the coolest things about jQuery is that you can experiment with it, like with this animated robot. Here is a sample of how one can do this, based on Anthony Calzadilla’s design.

It’s easy to modify and loads fast, with the end product similar to Flash designs but with more advantages. Web designers and developers are sure to find this tutorial inspiring!

Click on the above image to see the demo.

Below are the codes for this awesome animation.


<div id="wrapper">
<div id="cloud-01">
<div id="cloud-02">
<div id="mountains-03">
<div id="ground">
<div id="full-robot">
<div id="branding"><h1>Robot Head.</h1></div>
<div id="content"><p> Robot Chest.</p></div>
<div id="sec-content"><p> Robot Pelvis.</p></div>
<div id="footer"><p> Robot Legs.</p></div>

CSS Style

h1, p { position: absolute; left: -9999px; }

div {position: relative;}

#wrapper { background: #bedfe4 url(../images/sun.png) no-repeat left -30px; border: 5px solid #402309;}

#cloud-01 { background: url(../images/clouds-01.png) no-repeat left -100px; }                                                         

#cloud-02 {                  background: url(../images/clouds-02.png) no-repeat left top; }

#mountains-03 { background: url(../images/mountain-03.png) no-repeat left bottom; }

#ground { background: url(../images/ground-05.png) no-repeat left bottom; }

#full-robot { width: 271px; }

#branding {
                    background: url(../images/robot-head.png) no-repeat center top;
                    width: 271px;
                    height: 253px;
                    z-index: 4;

#content {
                    background: url(../images/robot-torso.png) no-repeat center top;
                    width: 271px;
                    height: 164px;
                    z-index: 3;
                    margin-top: -65px;

#sec-content {
                    background: url(../images/robot-hips.png) no-repeat center top;
                    width: 271px;
                    height: 124px;
                    z-index: 2;
                    margin-top: -90px;

#footer {
                    background: url('../images/robot-legs.png') no-repeat center top;
                    width: 271px;
                    height: 244px;
                    z-index: 1;
                    margin-top: -90px;

jQuery Javascript

$('#cloud-01').css({backgroundPosition: '0 -80px'});
$('#cloud-02').css({backgroundPosition: '0 -30px'});
$('#mountains-03').css({backgroundPosition: '0 50px'});
$('#trees-04').css({backgroundPosition: '0 50px'});
$('#ground').css({backgroundPosition: 'left bottom'});
$('#branding').css({backgroundPosition: 'center 0'});
$('#content').css({backgroundPosition: 'center 0'});
$('#sec-content').css({backgroundPosition: 'center 0'});
$('#footer').css({backgroundPosition: 'center 0'});
$('#wrapper').css({overflow: "hidden"});

                                         $('#cloud-01').animate({backgroundPosition: '(-500px -80px)'}, 20000);
                                         $('#cloud-02').animate({backgroundPosition: '(-625px -30px)'}, 20000);
                                         $('#mountains-03').animate({backgroundPosition: '(-2500px 50px)'}, 20000);
                                         $('#ground').animate({backgroundPosition: '(-5000px bottom)'}, 20000);


                    $("#full-robot").animate({left:"50%",marginLeft:"-150px"}, 2000);


var num = 1;

function startHim(){
                    } else {

function bounceHim(){

function leaveScreen(){
                    $("#full-robot").animate({left:"100%",marginLeft:"0px"}, 2000);

Related Posts

10 Great jQuery Plugins for November 2013

Halloween Free HTML5 Theme

Create Google Play’s Tab Navigation Using jQuery And CSS

How To Create A Basic Social Sharing Button

1 Comment

  1. this animation is awesome guys, i luv it :)
    thx for the tuts..