div+css布局实现飞机机舱外风景效果代码
代码语言:html
所属分类:布局界面
代码描述:div+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: #1F5372 ; display: flex; justify-content: center; align-items: center; } .container { width: 160px; height: 335px; position: relative; background: linear-gradient(to bottom, #133C55 0%, #59A5D8 70%, #84D2F6 100%); box-shadow: 0 10px 20px rgba(0,0,0,.1), 0 10px 10px rgba(0,0,0,.1); border-radius: 100px; overflow: hidden; } .disc-1 { position: absolute; top:37%; left: -4%; width: 170px; height: 170px; background: #FFD6D6; opacity: .2; border-radius: 50%; animation: glow infinite 2s; animation-fill-mode: both; animation-direction: alternate; } .disc-2 { position: absolute; top: 45%; left: 10%; width: 130px; height: 130px; background: #FFDED6; opacity: .4; border-radius: 50% ; animatio.........完整代码请登录后点击上方下载按钮下载查看
网友评论0