Alex Rivera | Logout

Fade edges of div with jQuery

Asked 2010-08-15T21:40:44.967
14

How can I fade edges of a div with jQuery? Think of a carousel with images inside that slides horizontally. How can I fade out the left and right sides so that images near the edges disappears gradually.

Hope it's clear. :)

Edit
Report

1 Answer

0

Like Alex said, the easiest way is probably overlaying something to fade the underlying div out. I would however simply use a png transparent gradient.

This won't easily work within IE6 though, but there is always a way (personally I don't support IE6 anymore):

http://24ways.org/2007/supersleight-transparent-png-in-ie6

answered 2011-04-27T07:28:31.993

Your Answer