Tagged: background video, vimeo video
-
AuthorPosts
-
June 14, 2018 at 7:42 pm #972971
Hi there Enfold team!
I currently have these CSS settings set for my background video. The website is http://circle2media.com/. Unfortunately it made the background video unresponsive on mobile.Can you look into this please? Thank you so much! :)
#top.home #av_section_1 .av-section-video-bg iframe { top: 0 !important; -webkit-transform: scale(1) !important; -ms-transform: scale(1) !important; transform: scale(1) !important; } .home #wrap_all #av_section_1 { height: 110vh !important; } @media only screen and (min-width:1920px) { .home #wrap_all #av_section_1 { height: 110vh !important; } }
- This topic was modified 6 years, 6 months ago by Archie.
June 16, 2018 at 6:03 pm #973671Hey Archie,
I think this code should be wrapped in the media query too:
@media only screen and (min-width:1024px) { #top.home #av_section_1 .av-section-video-bg iframe { top: 0 !important; -webkit-transform: scale(1) !important; -ms-transform: scale(1) !important; transform: scale(1) !important; } .home #wrap_all #av_section_1 { height: 110vh !important; } }
If you need further assistance please let us know.
Best regards,
VictoriaJune 18, 2018 at 10:34 am #974139Hi Victoria!
Thank you for your response. Unfortunately, after applying the code your sent, it still doesn’t work.
I added it to Quick CSS first, when it didn’t work, I placed it on custom.css, but both placements didn’t work.
Please advice.
Thank you! :)
June 18, 2018 at 1:35 pm #974245June 18, 2018 at 1:59 pm #974254June 18, 2018 at 3:05 pm #974300Hi Victoria!
Thank you for your response. Yes, I removed the old code and added a new one wrapped it in media query as follows:
@media only screen and (min-width:1920px) { #top.home #av_section_1 .av-section-video-bg iframe { top: 0 !important; -webkit-transform: scale(1) !important; -ms-transform: scale(1) !important; transform: scale(1) !important; } .home #wrap_all #av_section_1 { height: 110vh !important; } } @media only screen and (min-width:1920px) { .home #wrap_all #av_section_1 { height: 110vh !important; } }
This is how it currently looks like on mobile with the code I am using above.
http://i66.tinypic.com/20rppb6.png
Thank you! :)
June 20, 2018 at 10:46 am #975195Hi Archie,
The code you’re adding applies to big screens and not the small ones, you need to add the code for small screens too.
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width: 767px) { #top #wrap_all #main #av_section_1 .avia-no-border-styling { height: 300px; } }
If you need further assistance please let us know.
Best regards,
VictoriaJune 26, 2018 at 11:14 am #977858Hi Victoria!
Thank you for your response. I placed the code on custom.css file, here’s how it looks:
Unfortunately, there is not changes. The video on mobile is still unresponsive.
Can you look into this?
Thank you!
June 26, 2018 at 5:40 pm #978041Hi Archie,
I see the missing curly brace there and so the code does not work. You can see the error notice at the bottom.
Line 32 should have another brace on it.Best regards,
VictoriaJune 28, 2018 at 3:26 pm #978913Hi Victoria!
I added the missing curly brace on line 32, unfortunately I still see no changes on the video on mobile.
Can you please look into this?
Thanks!
July 2, 2018 at 5:40 pm #980168Hi Victoria!
Were you able to check on this request?
Thank you much!
July 3, 2018 at 9:07 pm #980758Hi Archie,
Yes, I have looked, do you want it to be less tall?
Best regards,
VictoriaJuly 4, 2018 at 8:14 pm #981339Thank you for your response Victoria!
Can we make the video responsive so that it shows the entire video on mobile screens?
July 8, 2018 at 4:54 pm #982720Hi Archie,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width: 767px) { .avia-builder-el-0.av-minimum-height-100 .container, .avia-builder-el-0.avia-fullscreen-slider .avia-slideshow, .avia-builder-el-0.av-cell-min-height-100 > .flex_cell { height: 250px !important; } }
If you need further assistance please let us know.
Best regards,
VictoriaJuly 10, 2018 at 6:16 am #983509Hi Victoria!
I added the code first to quick css and then to custom.css, but unfortunately both methods did not work :(
Please advise. Thank you!
- This reply was modified 6 years, 5 months ago by Archie.
July 10, 2018 at 9:36 am #983548Why don’t you use the full-width slider element (not the full-screen one) with your video as one slide.
you don’t have the need to have caption or buttons. and you can set up the video to loop. The only thing is that the controlelements can’t be completely hidden for vimeo videos. So the user could pause the video. After some time the control elements are hidden on default.
result see here: https://webers-testseite.de/video-tut/you have no content over your video – so no reason to have here a color-section.
July 10, 2018 at 12:30 pm #983600July 11, 2018 at 10:25 am #984105Hi,
I have an mp4 video on the colour section. It plays on the computer, iPad, Android phone but on the iPhone (any browser such as chrome, safari and firefox) it is a still image instead of video.
How can I fix that?
Thank you
LiamJuly 11, 2018 at 12:04 pm #984168Hi Liam,
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaJuly 11, 2018 at 12:15 pm #984181July 12, 2018 at 9:54 am #984579Hi Liam,
Here is a thread for you to consider
https://kriesi.at/support/topic/colour-section-background-video-safari-does-not-work/#post-305604If you need further assistance please let us know.
Best regards,
VictoriaJuly 12, 2018 at 12:19 pm #984657I tried, but the issue remains.
Thank you. Liam
July 17, 2018 at 8:10 pm #986606Hi,
I am afraid it seems we are not sure what else to advice on solving the problem…
Best regards,
BasilisJuly 17, 2018 at 9:31 pm #986651last try from my side here: you see that example page with your video: https://webers-testseite.de/video-tut/
Isn’t that the thing you like to optain?
You can not have full height and responsiveness. These are conditions that are mutually exclusiveIf you have some content in front of the video – i can understand your request. But without the best way is to use the full-width video slider
July 17, 2018 at 10:12 pm #986669Perfect Guenni007:) I will use full-width video slider.
July 17, 2018 at 10:25 pm #986676see here responsiveness with color-section – but if content is determing the container height of the color section this will not work.
With all its settings like transparency and overlay color.
very important: the color-section has no padding no min height !!!
and the color-section gets the custom class: resp-containerthe code is set for that page only – you have to adapt this to your needs – maybe you omit the if-clause
this comes to functions.php of your child-theme:function responsive_background_video(){ if ( is_page(32661)){ ?> <script> (function($){ $('body').on('DOMNodeInserted', function(){ $('.resp-container iframe').addClass('resp-iframe'); $('.resp-container').css({ "position": "relative", "overflow": "hidden" , "padding-top": "56.25vw" }); $('iframe.resp-iframe').css({ "position": "relative", "top": "0" , "left": "0", "width": "100vw" , "height": "56.25vw" , "border": "0", "-webkit-transform": "scale(1.4)", "-ms-transform": "scale(1.4)", "transform": "scale(1.4)" }); $('.resp-container .av-section-color-overlay').css({ "top": "-56.25vw" }); }); })(jQuery); </script> <?php } } add_action('wp_footer', 'responsive_background_video');
this is for 16:9 Videos only
by the way – very nice trick with DOMNodeInserted
July 17, 2018 at 10:28 pm #986677ah – onething i have forgotten: you have to shift the content the same value to top ( to adjust the padding-top of color-section)
i did it with the column option for the first column: Custom top and bottom margin margin-top : -52vwJuly 18, 2018 at 8:27 am #986832Dear guenni007,
Thank you so much for your help and time. Look like you are most keen to help instead of Kries team.
I appreciate your help and time!
I am going to apply all your suggestions to solve the issue.
Thank you indeed:)
July 19, 2018 at 5:09 pm #987494Hi Liam,
Glad Guenni007 helped you :)
If you need further assistance please let us know.
Best regards,
VictoriaJuly 24, 2018 at 10:44 am #989094Hi Guenni007 and Enfold team!
Thank you for your response and suggestions. The full-width slider element would be perfect for making videos responsive on mobile, however the full-width slider element does not display videos on mobile.
Do we have any alternative solution for this?
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.