css布局实现爱心猫头鹰效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现爱心猫头鹰效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> body{background:#a1dbff}.lovely-owl{width:300px;margin:0 auto}.lovely-owl .head{width:200px;height:120px;border-radius:50%;background:palevioletred;margin:3rem auto 0;position:relative;z-index:150}.lovely-owl .head:before,.lovely-owl .head:after{content:"";display:block;width:0;height:0;border-left:35px solid transparent;border-right:35px solid transparent;border-bottom:50px solid palevioletred;position:absolute;z-index:-1}.lovely-owl .head:before{top:-10px;left:-14px;-webkit-transform:rotate(-35deg);transform:rotate(-35deg)}.lovely-owl .head:after{right:-14px;top:-10px;-webkit-transform:rotate(35deg);transform:rotate(35deg)}.lovely-owl .eye{background:#000;background:-webkit-radial-gradient(center,ellipse cover,#000 36%,#8b3626 36%,#8b3626 38%,#8b3626 50%,#000 50%,#000 60%,#fff 60%,#fff 100%);background:radial-gradient(ellipse at center,#000 36%,#8b3626 36%,#8b3626 38%,#8b3626 50%,#000 50%,#000 60%,#fff 60%,#fff 100%);width:90px;height:90px;border-radius:50%;position:absolute;top:13px}.lovely-owl .eye.eye-l{left:10px}.lovely-owl .eye.eye-r{right:10px}.lovely-owl .eye:before,.lovely-owl .eye:after{content:"";display:block;position:absolute;background:white;border-radius:50%}.lovely-owl .eye:before{width:25px;height:25px;right:20px;top:20px;z-index:200}.lovely-owl .eye:after{width:20px;height:10px;left:13px;bottom:23px}.lovely-owl .beak{width:0;height:0;border-left:25px solid transparent;border-right:25px solid transparent;border-top:50px solid darkorange;margin:0 auto;position:relative;top:60px}.lovely-owl .wings{z-index:100;background:crimson;width:180px;height:150px;margin:0 auto;position:relative;top:-40px;border-radius:50% 50% 60% 60%}.lovely-owl .wings .belly{background:palevioletred;width:130px;height:150px;border-radius:50% 50% 30% 30%;margin:0 auto;position:relative;top:-90px}.lovely-owl .wings .heart{position:relative;width:100px;height:90px;margin:0 auto;top:40px;z-index:300}.lovely-owl .wings .heart:before,.lovely-owl .wings .heart:after{position:absolute;content:"";left:50px;top:0;width:50px;height:80px;background:lightpink;border-radius:50px 50px 0 0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.lovely-owl .wings .heart:after{left:0;-webkit-transform:rotate(45deg);transform:rotate(45deg);-webkit-transform-origin:100% 100%;transform-origin:100% 100%}.lovely-owl .feet{position:absolute;bottom:-10px;height:25px;width:10p.........完整代码请登录后点击上方下载按钮下载查看
网友评论0