Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

背景動画をwebm+mp4化 #118

Merged
merged 2 commits into from
Dec 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
box-sizing: border-box;
}

html {
background: black;
}

html,
body {
width: 100%;
Expand Down Expand Up @@ -49,26 +53,18 @@ a {
color: white;
}

/* 背景画像にblurをかける */
figure.hero__bg {
width: calc(100vw + 15px);
height: calc(100vh + 15px);
width: 100%;
height: 100%;
position: fixed;
left: -7.5px;
right: 0;
top: -7.5px;
bottom: 0;
overflow: hidden;
z-index: -1;
}

.hero__inner__bg {
width: 100%;
height: 100%;
background: url(../images/background.gif) center no-repeat;
background-size: cover;
-webkit-filter: blur(5px);
filter: blur(5px);
object-fit: cover;
}

.hero .hero__logo,
Expand All @@ -77,6 +73,10 @@ figure.hero__bg {
animation: logo 1s ease 1s forwards;
}

.hero__logo {
margin-top: -30vh;
}

.hero .logo,
.guide_for_scroll {
margin: 0;
Expand Down Expand Up @@ -104,11 +104,12 @@ figure.hero__bg {
}
@media screen and (max-width: 700px) {
.hero .logo {
font-size: 80px;
font-size: 70px;
}

.hero .logo-sub {
margin-top: 1.5rem;
font-size: 25px;
}
}

Expand Down
Binary file removed images/background.gif
Binary file not shown.
Binary file added images/walk_omesis.mp4
Binary file not shown.
Binary file added images/walk_omesis.webm
Binary file not shown.
Binary file added images/walk_omesis_small.mp4
Binary file not shown.
14 changes: 11 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,15 @@
<div class="main">
<div class="section hero">
<figure class="hero__bg">
<div class="hero__inner__bg"></div>
<video class="hero__inner__bg" autoplay playsinline loop muted>
<source src="./images/walk_omesis.webm" type="video/webm" />
<source
src="./images/walk_omesis_small.mp4"
type="video/mp4"
media="all and (max-width: 800px)"
/>
<source src="./images/walk_omesis.mp4" type="video/mp4" />
</video>
</figure>
<div class="hero__logo">
<h1 class="logo">Ω Sisters</h1>
Expand Down Expand Up @@ -305,7 +313,7 @@ <h2><i class="fab fa-github"></i>GitHub</h2>
</div>
</div>
</div>

<script type="module" src="./preact_build/index.js"></script>
<script
type="text/javascript"
Expand All @@ -324,4 +332,4 @@ <h2><i class="fab fa-github"></i>GitHub</h2>
></script>
</div>
</body>
</html>
</html>