We're hiring
Comments (2)Published: 05/12/2010 13:08:21   Author: Adam Hewartson

After seeing a few sites have options for colours, I thought it’d be cool to have a site that you could dynamically change the colour of, on the fly. Of course, this would make gradients harder to pull off but, with pngs and grayscale alpha gradients, even these were possible if the site had a solid colour background. Yes, CSS3 allows for gradients but the logo needed intricate details, and rounded corners aren't supported by IE without JavaScript.  

To select the colours I used the farbtastic plugin for jQuery and made a very simple design, using the Motive logo as a start point. I put the farbtastic parts on a floating area on the left. I added a style attribute, created dynamically when the numbers are changed, and it runs very smoothly. It’s slightly hypnotic at times but it allows for a potential site customisation that clients could appreciate.
 

You can view a preview here

Tags: gradients, JavaScript, colours

Comments
Pete Montgomery
This is literally brilliant!
14/02/2011 13:22:23

Avatar
Adam Hewartson
Glad you like it, it can't really be used in most sites as they need to expand on the clients own brand and that usually involves colours. However it is still useful if they don't have brand guidelines or colours aren't a factor. Plus it is pretty funky to play with ;-)
18/02/2011 15:40:50

Leave comment Subscribe


(will not be published)

 Security code

It's kind of hypnotising

Add to Delicious Add to Digg Add to StumbleUpon