This commit is contained in:
11
templates/assets/js/theme.js
Normal file
11
templates/assets/js/theme.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// Custom theme code
|
||||
|
||||
if (document.getElementsByClassName('clean-gallery').length > 0) {
|
||||
baguetteBox.run('.clean-gallery', { animation: 'slideIn' });
|
||||
}
|
||||
|
||||
if (document.getElementsByClassName('clean-product').length > 0) {
|
||||
window.onload = function() {
|
||||
vanillaZoom.init('#product-preview');
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user