• Home
Blue Orange Green Pink Purple

An analogue clock using only CSS

Posted in CSS. on Friday, March 27th, 2009 by dale Tags: CSS, Javascript, safari
Mar 27

Paul Hayes of London has created an interesting experiment that shows how you can create an analogue clock using just CSS and JavaScript is only used to get the current time.

Definitely shows some of the power of Safari’s css transition effects.

Note: The clock is Safari or Google Chrome only!

This is where the magic happens, using the power of WebKit.

/* -webkit-transition: property duration timing-function */
#clock img[src*='hour'] {
-webkit-transform: rotate(90deg);
}

#clock img[src*='second'] {
-webkit-transition: -webkit-transform 60s linear;
}

#clock:target img[src*='second'] {
-webkit-transform: rotate(360deg);
}

1 Comment

  1. RAFAEL on September 11th, 2010


    CheapTabletsOnline.com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. Low price drugs. Order drugs online…

    Buy:Tramadol.Levitra.Viagra Soft Tabs.Soma.Viagra Super Active+.Viagra.Viagra Professional.Cialis Soft Tabs.Zithromax.Viagra Super Force.Super Active ED Pack.Cialis Professional.Propecia.Cialis.VPXL.Cialis Super Active+.Maxaman….



Leave a Reply

You must be logged in to post a comment.

  • About
    I am a developer for NXT in Johannesburg, South Africa. Trying to keep afloat in the rat race by grabbing onto new-tech that floats.
  • Get Connected
                              
  • Tweets