zoukankan      html  css  js  c++  java
  • 一起来用css画画

      hello,大白来了。。。

    <!DOCTYPE HTML>
    <html>
    <head>
    <meta charset="utf-8">
    <title>baymax</title>
    <style type="text/css">
    .wrap {
    	500px;
    	height:700px;
    	border:1px solid rgba(0,0,0,0.2);
    	position:relative;
    	margin:0 auto;
    	background:-webkit-radial-gradient(center, #555, #000);
    	background:   -moz-radial-gradient(center, #ccc, #555);
    	background:        radial-gradient(center, #ccc, #555);
    }
    .header{
    	114px;
    	height:76px;
    	background:-webkit-linear-gradient(top, #fff 30%, #d6d6d6);
    	background:   -moz-linear-gradient(top, #fff 30%, #ccc 60%, #d6d6d6 90%);
    	background:        linear-gradient(top, #fff 30%, #d6d6d6);
    	border-radius:50% 50% 45% 45%;
    	margin:0 auto;
    	margin-top:60px;
    	position:relative;
    	box-shadow:0 10px 5px rgba(0,0,0,0.2);
    	z-index:500;
    }
    .mouth{
    	position:absolute;
    	60px;
    	height:5px;
    	border-radius:50%;
    	box-shadow:0 1px 0 #333;
    	top:32px;
    	left:26px;
    }
    .lefteye{
    	position:absolute;
    	14px;
    	height:14px;
    	border-radius:50%;
    	background:#333;
    	top:30px;
    	left:23px;
    	-webkit-animation:duang 2s ease infinite;
    	   -moz-animation:duang 2s ease infinite;
    	        animation:duang 2s ease infinite;
    }
    .righteye{
    	position:absolute;
    	14px;
    	height:14px;
    	border-radius:50%;
    	background:#333;
    	top:30px;
    	left:74px;
    	-webkit-animation:duang 2s ease infinite;
    	   -moz-animation:duang 2s ease infinite;
    	        animation:duang 2s ease infinite;
    }
    @keyframes duang{
    	0%,20%, 100%{
    		-webkit-transform:scale(1,1);
    		   -moz-transform:scale(1,1);
    		        transform:scale(1,1);
    	}
    	10%{
    		-webkit-transform:scale(1,0.2);
    		   -moz-transform:scale(1,0.2);
    		        transform:scale(1,0.2);
    	}
    }
    @-webkit-keyframes duang{
    	0%,20%, 100%{
    		-webkit-transform:scale(1,1);
    		   -moz-transform:scale(1,1);
    		        transform:scale(1,1);
    	}
    	10%{
    		-webkit-transform:scale(1,0.2);
    		   -moz-transform:scale(1,0.2);
    		        transform:scale(1,0.2);
    	}
    }
    .body_top{
    	226px;
    	height:160px;
    	background:red;
    	position:absolute;
    	top:118px;
    	left:135px;
    	border-radius:105px 105px 5px 5px;
    	background:-webkit-linear-gradient(top, #f9f9f9 30%, #f1f2ed 60%, #eee 90%);
    	background:   -moz-linear-gradient(top, #f9f9f9 30%, #f1f2ed 60%, #eee 90%);
    	background:        linear-gradient(top, #f9f9f9 30%, #f1f2ed 60%, #eee 90%);
    	z-index:400;
    }
    .cpu{
    	30px;
    	height:30px;
    	background:#eee;
    	position:absolute;
    	top:60px;
    	left:155px;
    	border-radius:50%;
    	box-shadow:0px 3px 1px rgba(0,0,0,0.1),
    			   0px 3px 2px rgba(255,255,255,1) inset;
    	-webkit-transform:skew(10deg,0) rotate(10deg);
    	   -moz-transform:skew(10deg,0) rotate(10deg);
    	    -ms-transform:skew(10deg,0) rotate(10deg);
    	     -o-transform:skew(10deg,0) rotate(10deg);
    	        transform:skew(10deg,0) rotate(10deg);
    	overflow:hidden;
    }
    .cpu span{
    	position:absolute;
    	8px;
    	height:1px;
    	background:rgba(0,0,0,0.1);
    	top:15px;
    }
    .cpu span:nth-child(1){
    	left:0px;
    	top:16px;
    }
    .cpu span:nth-child(2){
    	6px;
    	left:7px;
    	top:14px;
    	transform:rotate(-45deg);
    }
    .cpu span:nth-child(3){
    	8px;
    	left:12px;
    	top:12px;
    }
    .cpu span:nth-child(4){
    	6px;
    	left:19px;
    	top:14px;
    	transform:rotate(45deg);
    }
    .cpu span:nth-child(5){
    	left:24px;
    	top:16px;
    }
    .body_left{
    	200px;
    	height:280px;
    	background:#eee;
    	position:absolute;
    	top:200px;
    	left:115px;
    	border-radius:15% 30%;
    	z-index:400;
    	transform:rotate(10deg);
    	z-index:390;
    	box-shadow:-3px 0 3px rgba(0,0,0,0.1);
    }
    .body_right{
    	200px;
    	height:280px;
    	background:#eee;
    	position:absolute;
    	top:200px;
    	left:180px;
    	border-radius:30% 15%;
    	z-index:400;
    	transform:rotate(-10deg);
    	z-index:390;
    	box-shadow:3px 0 3px rgba(0,0,0,0.1);
    }
    .body_bot{
    	286px;
    	height:233px;
    	background:red;
    	position:absolute;
    	top:290px;
    	left:103px;
    	border-radius:50%;
    	background:-webkit-linear-gradient(top, #eee 30%, #d2d2d2 60%, #e9e9e9 90%);
    	background:-moz-linear-gradient(top, #eee 30%, #d2d2d2 60%, #e9e9e9 90%);
    	background:linear-gradient(top, #eee 30%, #d2d2d2 60%, #e9e9e9 90%);
    	box-shadow:0 7px 5px rgba(0,0,0,0.2);
    	z-index:400;
    }
    .hand_left1{
    	position:absolute;
    	260px;
    	height:150px;
    	background:#eee;
    	transform:rotate(-48deg);
    	border-radius:50%;
    	top:170px;
    	left:36px;
    	z-index:300;
    }
    .hand_left2{
    	position:absolute;
    	100px;
    	height:220px;
    	background:#eee;
    	transform:rotate(12deg);
    	border-radius:50%;
    	top:215px;
    	left:48px;
    	z-index:300;
    }
    .hand_left3{
    	position:absolute;
    	80px;
    	height:210px;
    	background:-webkit-linear-gradient(top, #eee 20%, #ccc 50%);
    	background:-moz-linear-gradient(top, #eee 20%, #ccc 50%);
    	background:linear-gradient(top, #eee 20%, #ccc 50%);
    	transform:rotate(2deg);
    	border-radius:50%;
    	top:270px;
    	left:39px;
    	z-index:300;
    }
    .hand_left4{
    	position:absolute;
    	30px;
    	height:80px;
    	background:#ccc;
    	background:-webkit-linear-gradient(top, #ccc 50%, #ddd 70%);
    	background:-moz-linear-gradient(top, #ccc 50%, #ddd 70%);
    	background:linear-gradient(top, #ccc 50%, #ddd 70%);
    	transform:rotate(-30deg);
    	border-radius:50%;
    	top:430px;
    	left:60px;
    	z-index:300;
    }
    .hand_left5{
    	position:absolute;
    	25px;
    	height:50px;
    	background:#ccc;
    	background:-webkit-linear-gradient(top, #ccc 50%, #ddd 70%);
    	background:-moz-linear-gradient(top, #ccc 50%, #ddd 70%);
    	background:linear-gradient(top, #ccc 50%, #ddd 70%);
    	transform:rotate(-20deg);
    	border-radius:50%;
    	top:440px;
    	left:90px;
    	z-index:300;
    }
    .hand_right1{
    	position:absolute;
    	260px;
    	height:150px;
    	background:#eee;
    	transform:rotate(48deg);
    	border-radius:50%;
    	top:170px;
    	left:196px;
    	z-index:300;
    }
    .hand_right2{
    	position:absolute;
    	100px;
    	height:200px;
    	background:#eee;
    	transform:rotate(-10deg);
    	border-radius:50%;
    	top:222px;
    	left:338px;
    	z-index:300;
    }
    .hand_right3{
    	position:absolute;
    	80px;
    	height:210px;
    	background:-webkit-linear-gradient(top, #eee 20%, #ccc 50%);
    	background:   -moz-linear-gradient(top, #eee 20%, #ccc 50%);
    	background:         linear-gradient(top, #eee 20%, #ccc 50%);
    	transform:rotate(-2deg);
    	border-radius:50%;
    	top:270px;
    	left:368px;
    	z-index:300;
    }
    .hand_right4{
    	position:absolute;
    	30px;
    	height:80px;
    	background:#ccc;
    	background:-webkit-linear-gradient(top, #ccc 50%, #ddd 70%);
    	background:   -moz-linear-gradient(top, #ccc 50%, #ddd 70%);
    	background:        linear-gradient(top, #ccc 50%, #ddd 70%);
    	transform:rotate(30deg);
    	border-radius:50%;
    	top:430px;
    	left:400px;
    	z-index:300;
    }
    .hand_right5{
    	position:absolute;
    	25px;
    	height:50px;
    	background:#ccc;
    	background:-webkit-linear-gradient(top, #ccc 50%, #ddd 70%);
    	background:   -moz-linear-gradient(top, #ccc 50%, #ddd 70%);
    	background:        linear-gradient(top, #ccc 50%, #ddd 70%);
    	transform:rotate(20deg);
    	border-radius:50%;
    	top:440px;
    	left:375px;
    	z-index:300;
    }
    .foot_left{
    	position:absolute;
    	118px;
    	height:180px;
    	background:#eee;
    	top:450px;
    	left:132px;
    	border-radius:10% 20% 18% 58%;
    	box-shadow:-1px 0px 8px rgba(0,0,0,0.2) inset;
    	background:-webkit-linear-gradient(left, #cdcdcd, #e3e3e3, #cdcdcd);
    	background:       -moz-linear-gradient(left, #cdcdcd, #e3e3e3, #cdcdcd);
    	background:            linear-gradient(left, #cdcdcd, #e3e3e3, #cdcdcd);
    	z-index:100;
    }
    .foot_right{
    	position:absolute;
    	118px;
    	height:180px;
    	background:#eee;
    	top:450px;
    	left:250px;
    	border-radius:20% 10% 58% 18%;
    	box-shadow:-1px 0px 8px rgba(0,0,0,0.2) inset;
    	background:-webkit-linear-gradient(left, #cdcdcd, #e3e3e3, #cdcdcd);
    	background:   -moz-linear-gradient(left, #cdcdcd, #e3e3e3, #cdcdcd);
    	background:        linear-gradient(left, #cdcdcd, #e3e3e3, #cdcdcd);
    	z-index:100;
    }
    .shadow{
    	position:absolute;
    	100px;
    	height:80px;
    	bottom:100px;
    	left:180px;
    	z-index:99;
    }
    .shadow:before{
    	content:"";
    	position:absolute;
    	150px;
    	height:80px;
    	bottom:0px;
    	left:20px;
    	box-shadow:-100px 80px 30px rgba(0,0,0,0.2);
    	z-index:99;
    }
    .shadow:after{
    	content:"";
    	position:absolute;
    	150px;
    	height:80px;
    	bottom:0px;
    	left:10px;
    	box-shadow:50px 80px 30px rgba(0,0,0,0.2);
    	z-index:99;
    }
    .bg{
    	position:absolute;
    	100%;
    	height:100%;
    	background:#597370;
    	z-index:1;
    	top:0;
    	overflow:hidden;
    }
    .bg1{
    	340px;
    	height:40px;
    	border:4px solid #394946;
    	border-top:none;
    	margin:0 auto;
    	box-shadow:0 -1px 5px rgba(0,0,0,1);
    }
    .bg2{
    	340px;
    	height:75px;
    	background:#394946;
    	border:4px solid #394946;
    	margin:0 auto;
    	box-shadow:0 0px 5px rgba(0,0,0,1),
    			   0 0 10px rgba(0,0,0,0.3) inset;
    }
    .bg3{
    	340px;
    	height:280px;
    	background:#394946;
    	border:4px solid #394946;
    	margin:0 auto;
    	position:relative;
    	box-shadow:0 0px 5px rgba(0,0,0,1),
    			   0 0 10px rgba(0,0,0,0.3) inset;
    }
    .bg3:after{
    	content:"";
    	96%;
    	position:absolute;
    	height:98%;
    	background:#2f3f4e;
    	border:4px solid #394946;
    	margin:1%;
    }
    .bg4{
    	100%;
    	height:80px;
    	background:#2c3733;
    	border:4px solid #394946;
    	border-left:0;
    	border-right:0;
    	margin:0 auto;
    	position:relative;
    	box-shadow:0 0px 5px rgba(0,0,0,1),
    			   0 0 10px rgba(0,0,0,0.3) inset;
    }
    .bg5{
    	100%;
    	height:20px;
    	background:#2c3733;
    	margin:0 auto;
    	position:relative;
    	box-shadow:0 0px 5px rgba(0,0,0,1),
    			   0 0 10px rgba(0,0,0,0.3) inset;
    }
    .bg-line1{
    	3px;
    	height:230px;
    	background:rgba(0,0,0,0.3);
    	-webkit-transform:rotate(30deg);
    	   -moz-transform:rotate(30deg);
    	    -ms-transform:rotate(30deg);
    	     -o-transform:rotate(30deg);
    	        transform:rotate(30deg);
    			position:absolute;
    			left:50px;
    			bottom:-36px;
    }
    .bg-line2{
    	3px;
    	height:230px;
    	background:rgba(0,0,0,0.3);
    	-webkit-transform:rotate(-30deg);
    	   -moz-transform:rotate(-30deg);
    	    -ms-transform:rotate(-30deg);
    	     -o-transform:rotate(-30deg);
    	        transform:rotate(-30deg);
    			position:absolute;
    			right:50px;
    			bottom:-36px;
    }
    .copy p{
    	text-align:center;
    	padding:30px 0;
    	color:rgba(0,0,0,0.2);
    	font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    	text-transform:capitalize;
    	margin:0 auto;
    }
    </style>
    </head>
    
    <body>
    <div class="wrap">
    	<!--头部开始-->
    	<div class="header">
    		<div class="mouth"></div>
    		<div class="lefteye"></div>
    		<div class="righteye"></div>
    	</div>
    	<!--身体开始-->
    	<div class="body">
    		<!--上半身拼凑开始-->
    		<div class="body_top">
    			<div class="cpu">
    				<span></span>
    				<span></span>
    				<span></span>
    				<span></span>
    				<span></span>
    			</div>
    		</div>
    		<div>
    			<div class="body_left"></div>
    			<div class="body_right"></div>
    		</div>
    		<div class="body_bot"></div>
    		<!--手开始-->
    		<div class="hand">
    			<!--左手开始-->
    			<div>
    				<div class="hand_left1"></div>
    				<div class="hand_left2"></div>
    				<div class="hand_left3"></div>
    				<div class="hand_left4"></div>
    				<div class="hand_left5"></div>
    			</div>
    			<!--右手开始-->
    			<div>
    				<div class="hand_right1"></div>
    				<div class="hand_right2"></div>
    				<div class="hand_right3"></div>
    				<div class="hand_right4"></div>
    				<div class="hand_right5"></div>
    			</div>
    		</div>
    		<!--腿开始-->
    		<div>
    			<div class="foot_left"></div>
    			<div class="foot_right"></div>
    		</div>
    		<!--身体投影-->
    		<div class="shadow"></div>
    	</div>
    	<!--场景开始-->
    	<div class="bg">
    		<div class="bg1"></div>
    		<div class="bg2"></div>
    		<div class="bg3"></div>
    		<div class="bg4"></div>
    		<div class="bg5"></div>
    		<div class="bg-line1"></div>
    		<div class="bg-line2"></div>
    	</div>
    </div>
    
    </body>
    </html>
    

      

  • 相关阅读:
    “零接触”新需求,如何快速实现体温检测数字化管控方案?
    AR公共安全及应急指挥中的应用 | TVP思享
    当模板方法遇到了委托函数,你的代码又可以精简了
    为什么要用内插字符串代替string.format
    如何让多个不同类型的后端网站用一个nginx进行反向代理实际场景分析
    8天入门docker系列 —— 第八天 让程序跑在swarm集群上
    8天入门docker系列 —— 第七天 让你的container实现跨主机访问
    8天入门docker系列 —— 第六天 搭建自己的私有镜像仓库Registry
    8天入门docker系列 —— 第五天 使用aspnetcore小案例熟悉容器互联和docker-compose一键部署
    8天入门docker系列 —— 第四天 使用aspnetcore小案例熟悉端口映射和挂载目录
  • 原文地址:https://www.cnblogs.com/dunken/p/4481215.html
Copyright © 2011-2022 走看看