单个div+css实现倒牛奶到碗中效果代码
代码语言:html
所属分类:布局界面
代码描述:单个div+css实现倒牛奶到碗中效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
min-height: 400px;
height: 100vh;
position: relative;
background-color: #222;
}
div {
position: absolute;
left: 50%;
top: 50%;
}
div::before,
div::after {
display: block;
content: '';
position: absolute;
}
@media (max-width: 400px) {
div:not(.no-scale) {
transform: scale(0.8);
}
}
#splash {
width: 300px;
height: 300px;
margin-left: -160px;
margin-top: -150px;
background: linear-gradient(#4169e1, #4169e1) 50% 100.5%/100% 0.2em, radial-gradient(circle at 50% 0, rgba(0,0,0,0) 55%, rgba(0,0,0,0.1) 55.5%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 60.5%) 50.........完整代码请登录后点击上方下载按钮下载查看
网友评论0