HI i am making my project using Isotope.js where i have to show my tiles in the horizontal manner, So i am following code
var winDow = $(window);
// Needed variables
var $container=$('.portfolio-box, .blog-box');
var $filter=$('.filter');
try{
$container.imagesLoaded( function(){
$container.show();
$container.isotope({
layoutMode: 'masonryHorizontal',
masonryHorizontal: {
rowHeight: 50
},
});
});
} catch(err) {
}
but unluckily it is not working , error on the console is
1. Uncaught TypeError: Cannot read property 'LayoutMode' of undefined
2. Uncaught TypeError: undefined is not a function
Help is appreciable must
You're not including the isotope plugin on your page.
You need to include both isotope.pkgd.min.js
and masonry-horizontal.js
This is grabbed from your site. If you uncomment that line, you should be good.
<!--<script type="text/javascript" src="js/jquery.isotope.min.js"></script>-->
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