svg+css实现悬浮立体倾斜卡片效果代码
代码语言:html
所属分类:悬停
代码描述:svg+css实现悬浮立体倾斜卡片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" /> <title>BFW NEW PAGE</title> <style> body{ margin:100px; } .parent { width: 290px; height: 300px; perspective: 1000px; } .card { height: 100%; border-radius: 50px; background: linear-gradient(135deg, rgb(0, 255, 214) 0%, rgb(8, 226, 96) 100%); transition: all 0.5s ease-in-out; transform-style: preserve-3d; box-shadow: rgba(5, 71, 17, 0) 40px 50px 25px -40px, rgba(5, 71, 17, 0.2) 0px 25px 25px -5px; } .glass { transform-style: preserve-3d; position: absolute; inset: 8px; border-radius: 55px; border-top-right-radius: 100%; background: linear-gradient(0deg, rgba(255, 255, 255, 0.349) 0%, rgba(255, 255, 255, 0.815) 100%); /* -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); */ transform: translate3d(0px, 0px, 25px); border-left: 1px solid white; border-bottom: 1px solid white; transition: all 0.5s ease-in-out; } .content { padding: 100px 60px 0px 30px; transform: translate3d(0, 0, 26px); } .content .title { display: block; color: #00894d; font-weight: 900; font-size: 20px; } .content .text { display: block; color: rgba(0, 137, 78, 0.7647058824); font-size: 15px; margin-top: 20px; } .bottom { padding: 10px 12px; transform-style: preserve-3d; position: absolute; bottom: 20px; left: 20px; right: 20px; display: flex; align-items: center; justify-content: space-between; transform: translate3d(0, 0, 26px); } .bottom .view-more { display: flex; align-items: center; width: 40%; justify-content: flex-end; transition: all 0.2s ease-in-out; } .bottom .view-more:hover { transform: translate3d(0, 0, 10px); } .bottom .view-more .view-more-button { background: n.........完整代码请登录后点击上方下载按钮下载查看
网友评论0