nandopomy Posted July 16 Share Posted July 16 Hi, just wondering if this is possible. If yes, how? Thanks! Link to comment
tuanphan Posted July 17 Share Posted July 17 You mean show a fullscreen video >> After 3-5 seconds, hide video + show main content? 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
nandopomy Posted July 17 Author Share Posted July 17 (edited) Exactly @tuanphan except the "hide video" part. Thanks! Edited July 17 by nandopomy Link to comment
tuanphan Posted July 19 Share Posted July 19 On 7/17/2024 at 7:20 PM, nandopomy said: Exactly @tuanphan except the "hide video" part. Thanks! But if we don't hide video, fullscreen video will overflow the content Or you mean after video finish, the site will scroll down a bit to see page content? Or if you have a desired layout, I can imagine your case & help you 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
nandopomy Posted July 19 Author Share Posted July 19 Ohh, you're right. So then yep, show a fullscreen video >> After 3-5 seconds, hide video + show main content. Thanks! Link to comment
tuanphan Posted July 20 Share Posted July 20 21 hours ago, nandopomy said: Ohh, you're right. So then yep, show a fullscreen video >> After 3-5 seconds, hide video + show main content. Thanks! Try this quick demo, to see if it is what you want? here I set 15 seconds https://tuanphan3.squarespace.com/video-loading-effect-desktop-mobile?noredirect pass: abc 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
nandopomy Posted July 20 Author Share Posted July 20 That's it! How would I go about doing this? Thanks a lot! Link to comment
tuanphan Posted July 25 Share Posted July 25 On 7/21/2024 at 12:56 AM, nandopomy said: That's it! How would I go about doing this? Thanks a lot! You can use this code to Website Tools > Code Injection > Footer. Replace with your video url <div class="splash-wrapper" id="load-container"> <video autoplay loop muted> <source src="https://static1.squarespace.com/static/65099e4b0bacc94c32040af8/t/6654c936503f41361bd58f01/1716832574197/ALIG+-+Website+video_9_1920x1080.mp4" type="video/mp4"> </video> </div> <style> .splash-wrapper { position:fixed; z-index:9999; background-color: #000000; height:100vh; width:100vw; display:flex; flex-flow: column nowrap; justify-content:center; align-items:center; animation-name: slideOut; animation-fill-mode: forwards; animation-duration:.65s; animation-delay: 15s; } @keyframes slideOut { from {margin-left: 0vw;} to {margin-left: -200vw;} } </style> 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
nandopomy Posted July 25 Author Share Posted July 25 Thank you so much! Will report back if there's any issues with this setup Link to comment
nandopomy Posted July 29 Author Share Posted July 29 (edited) Hey, @tuanphan. I tried copying and pasting the code to my footer section and I replaced the video url with my 3-sec YouTube video one but it didn't work. Am I doing something wrong? Thanks again! Edited July 29 by nandopomy Link to comment
tuanphan Posted July 30 Share Posted July 30 19 hours ago, nandopomy said: Hey, @tuanphan. I tried copying and pasting the code to my footer section and I replaced the video url with my 3-sec YouTube video one but it didn't work. Am I doing something wrong? Thanks again! Code will work with direct video url only. It won't work with Youtube video. You can send me Youtube link, I will test & give you new code 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
nandopomy Posted July 30 Author Share Posted July 30 (edited) Got it. Here's the YouTube link: Is it better having the video on YouTube or having it direct? Thanks! Edited July 30 by nandopomy Link to comment
tuanphan Posted July 31 Share Posted July 31 22 hours ago, nandopomy said: Got it. Here's the YouTube link: Is it better having the video on YouTube or having it direct? Thanks! If you have video direct url, it would be easier. Youtube doesn't support direct url. First, you edit Site Footer > Add a Video Block > Add your Youtube URL Next, use below tool to find ID of Video Block Next, use this new code <style> #enter-video-block-id { position:fixed; z-index:9999; background-color: #000000; height:100vh; width:100vw; display:flex; flex-flow: column nowrap; justify-content:center; align-items:center; animation-name: slideOut; animation-fill-mode: forwards; animation-duration:.65s; animation-delay: 15s; } @keyframes slideOut { from {margin-left: 0vw;} to {margin-left: -200vw;} } </style> 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
nandopomy Posted August 2 Author Share Posted August 2 (edited) Perfect, Thank you! Is there a way to do this without having the video block that I added to show on my website? (I don't want the video block on the footer to be visible to viewers) Edited August 2 by nandopomy Link to comment
tuanphan Posted August 11 Share Posted August 11 Use this code to Custom CSS box, it will hide Video from Footer footer.sections #enter-video-block-id { display: none !important; } Next, edit this line to this display:flex !important; 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
nandopomy Posted August 11 Author Share Posted August 11 (edited) I tried doing everything above but nothing happens (The 3 sec video doesn't play when the website loads). Thoughts? Edited August 11 by nandopomy Link to comment
tuanphan Posted August 14 Share Posted August 14 You mean that code make video disappear 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
nandopomy Posted August 14 Author Share Posted August 14 I mean that the code didn't do anything (the 3 sec YouTube video doesn't play when the website loads). Thanks! Link to comment
tuanphan Posted August 15 Share Posted August 15 On 8/2/2024 at 2:04 PM, nandopomy said: Perfect, Thank you! Is there a way to do this without having the video block that I added to show on my website? (I don't want the video block on the footer to be visible to viewers) I though you said code worked and you need to make video in footer invisible? So The code I sent will hide video on Footer 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
nandopomy Posted August 15 Author Share Posted August 15 (edited) Sorry for not explaining myself better. The code did hide the video block from the footer but the 3 sec video never plays when loading the website. I tried both with or without the video-block-hiding CSS code but the video doesn't play on both instances. Thanks! Edited August 15 by nandopomy Link to comment
tuanphan Posted August 20 Share Posted August 20 Can you share site url? 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