<body>
<p class="text">option</p>
<div class="container">
<p class="text">CustomizeCSS</p>
<div class="item" data-aos="sample_amine1">
sp:左傾斜から正方形 <br>
pc:右傾斜から正方形
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine2">
sp:ピンクから青 <br>
pc:ピンクからみどり
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine3">
sp:シェイク <br>
pc:ぽよよん
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine1">
sp:左傾斜から四角形 <br>
pc:右傾斜から四角形
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine2">
sp:ピンクから青 <br>
pc:ピンクからみどり
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine3">
sp:シェイク <br>
pc:ぽよよん
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine1">
sp:左傾斜から四角形 <br>
pc:右傾斜から四角形
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine2">
sp:ピンクから青 <br>
pc:ピンクからみどり
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine3">
sp:シェイク <br>
pc:ぽよよん
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine1">
sp:左傾斜から四角形 <br>
pc:右傾斜から四角形
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine2">
sp:ピンクから青 <br>
pc:ピンクからみどり
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine3">
sp:シェイク <br>
pc:ぽよよん
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine1">
sp:左傾斜から四角形 <br>
pc:右傾斜から四角形
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine2">
sp:ピンクから青 <br>
pc:ピンクからみどり
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
<div class="item" data-aos="sample_amine3">
sp:シェイク <br>
pc:ぽよよん
<img src="https://drive.google.com/uc?export=view&id=13TBj2wMdMKxukp4GAf2eFYHlS_p9T9bI" alt="" />
</div>
</div>
</body>
body {
background-color: #e9e9e9;
text-align: center;
overflow-x: hidden;
}
.item {
margin: 1rem auto;
width: 200px;
height: 200px;
color: #212121;
font-size: 0.2em;
background-color: #fff;
display: flex;
align-items: center;
justify-content: center;
flex-flow: column;
}
.title {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.text {
font-size: clamp(2rem, 3vw, 5rem);
font-weight: bold;
color: #333;
}
.item_text {
font-size: 1rem;
font-weight: bold;
}
img {
margin: 0 auto;
width: 50%;
object-fit: contain;
}
.trigger-right {
position: fixed;
top: 0;
bottom: 0;
right: 20px;
background: #ff99cc;
margin: auto;
}
.trigger-left {
position: fixed;
top: 0;
bottom: 0;
left: 20px;
background: #6699ff;
margin: auto;
}
[data-aos="sample_amine1"] {
transform: skewX(90deg);
opacity: 0;
transition-property: transform, opacity;
}
[data-aos="sample_amine1"].aos-animate {
transform: skewX(0);
opacity: 1;
}
[data-aos="sample_amine2"] {
background: #ff99cc;
transition-property: background;
}
[data-aos="sample_amine2"].aos-animate {
background: #6699ff;
}
[data-aos="sample_amine3"] {
opacity: 0;
transition-property: transform, opacity;
}
[data-aos="sample_amine3"].aos-animate {
animation: shake 2s linear both;
opacity: 1;
}
@media screen and (min-width: 768px) {
body {
background-color: #f7f6dc;
}
[data-aos="sample_amine1"] {
transform: skewX(-90deg);
opacity: 0;
transition-property: transform, opacity;
}
[data-aos="sample_amine2"].aos-animate {
background: #7fb77e;
}
[data-aos="sample_amine3"].aos-animate {
animation: poyon 1s linear both;
opacity: 1;
}
}
@keyframes shake {
0%,
7% {
transform: rotateZ(0);
}
15% {
transform: rotateZ(-25deg);
}
20% {
transform: rotateZ(20deg);
}
25% {
transform: rotateZ(-10deg);
}
30% {
transform: rotateZ(2deg);
}
35% {
transform: rotateZ(-2deg);
}
40%,
100% {
transform: rotateZ(0);
}
}
@keyframes poyon {
0% {
transform: scale(1, 1) translate(0, 0);
}
15% {
transform: scale(0.98, 0.9) translate(0, 5px);
}
30% {
transform: scale(1.02, 1) translate(0, 8px);
}
50% {
transform: scale(0.98, 1.05) translate(0, -8px);
}
70% {
transform: scale(1, 0.9) translate(0, 5px);
}
100% {
transform: scale(1, 1) translate(0, 0);
}
0%,
100% {
opacity: 1;
}
}
View Compiled