SVG+CSS模仿iphone液态玻璃ui效果代码
代码语言:html
所属分类:布局界面
代码描述:SVG+CSS模仿iphone液态玻璃ui效果代码
代码标签: SVG CSS 模仿 iphone 液态 玻璃 ui
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
/* LIQUID GLASS STYLES */
.liquidGlass-wrapper {
position: relative;
display: flex;
font-weight: 600;
overflow: hidden;
color: black;
cursor: pointer;
box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}
.liquidGlass-effect {
position: absolute;
z-index: 0;
inset: 0;
backdrop-filter: blur(3px);
filter: url(#glass-distortion);
overflow: hidden;
isolation: isolate;
}
.liquidGlass-tint {
z-index: 1;
position: absolute;
inset: 0;
background: rgba(255, 255, 255, 0.25);
}
.liquidGlass-shine {
position: absolute;
inset: 0;
z-index: 2;
overflow: hidden;
box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}
.liquidGlass-text {
z-index: 3;
font-size: 2rem;
color: black;
}
/* OTHER STYLES */
body {
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: url("//repo.bfw.wiki/bfwrepo/image/5fd8b25840979.png")
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0