Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e0cb83

Browse files
authored
Merge pull requestalexmojaki#279 from alexmojaki/resize-video
Resize video iframe to fit, fixing screen width and warpspeed performance
2 parents336cbc9 +43a5371 commit3e0cb83

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

‎homepage/index.html‎

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,18 @@ <h4 class="center-text" data-aos="fade-up" data-aos-duration="800" data-aos-dela
254254

255255
<sectionid="demo-vid"data-aos="fade-up"data-aos-duration="800"data-aos-offset="300">
256256
<divclass="container flex center-content">
257-
<div>
258-
<h2>Watch a demo of the features and benefits:</h2>
259-
260-
<iframewidth="1280"height="720"src="https://www.youtube.com/embed/un1BrrV57PA"frameborder="0"
261-
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
262-
allowfullscreen></iframe>
263-
</div>
257+
<div>
258+
<h2>Watch a demo of the features and benefits:</h2>
259+
<!-- https://stackoverflow.com/a/20130011/2482744 -->
260+
<divstyle="position: relative; padding-top: 56.25%">
261+
<iframestyle="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
262+
src="https://www.youtube.com/embed/un1BrrV57PA"
263+
frameborder="0"
264+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
265+
allowfullscreen
266+
></iframe>
267+
</div>
268+
</div>
264269
</div>
265270
</section>
266271

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp