How to make parallax work with smooth scroll? - javascript

I have a code Codepen. The problem is parallax stop working when i'm adding two divs related to smooth scroll script. How to fix this problem? I need smooth scroll working with parallax effect. Thanks.
Remove two first divs "data-scroll" and "data-scroll-content" to see what's the problem.
<section id="00">
<div class="parallax-div parallax-div-00">
<div class="leading-statement statement-00">
<p data-aos="fade-up"> Parallax Scrolling </p>
</div>

Related

How to scroll to next content elements after scroll animation ends?

I'm currently testing the scroll animation tutorial from https://css-tricks.com/lets-make-one-of-those-fancy-scrolling-animations-used-on-apple-product-pages/
On codepen: https://codepen.io/j-v-w/pen/ZEbGzyv
Everything works so far, but how do I make it possible to scroll to the content below after the scrolling animation ends?
For example I simply want to add further content after the canvas element:
<canvas id="hero-lightpass" />
<div>example content</div>
Great thanks for any ideas!

Need horizontal scrolling after vertical page scroll

i have code structure like this
<div class="content"></div>
<div class="content"></div>
<div class="content"></div>
<div class="content"></div>
<div class="horizontal-gallery">
<img>
<img>
<img>
<img>
<img>
</div>
<div class="content"></div>
<div class="content"></div>
and i need to start horizontal scrolling my gallery and when it ends need to scroll down page as usual. how i can change vertical scroll to horizontal when reach gallery and after turn back to vertical scrolling? so i dont have any ideas
You'll have to do some interesting juggling here.
When the page loads, set overflow-x to none (or the width of the gallery to fit the page)
When the gallery comes into view (which you'll have to monitor for via JS or similar) you'll have to revert #1 above (overflow-x: auto or set the width)
Basically, you want the page to dynamically enable/disable horizontal scrolling. The only way to do that is to monitor for when that needs to apply and apply it yourself.

fullpage.js effect in a container div

From a quick search here and in Google I realised that it is not possible to put fullpage.js in a container, hence the name fullpage.js
Unfortunately I have to find a solution for my project. I want normal scroll on my entire website, but a specific div should have the fullpage.js "slideshow" effect, that when you scroll a bit, the whole section is moving to the other direction. I tried doing it myself with a lot of javascript calculations (scroll direction, binding and unbinding scroll events etc), but Its out of the scope of this project budget.
So my question is: is there a way to hack it around with fullpage.js or maybe with another plugin? I found scrollify, but it is basically the same.
Here is an HTML Code to show exactly what I mean
<body>
<h1>Some website</h1>
<h2>I want to scroll it normal</h2>
<div id="fullpage">
<!-- Only here should the slides scroll with the desired effect -->
<div class="section"></div>
<div class="section"></div>
<div class="section"></div>
</div>
</body>
Any kind of help would be appreciated. Here is a video showing exactly what am looking for.

Sliding parallax background images

I have recently worked on a site that is effectively a series of long scrolling pages. It has some large background images the make use of a parallax effect as well as some carousels and regular text content. I am using [slick] by ken wheeler for the carousels. 1 I Live demo site here
My question is, is anyone aware of a way to create a carousel of large images (like the one pictured below)that also makes use of a parallax effect? the effect is currently achieved using the Parallax.js plugin (http://pixelcog.github.io/parallax.js/) but I am open to other plugins/approaches. Thanks in advance for any ideas or pointers in the right direction.
Screenshot of current carousel that I wish to add parallax effect scrolling to:
*edit: I have tried creating multiple slides within the carousel using the parallax.js method to add a background image. However this just keeps the first image used as a constant background and does not slide off screen when the arrow is clicked

Problems while Resizing or shrink Cycle2 slide show Images

Hello Stackoverflowers,
First of all thank you for reading this post. I am having a rough time trying to figure out how to make my Cycle 2 slideshow images shrink and move the images next to the other divs while resizing windows. The funny thing is that when the slide show has only one png the image moves next to all other divs while resizing, but when I add another image to the slide show all the images stays in its own position and doesn't move with the shrink.
here is my code for the Sector:
<div id="clientscont">
<div class="Title2">Clients</div>
<div id="container">
<div id="wrapper"> <div class="controller" id="prev2"></div><div class="controller" id="next2"></div></div>
<div id="slider2">
<img src="../image1.png" alt="" width="265" height="116" class="logoclient2"/>
<img src="../image2.png"/>
</div>
</div>
</div>
I tried everything in positioning and display modes and even tried making them separate divs with different attributes....but can't make it work. I really need your help, I thank you all in advance.
*For Cycle I am using jquery
Solved,
changing css attribute to list-Item display solved the issue, it is the only display mode that worked, to solve the bullet problem just changed the font color to the actual background color to hide the bullet. Now both images stayed centered while shrinking page. The truth is that i don't know the reason of this, if somebody could explain it would be perfect!
ShaloM! and Happy Coding!

Categories

Resources