Answer the question
In order to leave comments, you need to log in
Why is isotop/masonry not working properly with pictures?
Initially, I need to do this:
Task:
1) arrange the pictures as shown initially;
2) when changing the scale of the page, simultaneously reduce the images while maintaining 100%;
3) hover effect when hovering the mouse over pictures.
I have included jquery-3.4.1.min.js , imagesloaded.pkgd.js , isotope.pkgd.min.js and added the function in my main.js file:
var $grid = $('.grid').imagesLoaded( function() {
// init Isotope after all images have loaded
$grid.isotope({
layoutMode: 'fitRows',
itemSelector: '.grid-item',
percentPosition: true,
masonry: {
columnWidth: '.grid-sizer'
}
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question