dimanche, mai 27, 2018
[stack_hero image= »38″]

Video Backgrounds

These modular elements can be readily used and customized across pages and in different blocks.


Explore all of Stack’s modular elements
at the Element Index Page →

[/stack_hero]
[vc_section css= ».vc_custom_1498221020327{padding-top: 0px !important;} » ebor_docs= » »]
[stack_boxed_content padding= »boxed–lg » background= »bg–secondary »]

Local Video Background

This section uses local video files hosted on your own server, required in WEBM, MP4 and OGV formats using the HTML video element. Place the class .videobg and .imagebg on the section as described below.

NOTE: The video background element does not display on mobile devices, for these devices, a fallback poster image is used.

[/stack_boxed_content]
[/vc_section]
[stack_hero_video image= »235″ webm= »http://stack.tommusdemos.wpengine.com/wp-content/uploads/sites/62/2017/01/video.webm » mpfour= »http://stack.tommusdemos.wpengine.com/wp-content/uploads/sites/62/2017/01/video.mp4″]

Here’s a local video being used as a background

[/stack_hero_video]
[vc_section]
[stack_boxed_content padding= »boxed–lg » background= »bg–secondary »]

Youtube Video Background

This section uses a video hosted on Youtube. The Youtube background sections requires a div with class .youtube-background with the data attribute data-video-url which is the Youtube video’s ID.

Alternative, add the data-start-at attribute with a numerical value to start the video playing from a particular point ie. a value of 10 would start the video 10 seconds in.

Place the class .videobg and .imagebg on the section as described below.

NOTE: The Youtube video background element does not display on mobile devices, for these devices, a fallback poster image is used.

[/stack_boxed_content]
[/vc_section]
[stack_hero_video layout= »youtube » image= »235″ embed= »M-hGwtvtXCk » start= »17″]

Here’s a YouTube video being used as a background

[/stack_hero_video]