Giter VIP home page Giter VIP logo

Comments (4)

macphersonj avatar macphersonj commented on July 20, 2024 3

I've managed to fix this via:

  1. Adding smooth scrolling for anchor links (obviously 'jumping' instead of scrolling doesn't adjust the position). I'd still like to find a way to update the rellax items' positions without smooth scrolling.

  2. When accessing an anchor link from a different page, the same thing happened. The workaround for this is:

window.onload = function(){ var rellax = new Rellax('.rellax', {center: true}); }

I'll leave this open as the original issue still exists, but hopefully the workaround is useful

from rellax.

moeamaya avatar moeamaya commented on July 20, 2024 1

@macphersonj James thanks for the issue. I haven't had this use case yet, so appreciate you bringing it up. I like your hacked solution a lot but we'll work on something that is built-in.

from rellax.

shrpne avatar shrpne commented on July 20, 2024 1

I guess whitespace is added because of rellaxed elements translates under the bottom of the body. You can try to control them with data-rellax-max option.

from rellax.

aerni avatar aerni commented on July 20, 2024

Is this something that is going to be fixed soon? I'm using this library for a vertical anchor navigation. The problem is, that tons of white space gets added at the bottom of the page when clicking one of the buttons and jumping to a section. When clicking the first anchor, the white space disappears again.

Here's a video showing the issue

from rellax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.