<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css" rel="stylesheet">
<style>@charset "utf-8";
/*==================================================
ふわっ
===================================*/
/* その場で */
.fadeIn {
animation-name: fadeInAnime;
animation-duration: 3s;
animation-fill-mode: forwards;
opacity: 0;
}
@keyframes fadeInAnime {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* 下から */
.fadeUp {
animation-name: fadeUpAnime;
animation-duration: 3s;
animation-fill-mode: forwards;
opacity: 0;
}
@keyframes fadeUpAnime {
from {
opacity: 0;
transform: translateY(100px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 上から */
.fadeDown {
animation-name: fadeDownAnime;
animation-duration: 3s;
animation-fill-mode: forwards;
opacity: 0;
}
@keyframes fadeDownAnime {
from {
opacity: 0;
transform: translateY(-100px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 左から */
.fadeLeft {
animation-name: fadeLeftAnime;
animation-duration: 3s;
animation-fill-mode: forwards;
opacity: 0;
}
@keyframes fadeLeftAnime {
from {
opacity: 0;
transform: translateX(-100px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/* 右から */
.fadeRight {
animation-name: fadeRightAnime;
animation-duration: 3s;
animation-fill-mode: forwards;
opacity: 0;
}
@keyframes fadeRightAnime {
from {
opacity: 0;
transform: translateX(100px);
}
to {
opacity: 1;
transform: translateX(0);
}
}
/*========= レイアウトのためのCSS ===============*/
body {
vertical-align: middle;
text-align: center;
width: 100%;
height: 100vh;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-image: linear-gradient(
100.6deg,
rgba(218, 185, 252, 1) 22%,
rgba(125, 89, 252, 1) 80%
);
}
.flex {
display: flex;
flex-wrap: wrap;
margin-top: 30px;
}
.box {
width: 200px;
padding: 20px;
margin: 20px 20px;
color: #333;
box-sizing: border-box;
white-space: nowrap;
background-color: rgba(255, 255, 255, 0.3);
backdrop-filter: blur(6.5px);
-webkit-backdrop-filter: blur(6.5px);
box-shadow: 0px 6px 15px 0px rgba(142, 142, 142, 0.19);
-webkit-box-shadow: 0px 6px 15px 0px rgba(142, 142, 142, 0.19);
border: 1px solid rgba(255, 255, 255, 0.4);
border-radius: 12px;
-webkit-border-radius: 12px;
}</style>
</head>
<body>
<body>
<!--ふわっ-->
<div class="flex">
<div class="box fadeIn">
<img src="http://localhost:10072/wp-content/uploads/demos/_assets/webnavi1.png" width="100" />
<br>ふわっ(その場で)</div>
<div class="box fadeUp">
<img src="http://localhost:10072/wp-content/uploads/demos/_assets/webnavi1.png" width="100" />
<br>ふわっ(下から)</div>
<div class="box fadeDown">
<img src="http://localhost:10072/wp-content/uploads/demos/_assets/webnavi1.png" width="100" />
<br>ふわっ(上から)</div>
<div class="box fadeLeft">
<img src="http://localhost:10072/wp-content/uploads/demos/_assets/webnavi1.png" width="100" />
<br>ふわっ(左から)</div>
<div class="box fadeRight">
<img src="http://localhost:10072/wp-content/uploads/demos/_assets/webnavi1.png" width="100" />
<br>ふわっ(右から)</div>
</div>
<script>
</script>
</body>
</html>