Gridify.js an AJAX gridsystem similar to that of Google images with some added extra functionality.
The plugin:
- Uses the HTML 5 History API
- AJAXes in content
- Enables functioning forward/back buttons
- Uses smooth dynamic animations
- Is SEO freindly
- Customisable
- Has initialize and loadedContent callbacks
- Uses WaitForImages to allow content to be fully loaded before displaying
Please post your feedback to let me know what you think! I'd love to know if you are using it on your site, tweet me the URL and any comments you have @dahliacreative / #gridifyjs.
N.B. gridify.js is currently untested with any History API polyfills. If you have any success using gridify.js with a History API fallback, mainly history.js then please let me know and I will update the documentation to reccommend it.
Please note, the HTML5 History API will not work with local files and therefore you must run your project on a server or run locally on MAMP or POW or somethign similar.
<script src=”/path/to/jquery.js”></script>
<script src=”/path/to/gridify.js”></script>
<!--Optional Dependancy by Alexander Dickson-->
<script src=”/path/to/waitforimages.js”></script>
<div id="grid">
<a href="/demo/demo1.html" class="gridItem"><img src="http://placehold.it/320" alt=""></a>
</div>
<section class="gridify-viewport new">
<div class="gridify-content">
<div id="page">
<p>Page content</p>
</div>
</div>
</section>
<div id="grid">
<a href="/demo/demo1.html" class="gridItem"><img src="http://placehold.it/320" alt=""></a>
</div>
$('#grid').gridify();
gridItem: '.gridItem',
waitForImages: false,
ajaxId: '#page',
errorMsg: 'The requested content could not be loaded.',
initialize: function() {},
contentLoaded: function() {}
Copyright 2012+ Simon Sturgess.