Closed dylanh724 closed 3 years ago
Using CDN and template init code:
const element = document.getElementById("image-compare"); const options = { // UI Theme Defaults controlColor: "#FFFFFF", controlShadow: true, addCircle: false, addCircleBlur: true, // Label Defaults showLabels: true, labelOptions: { before: '1', after: '2', onHover: false }, // Smoothing [looks laggy] smoothing: false, smoothingAmount: 100, // Other options hoverStart: false, verticalMode: false, startingPoint: 75, fluidMode: true }; // Add your options object as the second argument const viewer = new ImageCompare(element, options).mount();
Chrome desktop, latest, Win10.
Should I serve locally? Any known issue of this? Why is there even a jQuery (3.6.0) clash, I wonder?
Update: Same err with local instead of CDN
The problem is actually worse than I thought - opening a new ticket. The github demo doesn't work.
Using CDN and template init code:
Chrome desktop, latest, Win10.
Should I serve locally? Any known issue of this? Why is there even a jQuery (3.6.0) clash, I wonder?