I have a slight issue which I'm not sure has a solution.
Basically I want to create an opacity gradient on a div borders non dependant on a color.
Let me explain.
I have an "overflow:hidden" div (which we'll call MainDiv) that contain another big div (which will call SlideDiv) that I slide across the viewport using jquery. The main div has a "full viewport" background complex image that moves as well. The all thing create a really nice parallax effect.
As expected the "SlideDiv" content disappears beyond the viewport border. Now here is the trick. I'd like the content to not just disappear but to fade away :)
For this to work, I need to engineer an opacity gradient on the viewport borders. And as there is a complex image on the background that must be visible at all time, this gradient cannot be color related. In other terms, I'd like a "opacity:1 (we see the content) to opacity:0 (we don't see the content)" gradient and not a "opacity:0 (we see the content) to White/Black/Green/AnyColor opacity:1 (the content is behind a opaque color)" gradient.
That means that I can't use -webkit-gradient or -moz-linear-gradient. Or can I ?
I'm afraid I can't show you any thing for business related reasons.
Questions are : - Is it possible using CSS2 or 3, jQuery or a plugin or any other technology (excluding flash) ? - And if so, how ? :)
I hope I'm clear, but I'm not so sure so sorry guys ;)
Regards, Jibou
Take a look at this. You can choose the gradient you like and from it you can save the CSS for any browser that support gradients