<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css" rel="stylesheet">
<style>@charset "utf-8";
/*========= スクロールダウンのためのCSS ===============*/
/*スクロールダウン全体の場所*/
.scrolldown {
/*描画位置※位置は適宜調整してください*/
position: absolute;
bottom: 10px;
right: 50%;
/*マウスの動き1.6秒かけて動く永遠にループ*/
animation: mousemove 1.6s ease-in-out infinite;
}
/*下からの距離が変化して上から下に動く*/
@keyframes mousemove {
0% {
bottom: 10px;
}
50% {
bottom: 5px;
}
100% {
bottom: 10px;
}
}
/*Scrollテキストの描写*/
.scrolldown span {
z-index: 10;
/*描画位置*/
position: absolute;
left: -15px;
bottom: 45px;
/*テキストの形状*/
color: #333;
font-size: 0.7rem;
letter-spacing: 0.05em;
white-space: nowrap;
}
/*マウスの中の線描写 */
.scrolldown span::after {
z-index: 10;
content: "";
/*描画位置*/
position: absolute;
top: 10px;
left: 17px;
/*線の形状*/
width: 1px;
height: 15px;
background: #333;
/*線の動き1.4秒かけて動く。永遠にループ*/
animation: mousepathmove 1.4s linear infinite;
opacity: 0;
}
/*上からの距離・不透明度・高さが変化して上から下に流れる*/
@keyframes mousepathmove {
0% {
height: 0;
top: 10px;
opacity: 0;
}
50% {
height: 15px;
opacity: 1;
}
100% {
height: 0;
top: 30px;
opacity: 0;
}
}
/*マウスの描写 */
.scrolldown:before {
z-index: 10;
content: "";
/*描画位置*/
position: absolute;
bottom: 0;
left: -10px;
/*マウスの形状*/
width: 25px;
height: 37px;
border-radius: 10px;
border: 1px solid #333;
}
/*マウスの中の丸の描写*/
.scrolldown:after {
z-index: 10;
content: "";
/*描画位置*/
position: absolute;
bottom: 26px;
left: 0;
/*丸の形状*/
width: 5px;
height: 5px;
border-radius: 50%;
border: 1px solid #333;
}
/*========= スクロールのためのCSS ===============*/
.space {
padding: 100vh 0;
}
/*========= レイアウトのためのCSS ===============*/
.wrapper {
text-align: center;
}
p {
text-align: center;
padding: 20px 0;
font-size: clamp(0.9rem, 2vw, 1.5rem);
letter-spacing: 0.5em;
color: #333;
white-space: nowrap;
}
.bg-black {
background: #000;
}
.bg-black p {
color: #fff;
}
a {
color: #333;
}
img {
max-width: 65vh;
height: auto;
margin-top: -20px;
}
.blend {
display: grid;
place-items: center;
background: url(_assets/img_06.jpg) no-repeat
center/cover;
}
.blend img {
mix-blend-mode: multiply;
max-width: 65vh;
height: auto;
}</style>
</head>
<body>
<body>
<div class="scrolldown">
<span>Scroll</span>
</div>
<div class="wrapper">
<div class="bg-black">
<p>背景白色のGIF画像</p>
</div>
<p>
<img class="apng-image" src="http://localhost:10072/wp-content/uploads/demos/_assets/webnavi_poyopoyo.gif" alt="">
</p>
<div class="space">
</div>
<div class="bg-black">
<p>mix-blend-modeでGIF画像の背景を消す</p>
</div>
<div class="blend">
<p>
<img class="blend" src="http://localhost:10072/wp-content/uploads/demos/_assets/webnavi_urouro.gif" alt="">
</p>
</div>
</div>
<!--/wrapper-->
<script>
</script>
</body>
</html>