Hello!
I am making a small promo page that’s supposed to be different than the rest of my site.
The idea is to have four different videos in full screen, with no padding whatsoever.
Here is the idea (with some random videos and posters):
www.moloton.com/martin-test2
I’ve managed to make the layout like I want but I need help with two things:
- The responsive resizing adapting to resizing of the browser isn’t quite working like I want. If I reduce the width on the browser, it zooms out and you can see some of the grey background underneath before it goes over to stacking the videos like it should on iOS. This doesn’t happen if I choose a background in a Cornerstone section, no matter if it is a image or a video. I want it to resize the same way as these backgrounds, so that you never see the background - like on these example pages made in Cornerstone:
http://www.moloton.com/martin-test/
https://www.cstemplates.com/fullscreen-section/
Is it possible? I’ve tried fiddling around with the CSS width and height to make it work, but I can’t do it. Is it the ‘background-size: contain’ function that does it here? Is it possible making this Section behave the same?
- Now the video playback starts when I click, but I want to try to implement playback on hover. I’ve tried with some basic Javascript, but when inspecting I can’t find which is the actual class of the video to use when referencing… It’s all so baked into so many containers in Cornerstone. I would like the video to play when hovering and stop when not and when clicking the video ref another link to a file download.
I’ll send you some login credentials, but I don’t know how to hide them in this new support platform?
All the best!