单个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% 115%/15em 7.5em, linear-gradient(#dc143c, #dc143c) 50% 73%/12.8em 0.2em, radial-gradient(circle at 50% 0, white 60%, rgba(255,255,255,0) 60.5%) 50% 115%/15em 7.5em, radial-gradient(circle, rgba(144,238,144,0) 20%, #90ee90 20.5%, #90ee90 50%, rgba(144,238,144,0) 50.5%) 19% 71%/2em 2em, radial-gradient(circle, rgba(255,255,0,0) 20%, #ff0 20.5%, #ff0 50%, rgba(255,255,0,0) 50.5%) 28% 72%/2em 2em, radial-gradient(circle, rgba(255,165,0,0) 20%, #ffa500 20.5%, #ffa500 50%, rgba(255,165,0,0) 50.5%) 22% 73%/2em 2em, radial-gradient(circle, rgba(255,99,71,0) 20%, #ff6347 20.5%, #ff6347 50%, rgba(255,99,71,0) 50.5%) 39% 70%/2em 2em, radial-gradient(circle, rgba(255,99,71,0) 20%, #ff6347 20.5%, #ff6347 50%, rgba(255,99,71,0) 50.5%) 25% 67%/2em 2em, radial-gradient(circle, rgba(0,255,255,0) 20%, #0ff 20.5%, #0ff 50%, rgba(0,255,255,0) 50.5%) 27% 70%/2em 2em, radial-gradient(circle, rgba(255,165,0,0) 20%, #ffa500 20.5%, #ffa500 50%, rgba(255,165,0,0) 50.5%) 35% 71%/2em 2em, radial-gradient(circle, rgba(255,255,0,0) 20%, #ff0 20.5%, #ff0 50%, rgba(255,255,0,0) 50.5%) 45% 72%/2em 2em, radial-gradient(circle, rgba(138,43,226,0) 20%, #8a2be2 20.5%, #8a2be2 50%, rgba(138,43,226,0) 50.5%) 34% 67%/2em 2em, radial-gradient(circle, rgba(144,238,144,0) 20%, #90ee90 20.5%, #90ee90 50%, rgba(144,238,144,0) 50.5%) 32% 65%/2em 2em, radial-gradient(circle, rgba(0,255,255,0) 20%, #0ff 20.5%, #0ff 50%, rgba(0,255,255,0) 50.5%) 81% 71%/2em 2em, radial-gradient(circle, rgba(255,99,71,0) 20%, #ff6347 20.5%, #ff6347 50%, rgba(255,99,71,0) 50.5%) 77% 72%/2em 2em, radial-gradient(circle, rgba(255,255,0,0) 20%, #ff0 20.5%, #ff0 50%, rgba(255,255,0,0) 50.5%) 68% 72%/2em 2em, radial-gradient(circle, rgba(144,238,144,0) 20%, #90ee90 20.5%, #90ee90 50%, rgba(144,238,144,0) 50.5%) 60% 74%/2em 2em, radial-gradient(circle, rgba(144,238,144,0) 20%, #90ee90 20.5%, #90ee90 50%, rgba(144,238,144,0) 50.5%) 73% 70%/2em 2em, radial-gradient(circle, rgba(255,165,0,0) 20%, #ffa500 20.5%, #ffa500 50%, rgba(255,165,0,0) 50..........完整代码请登录后点击上方下载按钮下载查看
网友评论0