I'm using this code to run Isotope with RTL support
$.Isotope.prototype._positionAbs = function( x, y ) {
return { right: x, top: y };
};
$('.portfolio-isotope').each(function() {
var layoutMode = $(this).attr('data-layoutmode');
if(!layoutMode || layoutMode === ""){
layoutMode = 'fitRows';
}
$(this).isotope({
transformsEnabled: false,
itemSelector: '.portfolio-element',
layoutMode : layoutMode,
transitionDuration : '0.8s'
});
});
For some reason I'm getting the browser returns JavaScript error
Uncaught TypeError: Cannot read property 'prototype' of undefined
What might be the reason for that ?
Isotope is a Magical Dynamic Layout Plugin features Layout modes(Intelligent, dynamic layouts that can't be achieved with CSS alone.), Filtering (Hide and reveal item elements easily with jQuery selectors) and Sorting (Re-order item elements with sorting. Sorting data can be extracted from just about anything).
Isotope can hide and show item elements with the filter option. Items that match that filter will be shown. Items that do not match will be hidden.
Controls the horizontal flow of the layout. By default, item elements start positioning at the left, with originLeft: true. Set originLeft: false for right-to-left layouts.
originLeft: false
isotope options
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With