{"id":252,"date":"2017-01-31T23:44:00","date_gmt":"2017-01-31T23:44:00","guid":{"rendered":"http:\/\/tommustester.wpengine.com\/?page_id=252"},"modified":"2017-01-31T23:44:00","modified_gmt":"2017-01-31T23:44:00","slug":"video-backgrounds","status":"publish","type":"page","link":"https:\/\/psdev2.com\/blog\/elements\/video-backgrounds","title":{"rendered":"Elements &#8211; Video Backgrounds"},"content":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero image=&#8221;38&#8243;][vc_column_text]<\/p>\n<h1>Video Backgrounds<\/h1>\n<p class=\"lead\">These modular elements can be readily used and customized across pages and in different blocks.<\/p>\n<hr class=\"short\" \/>\n<p>Explore all of Stack&#8217;s modular elements<br \/>\nat the\u00a0<a href=\"\/elements\/\">Element Index Page \u2192<\/a>[\/vc_column_text][\/stack_hero][\/vc_column][\/vc_row][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Local Video Background<\/h4>\n<p>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 <strong>.videobg<\/strong> and <strong>.imagebg<\/strong> on the section as described below.<\/p>\n<p><strong>NOTE:<\/strong> The video background element does not display on mobile devices, for these devices, a fallback poster image is used.[\/vc_column_text][\/stack_boxed_content][\/vc_column][\/vc_row][\/vc_section][vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero_video image=&#8221;235&#8243; webm=&#8221;http:\/\/stack.tommusdemos.wpengine.com\/wp-content\/uploads\/sites\/62\/2017\/01\/video.webm&#8221; mpfour=&#8221;http:\/\/stack.tommusdemos.wpengine.com\/wp-content\/uploads\/sites\/62\/2017\/01\/video.mp4&#8243;][vc_column_text]<\/p>\n<h2 style=\"text-align: center;\">Here&#8217;s a local video being used as a background<\/h2>\n<p>[\/vc_column_text][\/stack_hero_video][\/vc_column][\/vc_row][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text]<\/p>\n<h4>Youtube Video Background<\/h4>\n<p>This section uses a video hosted on Youtube. The Youtube background sections requires a div with class <strong>.youtube-background<\/strong> with the data attribute <strong>data-video-url<\/strong> which is the Youtube video&#8217;s ID.<\/p>\n<p>Alternative, add the <strong>data-start-at<\/strong> 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.<\/p>\n<p>Place the class <strong>.videobg<\/strong> and <strong>.imagebg<\/strong> on the section as described below.<\/p>\n<p><strong>NOTE:<\/strong> The Youtube video background element does not display on mobile devices, for these devices, a fallback poster image is used.[\/vc_column_text][\/stack_boxed_content][\/vc_column][\/vc_row][\/vc_section][vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero_video layout=&#8221;youtube&#8221; image=&#8221;235&#8243; embed=&#8221;M-hGwtvtXCk&#8221; start=&#8221;17&#8243;][vc_column_text]<\/p>\n<h2 style=\"text-align: center;\">Here&#8217;s a YouTube\u00a0video being used as a background<\/h2>\n<p>[\/vc_column_text][\/stack_hero_video][\/vc_column][\/vc_row]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[vc_row full_width=&#8221;stretch_row&#8221;][vc_column][stack_hero image=&#8221;38&#8243;][vc_column_text] Video Backgrounds These modular elements can be readily used and customized across pages and in different blocks. Explore all of Stack&#8217;s modular elements at the\u00a0Element Index Page \u2192[\/vc_column_text][\/stack_hero][\/vc_column][\/vc_row][vc_section][vc_row css=&#8221;.vc_custom_1485825445121{margin-bottom: 30px !important;}&#8221;][vc_column][stack_boxed_content padding=&#8221;boxed&#8211;lg&#8221; background=&#8221;bg&#8211;secondary&#8221;][vc_column_text] Local Video Background This section uses local video files hosted on your own server, required in WEBM, MP4 and [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":33,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages\/252"}],"collection":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/comments?post=252"}],"version-history":[{"count":0,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages\/252\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/pages\/33"}],"wp:attachment":[{"href":"https:\/\/psdev2.com\/blog\/wp-json\/wp\/v2\/media?parent=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}