svg+css实现一个炫酷视觉差异vip贵宾卡会员卡点击翻转效果代码
代码语言:html
所属分类:视觉差异
代码描述:svg+css实现一个炫酷视觉差异vip贵宾卡会员卡点击翻转效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Rubik:300,400,500,700&display=swap"); body { margin: 0; font-family: "Rubik", sans-serif; display: flex; width:100vw; align-content: center; background: #f2f2f2; height: 100vh; } #inner{ width:375px; height:200px; position:relative; background: linear-gradient(-45deg, #303030, #191919); padding: 20px; overflow: hidden; box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.2); border-radius: 12px; transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); transform: perspective(600px) rotateY(0deg); } #card { margin: auto; width: 415px; height: 240px; transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); transform: perspective(600px) rotateX(0deg); position: relative; z-index: 20; } #inner:before{ content:""; width:400px; height:400px; background:rgba(0,0,0,0.6); position:absolute; border-radius:100%; top:92px; left:70px; z-index:-30; transform: perspective(600px) translatez(30px); } #inner:after{ content:""; width:400px; height:400px; background:rgba(0,0,0,0.6); position:absolute; border-radius:100%; top:-260px; left:-160px; z-index:-30; transform: perspective(600px) translatez(30px); } .benefit{ width:100%; height :100%; /* background:#fff; */ display:none; position:relative; align-content:center; justify-content:center; align-items:center; flex-wrap:nowarp; } .btn{ border-radius:50%; box-shadow: 0 2px 15px rgba(0,0,0,.65); height:60px; width:60px; display:flex; align-content:center; background:#222; margin:auto 30px; position:relative; overflow:hidden; } .btn svg{ margin:auto; } .btn:hover{ -webkit-animation-duration: 0.75s; animation-duration: 0.75s; -webkit-animation-name: pop; animation-name:pop; } #top { width: 50%; /* height:120px; */ font-size: 32px; font-weight: 700; color: #f9cbab; } #mid { margin-top: 50px; font-weight: 300; color: #f9cbab; } #bot { font-size: 80px; color: #f9cbab; font-weight: 500; } .intext{ display:flex; width:200px; justify-content:space-between; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0