I have a jQuery Masonry layout that I am initialising like so:
$("#container").masonry({
itemSelector: ".pod, .smallpod",
animationOptions: {
queue: true
}
});
I thought that the queue
option would queue the animation so that it animates x
first, then y
afterwards. Turns out that isn't right.
Does anyone know if this is possible? I've had a look through the Unminified jQuery Masonry JS but I can't find the bit to change.
Library Link: http://masonry.desandro.com/masonry.pkgd.js
I've found the moveTo()
and the transitionTo()
functions, but I'm not sure what to change.
Within the translate()
function there is:
function( x, y ) {
return 'translate3d(' + x + 'px, ' + y + 'px, 0)';
} :
function( x, y ) {
return 'translate(' + x + 'px, ' + y + 'px)';
};
But, I can't find a way to just animate it an axis at a time.