Coder Social home page Coder Social logo

Comments (8)

Shadowstep33 avatar Shadowstep33 commented on August 13, 2024 1

Sorry that this is late @fritoebola but the way I managed to get around this issue was using

                var s = skrollr.init({
                    edgeStrategy: 'reset'
                });

Using the reset causes the element to revert back to it's original position: relative/static/absolute/whatever before the first keyframe and after the last. There is still some slight odd behavior (such as you described) when it comes to going to adjacent slides or clicking the menu item for the slide it is currently on. Will report back when I figure out how to fix that.

from skrollr-menu.

Prinzhorn avatar Prinzhorn commented on August 13, 2024

If I understand you correctly, that's what data-menu-top is for.

from skrollr-menu.

fritoebola avatar fritoebola commented on August 13, 2024

Hi Alexander,

I'm severally confused, I am not sure how to use the data-menu-top.... could you point me into an example? It might be that i'm not implementing this right and that this is not an issue.

Thanks

from skrollr-menu.

Prinzhorn avatar Prinzhorn commented on August 13, 2024

Here's an example page

https://github.com/Prinzhorn/skrollr-menu/blob/master/index.html
http://prinzhorn.github.io/skrollr-menu/

from skrollr-menu.

twickstrom avatar twickstrom commented on August 13, 2024

@fritoebola I was experiencing the exact same issues as you.

Like @Prinzhorn says if you add data-menu-top="325p"
Accommodations

it will scroll 350% down the page. You will want that to match your last data-???p sequence on your container you are scrolling to.

For instance on my page I have the following:

So i want my data-menu-top attribute from the link to match transform:translate(0,0%) so it is set to 325p.

from skrollr-menu.

prismspecs avatar prismspecs commented on August 13, 2024

data-menu-top is either broken or has no example

from skrollr-menu.

Prinzhorn avatar Prinzhorn commented on August 13, 2024

data-menu-top is either broken or has no example

http://prinzhorn.github.io/skrollr-menu/

from skrollr-menu.

fritoebola avatar fritoebola commented on August 13, 2024

Well, a good tip is never late. We can all always use this on future projects.
Cheers
P.

from skrollr-menu.

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.