css布局绘制一幅单色景观景色效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局绘制一幅单色景观景色效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> * { padding: 0; margin: 0; box-sizing: border-box; } body { height: 100vh; background-color: #0A4B78; display: flex; justify-content: center; align-items: center; } .container { width: 367px; height: 500px; position: relative; background: linear-gradient(to bottom, #01263A 0%, #4F94D4 70%, #C5D9ED 100%); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.3); border-radius: 80px; overflow: hidden; } .disc-1 { position: absolute; top: 24%; left: 1%; width: 359px; height: 358px; background: #72AEE6; opacity: 0.2; border-radius: 50%; -webkit-animation: glow infinite 2s; animation: glow infinite 2s; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-direction: alternate; animation-direction: alternate; } .disc-2 { position: absolute; top: 35%; left: 16%; width: 260px; height: 260px; background: #9EC2E6; opacity: 0.4; border-radius: 50%; -webkit-animation: glow infinite 2s; animation: glow infinite 2s; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-direction: alternate; animation-direction: alternate; } .disc-3 { position: absolute; top: 43%; left: 27%; width: 180px; height: 180px; border-radius: 50%; background: #F0F6FC; opacity: 0.6; -webkit-animation: glow infinite 2s; animation: glow infinite 2s; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-direction: alternate; animation-direction: alternate; } .landscape-1 { position: absolute; bottom: 119px; left: -7px; width: 250px; height: 70px; background-color: #9EC2E6; transform: rotate(9deg); } .landscape-2 { position: absolute; bottom: 90px; right: -7px; width: 350px; height: 90px; background-color: #72AEE6; transform: rotate(-6deg); } .landscape-3 { position: absolute; bottom: 65px; left: -4px; width: 390px; height: 80px; background-color: #4F94D4; transform: rotate(5deg); } .landscape-4 { position: absolute; bottom: 50px; left: -4px; width: 400px; height: 70px; background-color: #135E96; transform: rotate(-4deg); } .landscape-5 { position: absolute; bottom: -10px; left: -6px; width: 370px; height: 90px; background-color: #043959; transform: rotate(5deg); } .tree-1 { position: absolute; top: 63%; left: 30%; height: 15px; width: 20px; background-color: #59A5D8; -webkit-clip-path: polygon(50% 0%, 22% 100%, 75% 100%); clip-path: polygon(50% 0%, 22% 100%, 75% 100%); box-shadow: 2px 0 2px 4px rgba(0, 0, 0, 0.1); } .tree-2 { position: absolute; top: 65%; left: 80%; height: 20px; width: 13px; background-color: #4F94D4; -webkit-clip-path: polygon(50% 0%, 22% 100%, 75% 100%); clip-path: polygon(50% 0%, 22% 100%, 75% 100%); box-shadow: 2px 0 2px 4px rgba(0, 0, 0, 0.1); } .tree-3 { position: absolute; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0