Created
August 27, 2023 19:46
-
-
Save memetican/904a54b9a692cfdb47bc68051f2e5c77 to your computer and use it in GitHub Desktop.
Hosting Files Externally
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
.video-container { | |
position: relative; | |
width: 100%; | |
padding-bottom: 56.25%; /* 16:9 aspect ratio */ | |
overflow: hidden; | |
} | |
.video-container video { | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
} | |
</style> | |
<div class="video-container"> | |
<video controls autoplay muted> | |
<source src="https://www.dropbox.com/scl/fi/znkyezwzek7m8j8pdz60t/pexels-luna-lovegood-4465903-3840x2160-50fps.mp4?rlkey=ds7rcnhrgo8ayp2ksjnmf7ows&dl=1" type="video/mp4"> | |
Your browser does not support the video tag. | |
</video> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment