【发布时间】:2020-08-16 18:15:37
【问题描述】:
也许需要一些 javascript 请建议。您可以在 aditagarwal.com 上查看
CSS。
.images-wrapper{
position: fixed;
left: 0;
top: 80px;
bottom: 0;
width: 100%;
height: 100vh;
animation: animate 16s ease-in-out infinite;// maybe something here
background-size: cover;
}
@keyframes animate{
0%,100%{
background-image: url(coding2.jpeg);
}
25%{
background-image: url(Flowers.png);
}
50%{
background-image: url(Desert.png);
}
75%{
background-image: url(sunset.png);
}
}
HTML
<div class="images-wrapper">
</div>
【问题讨论】:
-
那行不通...您需要更改这些照片的不透明度。这肯定需要 javascript 才能知道哪个图像正在显示,哪个图像在隐藏。
标签: javascript html css image firefox