css布局实现时间天气卡片效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现时间天气卡片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url(https://fonts.googleapis.com/css?family=Lato:100,300,400,700,100italic,300italic,400italic,700italic); body{ margin: 0; padding: 0; background: rgba(56, 45, 73, 1); } .wrapper{ position: absolute; top: calc(50% - 120px); left: calc(50% - 200px); width: 400px; height: 240px; } .box{ background: rgba(76, 127, 230, 1); width: 400px; height: 130px; } .box:after{ content: ''; position: absolute; top: 130px; border-left: 400px solid transparent; border-right: 0px solid transparent; border-bottom: 40px solid rgba(76, 127, 230, 1); transform: rotate(180deg); } .arrow-up { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 5px solid black; } .box_inner{ position: absolute; top: 74px; left: -52px; border-left: 140px solid transparent; border-right: 3px solid transparent; border-bottom: 40px solid rgba(57, 164, 255, 1); transform: rotate(-90deg); } .box_inner_shadow{ position: absolute; top: 78px; left: -58px; border-left: 140px solid transparent; border-right: 3px solid transparent; border-bottom: 40px solid rgba(58, 92, 186, 1); transform: rotateZ(65deg) rotateX(180deg); } .box_inner:before{ content: ''; position: absolute; top: 39px; left: -140px; border-left: 114px solid transparent; border-right: 30px solid transparent; border-bottom: 300px solid rgba(57, 164, 255, 1); transform: rotate(180deg); } .box_inner:after{ content: ''; position: absolute; top: 36px; left: -111px; border-left: 114px solid transparent; border-right: 20px solid transparent; border-bottom: 300px solid rgba(57, 164, 255, 1); transform: rotate(0deg); } .box_inner_tri{ position: absolute; top: 25px; left: 263px; border-left: 121px solid transparent; border-right: 34px solid transparent; border-bottom: 60px solid rgba(57, 164, 255, 1); transform: rotate(-64deg); } .box_inner_tri_shadow{ position: absolute; top: 28px; left: 275px; border-left: 114px solid transparent; border-right: 34px solid transparent; border-bottom: 55px solid rgba(58, 92, 186, 1); transform: rotate(-68deg); } .location{ position: absolute; top: 150px; left: 39px; border-left: 266px solid transparent; border-right: 34px solid transparent; border-bottom: 60px solid rgba(183, 215, 255, 1); transform: rotateX(180deg) rotateZ(5.7deg); } .mountain1{ position: absolute; top: 83px; left: 138px; border-left: 100px solid transparent; border-right: 160px solid transparent; border-bottom: 60px solid rgba(210, 234, 255, 1); transform: rotateX(0deg) rotateZ(-5.7deg); } .mountain2{ position: absolute; top: 92px; left: 36px; border-left: 100px solid transparent; border-right: 190px solid transparent; border-bottom: 60px solid rgba(255, 255, 255, 1); transform: rotateX(0deg) rotateZ(-5.7deg); } .tri1{ position: absolute; top: 24px; left: 2px; border-left: 40px solid transparent; border-right: 9px solid tran.........完整代码请登录后点击上方下载按钮下载查看
网友评论0