1$(document).ready(function(){ 2 var containerEl = document.querySelector('.mixitup-container'); 3 if(containerEl) 4 { 5 var config = { 6 selectors:{ 7 target: '[data-ref="mixitup-target"]' 8 }, 9 animation:{ 10 effects: 'fade scale stagger(50ms)' // Set a 'stagger' effect for the loading animation 11 }, 12 load:{ 13 filter: 'none' // Ensure all targets start from hidden (i.e. display: none;) 14 }, 15 animation:{ 16 duration: 350 17 }, 18 controls:{ 19 scope: 'local' 20 }, 21 callbacks: { 22 onMixStart:function(state) { 23 }, 24 onMixEnd:function() { 25 InitLazyLoad(); 26 } 27 } 28 }; 29 var mixer = mixitup(containerEl, config); 30 31 // Add a class to the container to remove 'visibility: hidden;' from targets. This 32 // prevents any flickr of content before the page's JavaScript has loaded. 33 34 containerEl.classList.add('mixitup-ready'); 35 36 // Show all targets in the container 37 38 mixer.show() 39 .then(function(){ 40 // Remove the stagger effect for any subsequent operations 41 mixer.configure({ 42 animation: { 43 effects: 'fade scale' 44 } 45 }); 46 }); 47 } 48 49})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.