tuanphan Posted July 23 Share Posted July 23 4 hours ago, Frankamf said: Hi!, when adding the code it displays the message “code removed“ Which code did you use? And which plan do you use: Personal, Business or ? 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
Remilp Posted July 24 Share Posted July 24 On 7/19/2024 at 9:48 AM, tuanphan said: Yes. It is possible now 👌. I just solved a case yesterday. You can share link to page where you use Video, I will adjust & give code for your case Here you go : https://contrabass-ruby-4lc9.squarespace.com/ Password : Harris2024 Id like to put this video : Link to comment
tuanphan Posted July 26 Share Posted July 26 On 7/24/2024 at 7:20 PM, Remilp said: Here you go : https://contrabass-ruby-4lc9.squarespace.com/ Password : Harris2024 Id like to put this video : Use this to Website Tools > Code Injection > Footer <script> window.addEventListener("load", (event) => { const videosWrapper = document.querySelectorAll(".plyr__video-wrapper"); videosWrapper.forEach((wrapper) => { const videoBackground = wrapper.querySelector(".plyr__poster"); videoBackground.addEventListener("mouseenter", () => { const video = wrapper.querySelector("video"); video.muted = true; video.play(); }); videoBackground.addEventListener("mouseleave", () => { const video = wrapper.querySelector("video"); video.muted = true; video.pause(); }); }); }); </script> 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
Remilp Posted July 26 Share Posted July 26 (edited) THANKS A LOTTTT, it's working !!!!!! Just one more question, is it possible for the video to reset when the mous leaves ? And i also want the sound of the video to be on if it's possible !! Edited July 26 by Remilp new information Link to comment
tuanphan Posted July 27 Share Posted July 27 22 hours ago, Remilp said: THANKS A LOTTTT, it's working !!!!!! Just one more question, is it possible for the video to reset when the mous leaves ? And i also want the sound of the video to be on if it's possible !! #1. I don't see video now. Can you check it again? #2. Change to false 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment