开发者

full background image that scrolls

开发者 https://www.devze.com 2023-03-08 02:30 出处:网络
I\'m using supersized ( http://buildinternet.com/project/supersized/ ) for a full size image background slideshow, but I need the background image to s开发者_C百科croll as the user scrolls up/down to

I'm using supersized ( http://buildinternet.com/project/supersized/ ) for a full size image background slideshow, but I need the background image to s开发者_C百科croll as the user scrolls up/down to read text.

The site i'm using as a reference is http://www.samsung.com/latin/ They used flash for the background slideshow.

Is there any way to achieve the same with js?

Thanks


This will do the trick, I'm using it myself:

#supersized {
    position:absolute;
    top:0;
    left:0;
    }

Using position:relative as others have suggested won't work, nor will using position:absolute by itself.


I am not filmier with Supersized, but taking a look at the demo site, it appears to be a simple CSS problem. Try changing #supersized from position: fixed; to position:relative;


If you change #superzised from position:fixed; to position:absolute; you should get a scrolling image.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号