Skip to content

Instantly share code, notes, and snippets.

@IgnetStudio
Last active January 21, 2025 00:41
Show Gist options
  • Save IgnetStudio/34d0702de65b31081af2de7564c9fe03 to your computer and use it in GitHub Desktop.
Save IgnetStudio/34d0702de65b31081af2de7564c9fe03 to your computer and use it in GitHub Desktop.
Code to be inserted in Framer app as a "Code Component" (apply YOUTUBE_VIDEO_ID within code)
export default function Video(props) {
return (
<div style={containerStyle}>
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/YOUTUBE_VIDEO_ID"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>
</div>
)
}
const containerStyle = {
height: "100%",
display: "flex",
justifyContent: "center",
alignItems: "center",
overflow: "hidden",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment