GithubHelp home page GithubHelp logo

ibrahim12 / jquery-waypoints Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imakewebthings/waypoints

0.0 1.0 0.0 704 KB

Waypoints is a jQuery plugin that makes it easy to execute a function whenever you scroll to an element.

Home Page: http://imakewebthings.github.com/jquery-waypoints/

jquery-waypoints's Introduction

jQuery Waypoints

Waypoints is a jQuery plugin that makes it easy to execute a function whenever you scroll to an element.

$('.thing').waypoint(function() {
  alert('You have scrolled to a thing.');
});

If you're new to Waypoints, check out the Get Started section.

Read the full documentation for more details on usage and customization.

Shortcuts

In addition to the normal Waypoints script, extensions exist to make common UI patterns just a little easier to implement:

Examples

Waypoints can also be used as a base for your own custom UI patterns. Here are a few examples:

AMD Module Loader Support

If you're using an AMD loader like RequireJS, Waypoints registers itself as a named module, 'waypoints'. Shortcut scripts are anonymous modules.

Development Environment

If you want to contribute to Waypoints, I love pull requests that include changes to the source coffee files as well as the compiled JS and minified files. You can set up the same environment by running make setup (which just aliases to npm install). This will install the version of CoffeeScript and UglifyJS that I'm using. From there, running make build will compile and minify all the necessary files. Test coffee files are compiled on the fly, so compile and minify do not apply to those files.

License

Copyright (c) 2011-2013 Caleb Troughton Licensed under the MIT license.

Support

Unit tests for Waypoints are written with Jasmine and jasmine-jquery. You can run them here. If any of the tests fail, please open an issue and include the browser used, operating system, and description of the failed test.

jquery-waypoints's People

Contributors

adam-s-daniel avatar al avatar busticated avatar cduez avatar imakewebthings avatar knuton avatar wangyuhere avatar

Watchers

 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.