css泳池倒影水纹波动动画效果代码
代码语言:html
所属分类:动画
代码描述:css泳池倒影水纹波动动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
html {
font-size: 12px;
}
body {
font-size: 12px;
height: 100%;
display: grid;
font-family: "Cooper";
height: 100vh;
margin: 0;
background: #efefef;
}
body svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
height: clamp(600px, 900px, 100vh);
width: auto;
box-shadow: 0 40px 60px -40px rgba(0, 0, 0, 0.25);
}
body svg foreignObject {
position: absolute;
width: 100%;
height: 100%;
background: radial-gradient(circle at bottom, rgba(82, 125, 18, 0.5) 50%, rgba(35, 54, 8, 0.75));
}
body svg foreignObject:before {
content: "";
position: absolute;
width: 105%;
height: 105%;
z-index: 10;
left: -2.5%;
top: -2.5%;
box-shadow: inset 0 0 0 50px #fff;
box-sizing: border-box;
}
body svg foreignOb.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0