This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Samwoo E
Posted Mar 30 - Read on Facebook

Anyone have any luck with incorporating video with Framer? Any good examples to note?

1 Comments

Marcelo Eduardo Oliveira

Just add the video tags / content to the .html of a view.
Something along those lines: (simplified the number of video formats for the example, be sure to check if the browser supports your format )

Video = new View({
x : 0,
y : 600,
width : 1180,
height : 620,
opacity : 1
});

var videoFile = 'video.mov'
var videoContent = '<div>'
videoContent += '<video id="sourcevid" loop="false">'
videoContent += '<source src="'+videoFile+'" type="video/mp4"/>'
videoContent += '</video></div>';

Video.html = videoContent;

Read the entire post on Facebook