Skip to content
This repository was archived by the owner on Nov 21, 2024. It is now read-only.

softwarespot/Creep.js

 
 

Repository files navigation

Creep.js

Quickly add smooth scrolling to any links in your site using this simple plugin.


Getting Started

To get going quickly with Creep, just include the library after jQuery, select your link tags, and run creep on them. This would do it if you're starting fresh:

<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<script src="jquery.creep.min.js"></script>
<script>
    $(function () {

        $('a').creep();

    });
</script>

npm Install

    npm install jquery-creep

Plugin Options

There are only a couple options as of now. Here they are:

$('a').creep({
    offset: 0,
    speed: 1000
});

offset

Add an offset to change the distance above or below anchor destinations. Helpful when you have a fixed menu and you need to scroll a certain number of pixels above the anchor destination so that your menu doesn't cover the content.

speed

Adjust the scroll time. Set in milliseconds.


Contributing

To contribute, you'll need nodejs and gulp installed. Fork and clone the repo, then visit the directory in the terminal and type npm install. After that you can simply run the gulp command to watch the files in the project. It'll automatically lint, test, compile, and minify the plugin files so you can just code.

About

A simple, tiny, configurable jQuery smooth scrolling anchor link plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 48.0%
  • JavaScript 31.5%
  • CSS 20.5%