Time is after
CSS style theme switcher
What does this thing do?
6 times a day, the body will change to a different class name. In the css file CSSTimeSwitch.css will be defined what has to change.
- after 01:00 => class .night
- after 07:00 => class .morning
- after 11:00 => class .noon
- after 13:00 => class .afternoon
- after 17:00 => class .late-afternoon
- after 20:00 => class .evening
The class names are changed with a javascript, if javascript is disabled the general style will be used.
How does it work
- Insert the javascript and css in your html page
- Define your styles in CSSTimeSwitch.css
- I have used the css gradients to change to background color
- Have fun