Code Monkey home page Code Monkey logo

Comments (14)

lukehaas avatar lukehaas commented on May 24, 2024

You might be able to achieve what you want by using the 'target' option.

from scrollify.

altmind avatar altmind commented on May 24, 2024

target is not documented, telling from source, it seems that it defines the (overflow:visible) element in which the conentent will scroll. which may be not what @alberto2000 want.

actually, i think i have the same necessity as @alberto2000 , i need to have half-of-screen of content on page and snappable blocks below, so snappable behavior starts from specific height. haven't found a solution yet.

from scrollify.

lukehaas avatar lukehaas commented on May 24, 2024

@altmind yeah, when I made that comment I forgot that target was still a developmental feature.
This functionality won't be coming to Scrollify any time soon. It may be best to look for an alternative plugin for now.

from scrollify.

ri8ika avatar ri8ika commented on May 24, 2024

@alberto2000 You can manage them defining different section name. For left part define all section name to 'left-section' and for right part define all section name to 'right-section' and call scrollify for both.

from scrollify.

lukehaas avatar lukehaas commented on May 24, 2024

@bini7a That won't work, Scrollify scrolls the window, not the document.

from scrollify.

ri8ika avatar ri8ika commented on May 24, 2024

@lukehaas I thought both part has scroll bar. Doesn't that work even?

Shouldn't it be updated to be more friendly for that?

from scrollify.

drewbaker avatar drewbaker commented on May 24, 2024

+1 to allow containers other than window

from scrollify.

lukehaas avatar lukehaas commented on May 24, 2024

I'm happy for this feature to be added to Scrollify if anyone wants to contribute.

from scrollify.

riccardolardi avatar riccardolardi commented on May 24, 2024

I'd be glad to contribute - @lukehaas if you could give me some indication on which parts may need refactoring or just a short crash course into the architecture of the plugin? From very first telling I'd just go and replace all references to $window with the new, configurable target element and go from there?

from scrollify.

lukehaas avatar lukehaas commented on May 24, 2024

@alberto2000 It could be as straight forward as that.
In Scrollify currently mouse scroll events are attached to the window and touch events are attached to the document, (can't remember why the difference now). The scroll animation is applied to "html,body".
Getting all those to point to a configurable reference is the best place to start.

from scrollify.

riccardolardi avatar riccardolardi commented on May 24, 2024

On it, will make a PR asap

from scrollify.

riccardolardi avatar riccardolardi commented on May 24, 2024

PR submitted #158

from scrollify.

lukehaas avatar lukehaas commented on May 24, 2024

@alberto2000 thanks I'll take a look soon.

from scrollify.

riccardolardi avatar riccardolardi commented on May 24, 2024

@lukehaas what about #158 - also it'd be good if some could test it and report any feedback

from scrollify.

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.