Mobify Lockup
A mobile first scroll blocking plugin
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();
}
);