(Only the most recent changes are shown below, see the wiki page for a complete listing)
Updated the API used to change panels. It will now accept a jQuery object of the panel or an element anywhere inside panel:
// go to panel 3
var lnk3 = $('.link3'); // link inside panel 3
$('#boxes').movingBoxes(lnk3, function(api){
alert('Now on panel #' + api.curPanel);
});
You can also call the api directly
// go to panel 3
var api = $('#boxes').data('movingBoxes'), // movingboxes object (api)
lnk3 = $('.link3'); // link inside panel 3
api.change(lnk3, function(api){
alert('Now on panel #' + api.curPanel);
});
Fixed the issue with the first panel not positioning correctly when the hash is not set.
Fixed issues with dealing with only one panel:
Fixed an issue that occurred when the indicated hash panel didn't exist - the first cloned slide used to display instead.
wrap
option is set to true
. Fixes issue #97.delayBeforeAnimate
option:
If you run into a jsFiddle demo that doesn't work, just update the resources links; but please don't link directly to these files from your site, use these files for demo purposes only.
http://css-tricks.github.com/MovingBoxes/css/movingboxes.css http://css-tricks.github.com/MovingBoxes/js/jquery.movingboxes.js
initAnimation
option should again prevent the initial animation. Fix for issue #79.