mobify / lockup

A mobile first scroll blocking plugin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mobify Lockup

A mobile first scroll blocking plugin

Bower version Dependency Status Circle CI

Dependencies

Installation

Lockup can be installed using bower:

bower install lockup

Usage with Require.js

We highly recommend using Require.js with Lockup. To use Require, you have to reference Lockup and Lockup's dependencies inside your require config file:

{
    'paths': {
    	'plugin': 'bower_components/plugin/dist/plugin.min',
        'lockup': 'bower_components/lockup/dist/lockup.min',
        'deckard': 'bower_components/deckard/dist/deckard.min'
    }
}

And then require Lockup in as needed:

define([
    'zepto',
    'lockup'
    ],
    function($) {
        $('.someElement').lockup();
    }
);

About

A mobile first scroll blocking plugin.

License:MIT License


Languages

Language:HTML 57.4%Language:JavaScript 38.7%Language:CSS 2.1%Language:CoffeeScript 1.7%Language:Shell 0.1%