css气泡背景墙样式
AI 概述
css 气泡背景墙样式
<div class="bruce" data-title="气泡背景墙">
<ul class="bubble-bgwall">
<li>Love</li>
<li>Love</li>
<li>Love</li>
<li>Love</li>
<li>Love</li>
<l...
css 气泡背景墙样式

<div class="bruce" data-title="气泡背景墙">
<ul class="bubble-bgwall">
<li>Love</li>
<li>Love</li>
<li>Love</li>
<li>Love</li>
<li>Love</li>
<li>Love</li>
<li>Love</li>
<li>Love</li>
<li>Love</li>
<li>Love</li>
</ul>
</div>
css 代码:
* {
margin:0;
padding:0;
}
html,body {
width:100%;
height:100%;
}
.bruce {
width:100%;
height:100%;
background-image:linear-gradient(270deg,#8146b4,#6990f6);
}
.bubble-bgwall {
overflow:hidden;
position:relative;
margin:0 auto;
width:1200px;
height:100%;
}
li {
display:flex;
position:absolute;
bottom:-200px;
justify-content:center;
align-items:center;
border-radius:10px;
width:50px;
height:50px;
background-color:rgba(#fff,.15);
color:#ccc;
animation:bubble 15s infinite;
}
li:nth-child(1) {
left:10%;
}
li:nth-child(2) {
left:20%;
width:90px;
height:90px;
animation-duration:7s;
animation-delay:2s;
}
li:nth-child(3) {
left:25%;
animation-delay:4s;
}
li:nth-child(4) {
left:40%;
width:60px;
height:60px;
background-color:rgba(#fff,.3);
animation-duration:8s;
}
li:nth-child(5) {
left:70%;
}
li:nth-child(6) {
left:80%;
width:120px;
height:120px;
background-color:rgba(#fff,.2);
animation-delay:3s;
}
li:nth-child(7) {
left:32%;
width:160px;
height:160px;
animation-delay:2s;
}
li:nth-child(8) {
left:55%;
width:40px;
height:40px;
font-size:12px;
animation-duration:15s;
animation-delay:4s;
}
li:nth-child(9) {
left:25%;
width:40px;
height:40px;
background-color:rgba(#fff,.3);
font-size:12px;
animation-duration:12s;
animation-delay:2s;
}
li:nth-child(10) {
left:85%;
width:160px;
height:160px;
animation-delay:5s;
}
@keyframes bubble {
0% {
opacity:.5;
transform:translateY(0) rotate(45deg);
}
25% {
opacity:.75;
transform:translateY(-400px) rotate(90deg);
}
50% {
opacity:1;
transform:translateY(-600px) rotate(135deg);
}
100% {
opacity:0;
transform:translateY(-1000px) rotate(180deg);
}
}
以上关于css气泡背景墙样式的文章就介绍到这了,更多相关内容请搜索码云笔记以前的文章或继续浏览下面的相关文章,希望大家以后多多支持码云笔记。
声明:本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若内容造成侵权/违法违规/事实不符,请将相关资料发送至 admin@mybj123.com 进行投诉反馈,一经查实,立即处理!
重要:如软件存在付费、会员、充值等,均属软件开发者或所属公司行为,与本站无关,网友需自行判断
码云笔记 » css气泡背景墙样式
如若内容造成侵权/违法违规/事实不符,请将相关资料发送至 admin@mybj123.com 进行投诉反馈,一经查实,立即处理!
重要:如软件存在付费、会员、充值等,均属软件开发者或所属公司行为,与本站无关,网友需自行判断
码云笔记 » css气泡背景墙样式
微信
支付宝