Giter Club home page Giter Club logo

Comments (7)

fisshy avatar fisshy commented on July 30, 2024

Not sure it's possible in the current version.

https://github.com/fisshy/react-scroll/blob/master/modules/mixins/animate-scroll.js

Looking at line 70 - It could be possible to target an element and scroll that element I believe instead of the Window.

from react-scroll.

jaehunro avatar jaehunro commented on July 30, 2024

Ok, I'll try to modify it to work with divs or any other type of component. Thank you!

from react-scroll.

jaehunro avatar jaehunro commented on July 30, 2024

Hi, so I modified the files a bit and ended up editing them so that automated scrolling within a div was an option by using Element props! I'm working still on cleaning it up though

from react-scroll.

fisshy avatar fisshy commented on July 30, 2024

Hi! Great job, sounds like a good to have feature :)

from react-scroll.

jaehunro avatar jaehunro commented on July 30, 2024

Sweet could I send you a pull request with the changes?

from react-scroll.

fisshy avatar fisshy commented on July 30, 2024

Of course - but I will have to look into the code and test it first :)

from react-scroll.

fisshy avatar fisshy commented on July 30, 2024

It's now possible to scroll within a div. Checkout v1.0.19.

from react-scroll.

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.