Code Monkey home page Code Monkey logo

two-direction-sticky-sidebar's Introduction

Two-direction-Sticky-Sidebar

Sample two direction Sticky Sidebar with Pure JavaScript for any project

A short javascript code that allows you to quickly and easily implement Sticky Sidebar, which will scroll depending on which page the user scrolls to. And everything with the use of pure javascript, thanks to which you will save redundant code and gain efficiency. enter image description here source of the original picture

I wrote code to use in my own project. All ready-made solutions used jQuery or had a lot of unnecessary code. I share it because it may be useful to someone. I allow it to be freely modified. Perhaps I will extend the script in the future.

Example of use

To use a script, just add the attribute to our sidebar: data-sticky="true". Only one element can be used so far. Example:

<aside data-sticky="true">

A working example on JSFiddle

Download

To download, just follow the link: Download or enter the command in the terminal:

$ git clone https://github.com/Antosik-dev/Two-direction-Sticky-Sidebar.git

Support

If you found a bug or would like to contribute to the development, please contact me: [email protected]

two-direction-sticky-sidebar's People

Contributors

krzysztof-antosik avatar

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.