Giter Site home page Giter Site logo

jljorgenson18 / simplesmoothscroll Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 849 KB

A module to simply scroll to an element on the page in a butter smooth fashion

Home Page: https://jljorgenson18.github.io/simplesmoothscroll/

License: MIT License

JavaScript 63.74% HTML 27.86% CSS 8.41%
buttery scrolling scrolls smooth-scrolling window-position

simplesmoothscroll's People

Contributors

dependabot[bot] avatar jljorgenson18 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nottherealtwch

simplesmoothscroll's Issues

Add more descriptive variable names

When I initially wrote this, I used some pretty crappy variable names that weren't very descriptive. Time to simplify everything and have a more descriptive flow.

Add amd and basic window support

Add the ability to load in smoothScroll in a way that doesn't require a bundler. Ultimately, all of the utility functions should be in an anonymous function as not to invade the global scope and then the main smoothScroll function should be exported.

Add greater support for bottom of page scrolling

When scrolling to an element on the page, there is a currently a check to see if the bottom of the window has been hit. As of right now, hitting the bottom is not smooth because sss thinks it still needs to scroll to that target element. The distance between the bottom of the page, the target element, and the window height should all be factored in to find the appropriate distance.

Abstract easing function

As of right now, the math is somewhat unclear. The easing function using trig should be abstracted out.

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.