Hi sorry I thought it was working on changing the script to this:
-
<script type="text/javascript" src="[[++base_url]]assets/template/js/jquery.mixitup.min.js"></script>
-
<script type="text/javascript">
-
$(function () {
-
-
var filterList = {
-
-
init: function () {
-
-
// MixItUp plugin
-
// http://mixitup.io
-
$('#portfoliolist').mixitup({
-
targetSelector: '.portfolio',
-
filterSelector: '.filter',
-
effects: ['fade'],
-
easing: 'snap',
-
// call the hover effect
-
onMixEnd: filterList.hoverEffect
-
});
-
-
},
-
-
hoverEffect: function () {
-
-
// Simple
parallax effect
-
$('#portfoliolist .portfolio').hover(
-
function () {
-
$(this).find('.label').stop().animate({bottom: 0}, 200, 'easeOutQuad');
-
$(this).find('img').stop().animate({top: -30}, 500,
'easeOutQuad');
-
},
-
function () {
-
$(this).find('.label').stop().animate({bottom: -40}, 200, 'easeInQuad');
-
$(this).find('img').stop().animate({top: 0}, 300,
'easeOutQuad');
-
}
-
-
);
- $('.popup-with-zoom-anim').magnificPopup({
-
type: 'inline',
-
fixedContentPos: false,
-
fixedBgPos: true,
-
overflowY: 'auto',
-
closeBtnInside: true,
-
preloader: false,
-
midClick: true,
-
removalDelay: 300,
-
mainClass: 'my-mfp-zoom-in'
- });
-
}
-
};
-
-
// Run the show!
-
filterList.init();
-
-
});
- </script>
But unfortunately it doesn't work. Could you please demonstrate what
you mean by adding it to the function and giving it a better name? Do I
not need the same name for the popup to work once filtered??
Thanks again for your help.