简体   繁体   中英

Web: Dynamic transparent gradient

How can I make transparent gradient on my webpage like that on the picture? I can't use png for that, because images are loaded from server dynamically and will be scrolled:

在此输入图像描述

Scroller is written in JS. I don't want to use flash for that gradient.

EDIT: I must have possibility to change that background (by user) and it must fit screen (about 95%). There is not possible to make background mask over the scroller. :(

PS: Sorry for my English.

Thanks :)

you know the background image, what you can do duplicate that image, cut the middle part using photshop rectangular marquee tool but select feather to like 20px. Then you can you use that image as a mask. Does it make any sense?..

Look at this: http://img836.imageshack.us/img836/8441/maskki.jpg

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM