A jQuery plugin that does...
For documentation, usage and examples please see http://zamiang.github.com/jquery.poplockit/
See this example using Placekitten
Download the production version or the development version.
Include required Javascripts
<script src="jquery.js"></script>
<script src="dist/poplockit.min.js"></script>Create html like this
<div id="feed">
<article>
<div class="column">Left</div>
<div class="column">Center</div>
<div class="column">Right</div>
</article>
...
</div>Apply the popLockIt plugin
$('#feed').popLockIt({
feedItems : $('#feed > article'),
columnSelector : '> .column',
margin : 90
});Contributions and pull requests are very welcome. Please follow these guidelines when submitting new code.
- Fork and clone the repo.
- If needed:
npm install -g gruntfor Grunt - If needed:
brew install phantomjsfor PhantomJS - Run
npm installto install dependencies - Run
grunt(compiles coffeescripts and runs tests) - Run
grunt watchwhile editing files to auto-compile coffeescripts and run tests - Make all changes in Coffeescript files, not JavaScript files.
- Add tests for the change you want to make. Run
grunt jasmineto see if tests fail. - Run
gruntto compile new dist and make sure nothing is broken - Submit a Pull Request using GitHub.
