div+css实现蓝天白云大风车鸟儿飞翔动画效果代码
代码语言:html
所属分类:动画
代码描述:div+css实现蓝天白云大风车鸟儿飞翔动画效果代码
代码标签: div css 蓝天 白云 大风车 鸟儿 飞翔 动画
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> * { margin: 0; padding: 0; } *, *:after, *:before { box-sizing: border-box; } .wrapper { padding: 20px; background-color: #fff; min-height: 100vh; } .card { width: 700px; height: 525px; position: relative; margin: 0px auto; border-radius: 5px; overflow: hidden; box-shadow: 0 20px 20px -5px rgba(0, 0, 0, 0.3); } picture { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; opacity: 1; overflow: hidden; } .background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(#354d8b, #daa85f); } .background:after { content: ""; position: absolute; display: block; top: 10%; height: 90%; width: 110%; left: -5%; transform: rotate(2deg); background: linear-gradient(transparent 1%, rgba(235, 178, 109, 0.1) 10%, rgba(235, 178, 109, 0.4) 100%); } .background:before { content: ""; position: absolute; display: block; top: 40%; height: 60%; width: 110%; left: -5%; transform: rotate(-2deg); background: linear-gradient(transparent 1%, rgba(235, 178, 109, 0.1) 10%, rgba(235, 178, 109, 0.4) 100%); } .mill { position: absolute; z-index: 2; bottom: 14%; left: 44%; width: 24%; height: 50%; } .mill-main { position: absolute; bottom: 0; width: 100%; left: 0; height: 83%; z-index: 2; } .mill-main-base { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; -webkit-clip-path: polygon(19% 0%, 85% 0%, 99% 100%, 0% 100%); clip-path: polygon(19% 0%, 85% 0%, 99% 100%, 0% 100%); } .mill-main-base:after { content: ""; display: block; position: absolute; top: 10%; left: 0; width: 100%; height: 100%; background: linear-gradient(-85deg, #fcb281, #f3c9b0, #f3c9b0, #f6ba9e); -webkit-clip-path: polygon(14.8% 8%, 85% 8%, 99% 100%, 0% 100%); clip-path: polygon(14.8% 8%, 85% 8%, 99% 100%, 0% 100%); } .mill-main-base-shadow { background-color: #8f8190; position: absolute; top: 10%; left: 0; width: 100%; height: 100%; z-index: 3; -webkit-clip-path: polygon(71.7% 8%, 82% 6%, 86% 8%, 100% 100%, 83% 100%, 78% 15%, 71.7% 13%); clip-path: polygon(71.7% 8%, 82% 6%, 86% 8%, 100% 100%, 83% 100%, 78% 15%, 71.7% 13%); } .mill-main-base-shadow:after { content: ""; display: block; position: absolute; bottom: 0%; right: 0%; width: 5%; height: 30%; background-color: #40465c; border-radius: 50% 0 0 0; transform: rotate(-8deg); } .mill-main-base-shadow:before { content: ""; display: block; position: absolute; right: 3%; bottom: 32%; width: 3%; height: 3%; background-color: #04071a; border-radius: 50%; transform: rotate(-9deg) rotateY(50deg); } .mill-main-base-circle { content: ""; display: block; position: absolute; top: 12%; left: 15%; width: 71%; border-radius: 50%; height: 13%; background: linear-gradient(-85deg, #fcb281, #f3c9b0, #f3c9b0, #f6ba9e); transform: rotate(1deg); overflow: hidden; } .mill-main-base-circle:before { content: ""; display: block; position: absolute; top: 0; right: 0; width: 20%; height: 100%; background-color: #8f8190; } .mill-main-window { position: absolute; top: 0; left: 0; background-color: black; z-index: 2; border-radius: 10px 10px 0 0; overflow: hidden; } .mill-main-window:after { content: ""; display: block; position: absolute; top: 30%; left: 0; height: 40%; width: 100%; border-top: 1px solid #323a53; border-bottom: 1px solid #323a53; } .mill-main-window:before { content: ""; display: block; position: absolute; top: 0; left: 25%; height: 100%; width: 50%; border-left: 1px solid #323a53; border-right: 1px solid #323a53; } .mill-main-window__1 { top: 17%; left: 21%; width: 5%; height: 9%; transform: skewY(-14deg) rotate(5deg); background: linear-gradient(140deg, #935b38, #30150e); } .mill-main-window__2 { top: 37%; left: 22%; width: 7%; height: 10%; transform: skewY(-10deg) rotate(5deg); background: linear-gradient(140deg, #935b38, #30150e); } .mill-main-window__3 { top: 70%; left: 7%; width: 3%; height: 10%; transform: skewY(-10deg) rotate(7deg); background: linear-gradient(140deg, #935b38, #30150e); } .mill-main-window__4 { top: 68%; left: 46%; width: 9%; height: 11%; background: linear-gradient(140deg, #935b38, #30150e 40%); } .mill-main-window__5 { top: 18%; left: 73%; width: 5%; height: 9%; transform: skewY(10deg) rotate(-2deg); background: #030303; } .mill-main-window__5:before, .mill-main-window__5:after { display: none; } .mill-main-window__6 { top: 38%; left: 77%; width: 5%; height: 10%; transform: skewY(10deg) rotate(-2deg); background: #030303; } .mill-main-window__6:before, .mill-main-window__6:after { display: none; } .mill-head { position: absolute; top: 0; left: 0; width: 100%; height: 31%; z-index: 1; } .mill-head-bottom { position: absolute; z-index: 2; position: absolute; height: 40%; width: 67%; left: 17%; bottom: 0; } .mill-head-bottom:before { content: ""; display: block; position: absolute; bottom: 0; left: 0%; width: 100%; height: 60%; z-index: 1; background: linear-gradient(to right, #8b1919, #07080c); } .mill-head-bottom:after { content: ""; display: block; position: absolute; top: 0; left: 0%; z-index: 2; border-radius: 50%; width: 100%; height: 80%; background: linear-gradient(to right, #8b1919, #07080c); } .mill-head-bottom-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; background: linear-gradient(to right, transparent, transparent 90%, #010506 30%, #010506); background-size: 3%; } .mill-head-bottom-lines:after { position: absolute; content: ""; display: block; height: 130%; width: 3%; left: 15%; top: -55%; transform: rotate(3deg); background: linear-gradient(-260deg, #8e231d, #00070c); } .mill-head-bottom-lines:before { position: absolute; content: ""; display: block; height: 130%; width: 3%; left: 70%; top: -64%; transform: rotate(-3deg); background: #0e0e1a; } .mill-head-top { z-index: 1; position: absolute; z-index: 1; position: absolute; height: 85%; width: 100%; left: 0%; top: 0; } .mill-head-top-bottom { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; } .mill-head-top-bottom:after { content: ""; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, #230703, #020400); -webkit-clip-path: polygon(17% 45%, 70% 40%, 100% 70%, 98% 85%, 83% 100%, 20% 95%, 4% 80%); clip-path: polygon(17% 45%, 70% 40%, 100% 70%, 98% 85%, 83% 100%, 20% 95%, 4% 80%); } .mill-head-top-top { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; } .mill-head-top-top:after { content: ""; display: block; position: absolute; top: 0; left: 0; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0