parallax

(CSS) Make a background image scroll slower than everything else

十年热恋 提交于 2019-11-28 16:23:11
here is is my CSS code for the body: body { padding: 0; margin: 0; background-image: url("../images/background.jpg"); background-repeat: no-repeat; background-color: grey; background-size: 100%; } What I want to do is make it so that the image scrolls slower than everything else on the page to make a simple parallax effect. I've looked online and all of the examples I've seen are much more complicated than what I want. I stumbled upon this looking for more flexibility in my parallax speed that I have created with pure CSS and I just want to point out that all these people are wrong and it is

Smooth scrolling easing effect with mouse wheel [closed]

假如想象 提交于 2019-11-28 15:38:35
问题 I recently came across this website http://www.ascensionlatorre.com/home, and I love the way the mouse wheel scrolling works - the easing is very smooth. I have been searching Google but I can't find anything similar. Does anybody have any suggestions on how to replicate this effect with jQuery? 回答1: I recently came across this issue as well and I wasn't finding a lot of support for it, so I quickly forgot about the problem. A few months later I saw a better example of the smooth scrolling so

Parallax Scrolling

家住魔仙堡 提交于 2019-11-28 13:06:41
Can anyone point me in the right direction? I have a DIV with a background image that is fixed, but I'd like it to scroll at a slower rate when scrolling down the page. I'm not great with jQuery or CSS3 so asking for some help. Thanks in advance. This may help: http://stephband.info/jparallax/ It turns nodes into absolutely positioned layers that move in response to the mouse. http://potentpages.com/parallax-scroll-tutorial/ Here is a tutorial that my company and I created describing how to make a webpage like you are talking about. It doesn't require any jQuery or advanced CSS. There are

jQuery page scroll event logic — how to throttle

断了今生、忘了曾经 提交于 2019-11-28 12:02:30
问题 I have some jQuery listeners setup as follows: $(document).scroll(function() { if( $(this).scrollTop() < change1) { updateBarChart('valuem', 'opencomparison'); } else if ( $(this).scrollTop() > change1 && $(this).scrollTop() < change2) { updateBarChart('valuef', 'opencomparison'); } else if ($(this).scrollTop() > change2) { updateBarChart('valuem', 'remove') //updateSteamChart('','steam') } }); Straightforward enough. Some charts are updated when scrolling changes. My issue is, this is

CSS Parallax working beautifully in Chrome but not Firefox

隐身守侯 提交于 2019-11-28 09:42:36
问题 The website is temporarily hosted here. I used the Pure CSS Parallax example here. All the HTML, CSS and JavaScript should be viewable under View Page Source. The parallax effect works beautifully in Chrome. In Firefox, the effect works but background images start to disappear when I scroll past a certain point! 回答1: You can checkout http://caniuse.com/ it shows you what every browser supports or not. Every browsers is different as you know, there might be elements on Edge and FF that might

How to move/animate elements in from the side with Stellar.js on a vertical scroll?

耗尽温柔 提交于 2019-11-28 06:07:22
I'm using Stellar.js jQuery plugin to create a parallax scroll affect, but I'm not sure if Stellar supports what I am trying to accomplish. I have the basic parallax scrolling affect working properly (largely based on this tutorial from TutsPlus ). What I am trying to accomplish is to have it so while the user scrolls down the page, certain elements move/animate into the view from all different angles--being tied to the scroll position. For example, as the user scrolls down the page, an apple enters the view from the top right position of the screen, and as the user continues to scroll down

Javascript - Smooth parallax scrolling with mouse wheel

假装没事ソ 提交于 2019-11-28 05:03:24
I have a page where I'm applying a parallax effect. This is accomplished using translate3d. Now, while this works well, I'm wondering how I can override the default "steps" when scrolling with the mouse wheel? If I scroll with the scrollbars, everything is fine. But with the mouse wheel, it's all jumpy. I'm doing this in a pretty straight forward way: var prefix = Modernizr.prefixed('transform'); $window.on('scroll', function(){ var scroll_top = $window.scrollTop(); if(scroll_top < forside_infographics_offset){ $_('#slider').css(prefix , "translate3d(0,"+(scroll_top/3)+"px,0)"); } }); Now, I

Sliding up image with Official Support Library 23.x.+ bottomSheet like google maps

倖福魔咒の 提交于 2019-11-28 03:06:27
Update I want to accomplish the same behavior that google maps has with Support Library 23.x.+ and without ANY 3rd library NOTE: this in not a duplicated question because: I want to use Behaviors, Support Library and without ANY 3rd party library (I added it in question title and above description) I wanted ALL behaviors that you see in next gif, the other questions are asking for one or two behaviors and using ANY WAY to achieve it. I have already the Official bottomSheet working (even inside a tab and view pager). What is making me going crazy is how to achieve the image behavior that come

Parallax scrolling with CSS only?

╄→尐↘猪︶ㄣ 提交于 2019-11-27 18:11:33
I have been working on a project and I am done with the content. For the design however, I am thinking of using the parallax scrolling technique. However, all I have been able to find out about it has been with JavaScript or Jquery, whereas I am only proficient with CSS3. Can parallax scrolling be implemented with CSS3 only(with HTML5 if needed), instead of using jquery plugins? It would be nice if I could be pointed to some tutorials for the same. Note: This is close to the effect I want to produce( http://jessandruss.us/ ) chharvey I really like KitKat’s answer , but as Roy Prins suggested,

Move the background image on mouse over (Single Parallax)

两盒软妹~` 提交于 2019-11-27 13:12:27
问题 I would like to make the background image move slightly on the X and Y axis when the mouse is in the "landing-content" DIV, it should move with the movement of the mouse. it should move inverse. EG. Mouse move down, "landing-content" image moves up. HTML <div id="landing-content"> <section class="slider"> <img src="http://i.imgur.com/fVWomWz.png"></img> </section> </div> CSS #landing-content { overflow: hidden; background-image: url(http://i.imgur.com/F2FPRMd.jpg); width: 100%; background