section#sp-main-body{min-height:800px;} All NORDCENTROSUDISOLE (function($) { $(..portfolio-item.).hover(function(){ $('.btmVini',this).show(); },function(){ $('.btmVini',this).hide(); }); $(window).load(function() { .use strict.; var $container = $('#portfolio-filter'); $container.isotope({ filter: '*', animationOptions: { duration: 750, easing: 'linear', queue: false } }); $('#filters button').click(function() { $('#filters .current').removeClass('current'); $(this).addClass('current'); var selector = $(this).attr('data-filter'); $container.isotope({ filter: selector, animationOptions: { duration: 750, easing: 'linear', queue: false } }); return false; }); $('#portfolio-filter').magnificPopup({ delegate: 'a.m-up', // child items selector, by clicking on it popup will open type: 'image', gallery:{ enabled:true }, // Delay in milliseconds before popup is removed removalDelay: 300, // Class that is added to popup wrapper and background // make it unique to apply your CSS animations just to this exact popup mainClass: 'mfp-fade', // other options titleSrc: 'title', callbacks: { open: function() { // Will fire when this exact popup is opened // this - is Magnific Popup object }, close: function() { // Will fire when popup is closed } // e.t.c. } }); }); })(jQuery);