最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to achieve fixed position background scrollreveal effect? jQuery plugin available? - Stack Overflow

programmeradmin2浏览0评论

I was wondering if anyone knows if there is a jquery plugin, or how to achieve this sort of effect that is visible on the 'collection' section of fashion label krystalrae

Screen Capture Video

Any tips or nudges in the right direction would be greatly appreciated!

Thank you!

I was wondering if anyone knows if there is a jquery plugin, or how to achieve this sort of effect that is visible on the 'collection' section of fashion label krystalrae.com

Screen Capture Video

Any tips or nudges in the right direction would be greatly appreciated!

Thank you!

Share Improve this question asked Sep 4, 2012 at 8:59 wafflwaffl 5,51114 gold badges80 silver badges133 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 25

You can do this with CSS. All you need is some divs that are the same height as the window, with different background images with the property background-attachment: fixed;.

#one
{
    background: url(http://images.buzzillions.com/images_products/07/02/iron-horse-maverick-elite-mountain-bike-performance-exclusive_13526_100.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment:fixed;
}

#two
{
    background: url(http://img01.static-nextag.com/image/GMC-Denali-Road-Bike/1/000/006/107/006/610700673.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment:fixed;
}

http://jsfiddle.net/Kyle_/mbhLN/

HERE you will find your plugin!

It is Parallax effect.

A great way to explore these things is to open the page using the firebug plugin in firefox, or the developer console in chrome, and look at the page source.

It also helps, if you try something, and then post what you're having trouble with.

You can also achieve the effect using the jQuery plugins:

  1. http://gsgd.co.uk/sandbox/jquery/easing
  2. http://www.smoothdivscroll.com

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论