jquery-rhythmplease

1.0.1 • Public • Published

jQuery.rhythmPlease

A jQuery library for maintaining a vertical rhythm with responsive blocks and images.

Install with npm:

$ npm install jquery-rhythmplease

Usage

Include after jQuery.

<script src="jquery.js" type="text/javascript"></script>
<script src="jquery.rhythmPlease.js" type="text/javascript"></script>

Call the plugin on onDocumentReady in your JavaScript.

$(function() {
    $(".block").rhythmPlease(
        'property': 'margin-bottom', /* Property for compensating.
                                        Consider using 'height' for blocks,
                                        'margin-bottom' for images. */
 
        'base': 28,                  // Rhythm base, assume "px".
 
        'resize': true               // Resize with the screen width.
    );
});

Licence

The jQuery.hythmPlease plugin is licensed under the MIT license: http://en.wikipedia.org/wiki/MIT_License

Package Sidebar

Install

npm i jquery-rhythmplease

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • halfzebra