Home › Forums › Air HTML5 Template › Use mp4 video instead of jpg within the main title text slider
- This topic has 9 replies, 2 voices, and was last updated 1 month, 3 weeks ago by
SeaTheme.
- AuthorPosts
- December 3, 2022 at 7:34 pm #28700
Hi there!
I just purchased your theme and am exploring how I want to implement it for my business.
One thing I would really love to do is use an mp4 as the content within the main title text slider instead of an image. I tried out a webp video which worked without issue, but an mp4 would be much more size efficient.
Is there any way for me to accomplish this?
Thanks!
December 3, 2022 at 7:36 pm #28701Whoops accidentally made an img link instead of link link before. Here’s the
test with webp videoDecember 4, 2022 at 8:29 am #28703Hi there,
Welcome to SeaTheme forum.Do you mean that the MP4 does not work? Could you please leave the issue page url? Thanks
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookDecember 5, 2022 at 3:11 pm #28705Sorry the website actually isnt live yet.
Or did you mean you have an issue page?
December 5, 2022 at 4:20 pm #28706Here’s the code for what I’m referring to. It will work with a webp video but not with an mp4 (as the code shows below) for some reason.
Any thoughts?
<!-- Main Content Wrap --> <div id="wrap"> <!-- Top Slider --> <div class="top-slider top-slider-text"> <div class="text-slider-inn middle-ux"> <h1 class="slider-headding slider-headding-1 headding-with-bg" data-bg="img/abstractreel.mp4">Mazor Creative</h1> <div class="slider-con"> <div class="slider-con-inn"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc quam..</p> </div> </div> </div> </div><!-- End top-slider -->
December 7, 2022 at 1:55 am #28717HI,
The effect is implemented by the css property background-image, and the CSS background-image does not support mp4 format.
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookDecember 7, 2022 at 9:56 pm #28724Is there any way for me to adjust things to make an mp4 work instead?
December 8, 2022 at 6:38 am #28726Hi, It is not possible to use mp4, you can try to use GIF
Regards!
SeaTheme – FAQs – WordPress Customization – FacebookDecember 9, 2022 at 10:13 pm #28731Ok thanks! With that in mind, is there any way that I could make it so that background-image is always scaled to be just large enough to fit the headding-with-bg text scale? That would let me use a smaller file resolution.
December 10, 2022 at 5:36 am #28732Welcome.
The fixed value of background-attachment does fill fullscreen, you can disable it by the CSS:.backgroundcliptext .headding-with-bg.slider-headding { background-attachment: scroll; }
Regards!
SeaTheme – FAQs – WordPress Customization – Facebook - AuthorPosts
- You must be logged in to reply to this topic.