parallax

Parallax effect make elements follow scroll with delay

 ̄綄美尐妖づ 提交于 2019-12-01 14:45:02
I am trying to replicate this site: www.adidas.co.uk/climazone. The elements seem to only move slightly after the user scrolls. How can I achieve this? Thank you! Here's DEMO Its actually uses debounce/throttle effect . When you scroll up/down you shouldn't modify/animate DOM element directly because scroll event can fire up at high rate in which case animation DOM element can behave weird so to avoid this you can use windowAnimationFrame or setTimeout to throttle/debounce event throttle with setTimeout taken from Source Function.prototype.debounce = function(threshold){ var callback = this;

Problems with background image position on Stellar.js

流过昼夜 提交于 2019-12-01 10:46:26
I'm using stellar.js to add a parallax effect to a vertical scrolling website, but I'm having problems with the background positions. When I use the class "data-stellar-background-ratio" to add the parallax effect on a div I can't set the background position to right via CSS. All the background images just go to the left no matter what. I tried to use the position property plugin syntax available on the website, but it seems to break the parallax effect somehow. Can anybody help me? Thank you! I had the same issue. In your jquery.stellar.js file change the stellar function so that horizontal

Fixed background images disappear on iPhone/ iPad

狂风中的少年 提交于 2019-12-01 06:40:49
I'm having issues with background-image . My website looked good on Android devices, then I found out that iPhones and iPads don't like background-size: cover . I fixed this by setting background-size: 100% . On iPhone simulators on the web, the site looks quite OK, but as soon as testing the site on a real iPhone (iOS 9.3), the background images are not shown. The header image loads, this image is used as a background further down on the site, it gets displayed there, too. The other image right above the only loaded background starts loading, but then seems to get aborted for some reason. The

Moving from one div to another on click of a menu link

感情迁移 提交于 2019-12-01 05:38:50
问题 Hey guys i want a make animation effect on my website where, when we click on a menu link (say, about-section), it will animate to that div in a parallax style. So guys if you know any jquery plugin that can help me in this context, then please let me know, and it would be better if you demonstrate me a example of that as well. See the code for help: .Home-section { height: 500px; background: deepskyblue; } .About-section { height: 300px; background: deeppink; } <script src="https://ajax

Fixed background images disappear on iPhone/ iPad

你说的曾经没有我的故事 提交于 2019-12-01 04:50:41
问题 I'm having issues with background-image . My website looked good on Android devices, then I found out that iPhones and iPads don't like background-size: cover . I fixed this by setting background-size: 100% . On iPhone simulators on the web, the site looks quite OK, but as soon as testing the site on a real iPhone (iOS 9.3), the background images are not shown. The header image loads, this image is used as a background further down on the site, it gets displayed there, too. The other image

CSS background image centered with Stellar JS

旧城冷巷雨未停 提交于 2019-11-30 22:16:39
I'm setting a background image to an element with Stellar JS and trying to achieve a centered image that moves in parallax. However when I try to use the standard approach I realize that the background-position is updated by stellar which then overrides the centering (I'm assuming that's what's overriding it). I've created a fiddle to explain the situation. http://jsfiddle.net/captDaylight/wvuQm/1/ Is there any way to have the image remain centered on scroll? (stack is making me to accompany this post with code, although it's insignificant in this case, the example on the fiddle is pretty

How to create parallax effect like this?

牧云@^-^@ 提交于 2019-11-30 14:23:35
问题 I've been trying to get build a website with a parallax effect like the one on this website: http://www.sparksandhoney.com/the-open-agency-index/ or http://www.sparksandhoney.com/press-index/ I've been trying to use stellar.js, but I can't seem to make the nav bar and web page scroll in sync over the image like this website. So far I've just been trying to make the nav bar and text layer be one div that scrolls over a fixed background but that is not working at all? By the way, I've gone

Horizontal scrolling with parallax background for ios

会有一股神秘感。 提交于 2019-11-30 12:09:48
问题 I'm facing a challenge of creating an introduction view, something like the "Cleanio" app (https://itunes.apple.com/fr/app/cleanio-pressing-la-demande/id885856031?mt=8). Here is how it looks like: So, the background and the overlay are moving independently and not in the same speed. Does anyone have a start point how to realize that? 回答1: Yep. What you need is two UIScrollView s. These should both be subviews of the main view (not contained in each other. The bottom one has your image in it

Parallax view scrolling (Yahoo weather like)

被刻印的时光 ゝ 提交于 2019-11-30 11:41:46
问题 This is not strictly a programming question but more "how to accomplish this" question. I am curious (and working on an app that will probably require this) how is left-right parallax scrolling implemented. To know exactly what I mean check the Yahoo Weather app (it's free - no worries there). Are they using just one view controller or a separate controller for each view that is shown there? What is the easiest way to implement this? I have found this topic here which kinda explains it a bit

How to create parallax effect like this?

本小妞迷上赌 提交于 2019-11-30 10:51:27
I've been trying to get build a website with a parallax effect like the one on this website: http://www.sparksandhoney.com/the-open-agency-index/ or http://www.sparksandhoney.com/press-index/ I've been trying to use stellar.js, but I can't seem to make the nav bar and web page scroll in sync over the image like this website. So far I've just been trying to make the nav bar and text layer be one div that scrolls over a fixed background but that is not working at all? By the way, I've gone through this websites source code, and they use Squarespace, but I'm trying to do the effect without it.