<div>
<style>
* {
padding: 0;
margin: 0;
}
.base {
//背景にグラデーション
position: relative;
background: linear-gradient(rgb(24, 176, 218), rgb(255, 255, 255));
height: 500px;
width: 100%;
}
.triangle img {
animation: 3s linear infinite rotation1;
width: 100%;
}
.f1 {
position: absolute;
top: 50px;
left: 20%;
width: 80px;
}
.f1 img {
filter: hue-rotate(80deg);
}
.f2 {
position: absolute;
top: 150px;
left: 40%;
width: 240px;
}
@keyframes rotation1 {
0% {
transform: rotate(0);
}
100% {
transform: rotate(360deg);
}
}
</style>
<div class="base">
<div class="triangle f1"><img src="img.png"></div>
<div class="triangle f2"><img src="img.png"></div>
</div>
</div>
More than 1 year has passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme