Fade-out scrolling

Pre 2006

Blow, Blow, Thou Winter Wind

by William Shakespeare

Blow, blow, thou winter wind,
Thou art not so unkind
As man's ingratitude;
Thy tooth is not so keen

Because thou art not seen,
Although thy breath be rude.
Heigh-ho! sing heigh-ho! unto the green holly:
Most friendship is feigning, most loving mere folly:
Then, heigh-ho! the holly!
This life is most jolly.

Freeze, freeze, thou bitter sky,
Thou dost not bite so nigh
As benefits forgot:
Though thou the waters warp,
Thy sting is not so sharp
As friend remember'd not.
Heigh-ho! sing heigh-ho! unto the green holly:
Most friendship is feigning, most loving mere folly:
Then, heigh-ho! the holly!
This life is most jolly

copyright © stu nicholls - CSS play

Information

This one has been done a few times over the last year or two, but the examples I have seen only have fade-out at the bottom and also have been let down by not having an alternative for IE and using 'foreground' images which cause problems for 'non css browsing'.

This version has fade-outs at the top and bottom, uses transparent .png files for non-IE browsers and alternative transparent .gifs for IE5+ and IE6 (not quite so good). IE7, when it arrives will have transparent .png support so will see that version.

The css is very simple and all you need specify is the container width and the scrolling div height.

This does show up a bug in Opera v8.5 whereby the scroll bar doesn't work but the mousewheel does, and what is more, once the mousewheel is active you can move the mouse outside the container and it will still scroll.

There are four images used in this demo, two png files for browsers that understand and two gif files for IE5.5 and IE6. I have placed these below on a red background so that you can see them more clearly.

Top gif

top gif

Bottom gif

bottom gif

Top png

top png

Bottom png

bottom png

18th December 2005

Opera now fixed.


Copyright

You may use this method on your personal 'non-profit' web site without seeking my permission. A link back to CSSplay is always appreciated.

Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.


Please ask permission before using or copying this example to your web site.


Please Support CSS play

Please note that if your donation is for a demo/menu then you will need to email me with the url of the demo/menu after making the donation

For more CSS demonstrations I recommend that you visit the Dynamic Drive CSS Library.


Free, practical CSS menus, layouts, and examples

Soft Geometry Creative Industries

Soft Geometry Creative Industries
is a music-based design company located in Bristol UK.
I create artwork for albums, singles, posters and t-shirts.
My work is influenced by punk and post-punk poster and flyer design,
lo-fi photocopy aesthetics,
Francis Bacon and Mark Rothko.

I can provide a start to finish service with my own art and photography, put together work from images provided by yourself, and collaborate on an idea.
softgeometrycreative{at}gmail.com

Follow CSS play


Facebook   Twitter   Facebook Fan Page