yubrajs Posted June 5, 2023 Share Posted June 5, 2023 Hi, I tried to integrate a feature in video gallery when user hover over the video thumbnail it should play and stop when hover out. something similar like this site: https://camillesummersvalli.com/ I am unable to achieve it with squarespace: https://mushroom-kazoo-56xp.squarespace.com/work-1. I write this js code: window.addEventListener("DOMContentLoaded", (event) => { document.querySelectorAll("video").forEach((el) => { el.addEventListener("mouseover", function (e) { this.play(); }); }); document.querySelectorAll("video").forEach((el) => { el.addEventListener("mouseleave", function (e) { this.pause(); }); }); }); But this doesn't work, inspect and check for any bugs there is none. Don't know why this is not working. After spending 5-6 hours I tried with Wordpress it worked. Here:https://slicegeek.org/SUBTROPIC/gallery/ Can somebody tell me what went wrong, can it be achieved with Squarespace or do i need to switch to wordpress. Really appreciate your help. Thanks Link to comment
tuanphan Posted June 8, 2023 Share Posted June 8, 2023 The site is expired. You can access this link to extend it, then we can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
yubrajs Posted June 9, 2023 Author Share Posted June 9, 2023 Sorry about that. Here is the new link: https://offbeatcollection.squarespace.com/discover Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment