惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
S
Secure Thoughts
T
Tailwind CSS Blog
博客园 - 三生石上(FineUI控件)
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Troy Hunt's Blog
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
博客园 - 司徒正美
NISL@THU
NISL@THU
小众软件
小众软件
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
T
Threat Research - Cisco Blogs
Hacker News: Ask HN
Hacker News: Ask HN
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园_首页
罗磊的独立博客
S
Securelist
N
News | PayPal Newsroom
大猫的无限游戏
大猫的无限游戏
T
Tenable Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog
爱范儿
爱范儿
Spread Privacy
Spread Privacy
V2EX - 技术
V2EX - 技术
J
Java Code Geeks
V
V2EX
人人都是产品经理
人人都是产品经理
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
I
Intezer
腾讯CDC
P
Privacy & Cybersecurity Law Blog
SecWiki News
SecWiki News
Google DeepMind News
Google DeepMind News
P
Palo Alto Networks Blog
Cloudbric
Cloudbric
Apple Machine Learning Research
Apple Machine Learning Research
N
News and Events Feed by Topic
Latest news
Latest news
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
博客园 - 【当耐特】
Last Week in AI
Last Week in AI
The Cloudflare Blog

博客园 - 春风得意之时

gif动态图制作 2025年起,cnpm使用淘宝镜像 el-table合并相同数据的行 el-upload file转blob 用于预览pdf.js和下载文件 area.js CSS 实现防止按钮重复点击 JS高级用法-清空数组 能找到相同 id 属性值的数据则进入判断--JS JS slice(0);克隆数组 JS map 三种不同的写法返回值 控制一行显示多少个Item Uview里面公用的css类 如何形象地解释 JavaScript 中 map、foreach、reduce 间的区别? 通过bat启动jar的命令 ES6语法解决现在笔记本屏幕设置为125% 150%导致页面缩放的问题 nginx带有Java(前后分离)和PHP环境的配置 maven打包命令 js reduce函数基本知识和应用 iframe里面获取父级页面URL参数
在线版冰墩墩
春风得意之时 · 2022-02-14 · via 博客园 - 春风得意之时

花了两个多小时画的在线版冰墩墩,需要的拿去

链接地址,直接点击 在线版冰墩墩

源码

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			* {
				margin: 0;
				padding: 0
			}

			body {
				font: 15px "Microsoft YaHei", Arial, Helvetica, sans-serif;
				background: #d4ebf1;
				color: #000;
			}

			.m_body {
				width: 362px;
				height: 410px;
				border: #393939 8px solid;
				margin: 50px auto;
				border-radius: 88% 88% 62% 68% / 82% 82% 95% 84%;
				position: absolute;
				left: 109px;
				top: -30px;
				background: #fff;
			}

			.ear1,
			.ear2 {
				background: #393939;
				width: 81px;
				height: 115px;
				border-radius: 50%;
				position: absolute;
				z-index: -1;
			}

			.ear1 {
				left: 150px;
				top: 26px;
				transform: rotate(-10deg);
			}

			.ear2 {
				left: 362px;
				top: 28px;
				transform: rotate(10deg);
			}

			.eye1,
			.eye2 {
				background: #393939;
				width: 83px;
				height: 115px;
				border-radius: 50%;
				position: absolute;
			}

			.eye1 {
				left: 185px;
				top: 122px;
				transform: rotate(45deg);
			}

			.eye2 {
				left: 329px;
				top: 122px;
				transform: rotate(-45deg);
			}

			.eye1:before,
			.eye2:before {
				content: "";
				width: 40px;
				height: 40px;
				border: #fff 5px solid;
				border-radius: 100%;
				position: absolute;
				animation-name: eyes-blink;
				animation-duration: 2s;
				animation-iteration-count: infinite;
			}

			.eye1:before {
				right: 10px;
				top: 22px;
			}

			.eye2:before {
				left: 10px;
				top: 22px;
			}

			.eye1:after,
			.eye2:after {
				content: "";
				width: 10px;
				height: 10px;
				background: #9b9b9b;
				border-radius: 100%;
				position: absolute;

			}

			.eye1:after {
				right: 27px;
				top: 31px;
			}

			.eye2:after {
				left: 41px;
				top: 44px;
			}

			.face {
				position: absolute;
				border-radius: 48% 48% 44% 49%/ 53% 54% 45% 47%;
			}

			.c_blue {
				border: #6bcdf3 5px solid;
				width: 280px;
				height: 224px;
				left: 150px;
				top: 78px;
			}

			.c_red {
				border: #af2350 5px solid;
				width: 287px;
				height: 233px;
				left: 146px;
				top: 73px;
			}

			.c_purple {
				border: #5d75b3 5px solid;
				width: 295px;
				height: 240px;
				left: 142px;
				top: 70px;
			}

			.c_yellow {
				border: #ffc346 5px solid;
				width: 305px;
				height: 248px;
				left: 137px;
				top: 65px;
			}

			.c_green {
				border: #7fcb58 5px solid;
				width: 313px;
				height: 256px;
				left: 133px;
				top: 61px;
			}

			.arm1,
			.arm2 {
				background: #333;
				position: absolute;
				z-index: -1;
			}

			.arm1 {
				width: 75px;
				height: 118px;
				left: 64px;
				top: 244px;
				transform: rotate(45deg);
				border-radius: 24% 69% 68% 76%/ 53% 95% 40% 52%;
				animation-name: beat;
				animation-duration: 3S;
				animation-iteration-count: infinite;
			}

			.arm2 {
				width: 75px;
				height: 148px;
				left: 463px;
				top: 162px;
				transform: rotate(37deg);
				border-radius: 56% 62% 98% 6%/ 40% 46% 80% 58%;
				animation-name: beat;
				animation-duration: 2s;
				animation-iteration-count: infinite;
			}

			.arm2:before {
				content: "";
				width: 16px;
				height: 24px;
				background: #bc242c;
				position: absolute;
				border-top-left-radius: 50%;
				border-top-right-radius: 50%;
				transform: rotate(45deg);
				left: 32px;
				top: 20px;
			}

			.arm2:after {
				content: "";
				width: 16px;
				height: 24px;
				background: #bc242c;
				position: absolute;
				border-top-left-radius: 50%;
				border-top-right-radius: 50%;
				transform: rotate(-45deg);
				left: 26px;
				top: 20px;
			}

			.arm_c {
				content: "";
				width: 16px;
				height: 24px;
				position: absolute;
				left: 426px;
				top: 20px;
			}

			.nose {
				background-color: #333333;
			}

			.nose:before,
			.nose:after {
				content: '';
				position: absolute;
				background-color: inherit;
			}

			.nose,
			.nose:before,
			.nose:after {
				width: 28px;
				height: 18px;
				border-radius: 42px 42px 60px 61px/ 30px 30px 50px 46px;
			}

			.nose {
				position: absolute;
				left: 284px;
				top: 187px;
			}

			.mouse {
				position: absolute;
				left: 265px;
				top: 205px;
				width: 68px;
				height: 25px;
				border-radius: 48%;
				border: #393939 7px solid;
				border-top: none;
				border-left: 0;
				border-right: 0;
				animation: move 0.8s linear infinite alternate;
			}

			.leg1,
			.leg2 {
				background: #333;
				position: absolute;
				width: 83px;
				height: 80px;
				border-radius: 0 0 30px 30px;
				z-index: -1;
			}

			.leg1 {
				left: 187px;
				top: 448px;
				-webkit-animation: leg-animation 2s infinite cubic-bezier(0.63, 0.15, 0.49, 0.93) 0s;
				animation: leg-animation 2s infinite cubic-bezier(0.63, 0.15, 0.49, 0.93) 0s;
			}

			.leg2 {
				left: 328px;
				top: 448px;
				-webkit-animation: leg-animation 2s infinite cubic-bezier(0.63, 0.15, 0.49, 0.93) 0s;
				animation: leg-animation 2s infinite cubic-bezier(0.63, 0.15, 0.49, 0.93) 0s;
			}

			.leg1:after,
			.leg2:after {
				content: "";
				width: 43px;
				height: 30px;
				position: absolute;
				background: #363636;
				border-radius: 30px;
			}

			.leg1:after {
				bottom: 0;
				right: -3px;
			}

			.leg2:after {
				bottom: 0;
				left: -3px;
			}


			@keyframes leg-animation {
				0% {
					height: 80px;
					-webkit-transform: translate3d(0, -80%, 0) rotate3d(0, 0, 1, 10deg) translate3d(0, 30%, 0);
					transform: translate3d(0, -80%, 0) rotate3d(0, 0, 1, 10deg) translate3d(0, 30%, 0);
				}

				25% {
					height: 60px;
				}

				50% {
					height: 80px;
					-webkit-transform: translate3d(0, -80%, 0) rotate3d(0, 0, 1, -15deg) translate3d(0, 30%, 0);
					transform: translate3d(0, -90%, 0) rotate3d(0, 0, 1, -15deg) translate3d(0, 30%, 0);
				}

				75% {
					height: 80px;
				}

				100% {
					height: 80px;
					-webkit-transform: translate3d(0, -80%, 0) rotate3d(0, 0, 1, 10deg) translate3d(0, 30%, 0);
					transform: translate3d(0, -80%, 0) rotate3d(0, 0, 1, 10deg) translate3d(0, 30%, 0);
				}
			}

			@-webkit-keyframes foot-animation {
				0% {
					-webkit-transform: translateX(-49%) rotateZ(-10deg);
					transform: translateX(-49%) rotateZ(-10deg);
				}

				15% {
					-webkit-transform: translateX(-49%) rotateZ(5deg);
					transform: translateX(-49%) rotateZ(5deg);
				}

				40% {
					-webkit-transform: translateX(-49%) rotateZ(0deg);
					transform: translateX(-49%) rotateZ(0deg);
				}

				50% {
					-webkit-transform: translateX(-49%) rotateZ(15deg);
					transform: translateX(-49%) rotateZ(15deg);
				}

				100% {
					-webkit-transform: translateX(-49%) rotateZ(-10deg);
					transform: translateX(-49%) rotateZ(-10deg);
				}
			}

			@keyframes foot-animation {
				0% {
					-webkit-transform: translateX(-49%) rotateZ(-10deg);
					transform: translateX(-49%) rotateZ(-10deg);
				}

				15% {
					-webkit-transform: translateX(-49%) rotateZ(5deg);
					transform: translateX(-49%) rotateZ(5deg);
				}

				40% {
					-webkit-transform: translateX(-49%) rotateZ(0deg);
					transform: translateX(-49%) rotateZ(0deg);
				}

				50% {
					-webkit-transform: translateX(-49%) rotateZ(15deg);
					transform: translateX(-49%) rotateZ(15deg);
				}

				100% {
					-webkit-transform: translateX(-49%) rotateZ(-10deg);
					transform: translateX(-49%) rotateZ(-10deg);
				}
			}

			@-webkit-keyframes foot-shadow-animation {
				0% {
					-webkit-transform: translateX(-50%) rotateZ(-8deg);
					transform: translateX(-50%) rotateZ(-8deg);
					bottom: -20px;
					width: 50px;
				}

				25% {
					bottom: -30px;
					width: 40px;
				}

				50% {
					-webkit-transform: translateX(-50%) rotateZ(13deg);
					transform: translateX(-50%) rotateZ(13deg);
					bottom: -20px;
					width: 50px;
				}

				100% {
					-webkit-transform: translateX(-50%) rotateZ(-8deg);
					transform: translateX(-50%) rotateZ(-8deg);
					bottom: -20px;
					width: 50px;
				}
			}

			@keyframes foot-shadow-animation {
				0% {
					-webkit-transform: translateX(-50%) rotateZ(-8deg);
					transform: translateX(-50%) rotateZ(-8deg);
					bottom: -20px;
					width: 50px;
				}

				25% {
					bottom: -30px;
					width: 40px;
				}

				50% {
					-webkit-transform: translateX(-50%) rotateZ(13deg);
					transform: translateX(-50%) rotateZ(13deg);
					bottom: -20px;
					width: 50px;
				}
			}

			100% {
				-webkit-transform: translateX(-50%) rotateZ(-8deg);
				transform: translateX(-50%) rotateZ(-8deg);
				bottom: -20px;
				width: 50px;
			}
			}

			@-webkit-keyframes eyes-blink {
				0% {
					height: 40px;
				}

				3% {
					height: 30px;
				}

				5% {
					height: 20px;
				}

				100% {
					height: 40px;
				}
			}

			@keyframes eyes-blink {
				0% {
					height: 40px;
				}

				3% {
					height: 35px;
				}

				5% {
					height: 35px;
				}

				100% {
					height: 35px;
				}
			}

			@-webkit-keyframes ele-movement {
				0% {
					-webkit-transform: translate3D(-50%, -54%, 0);
					transform: translate3D(-50%, -54%, 0);
				}

				50% {
					-webkit-transform: translate3D(-50%, -57%, 0);
					transform: translate3D(-50%, -57%, 0);
				}

				100% {
					-webkit-transform: translate3D(-50%, -54%, 0);
					transform: translate3D(-50%, -54%, 0);
				}
			}

			@keyframes move {
				0% {
					transform: scale(1) rotate(10deg);
				}

				0% {
					transform: scale(0.4) rotate(5deg);
				}

				100% {
					transform: scale(0.6) rotate(0deg);
				}
			}

			@keyframes backdiv {
				50% {
					background: #ffe6f2;
				}
			}

			@keyframes beat {
				0% {
					transform: scale(1) rotate(37deg);
				}

				50% {
					transform: scale(0.6) rotate(37deg);
				}
			}
		</style>
	</head>
	<body>
	<div style="    position: absolute;
        top: 0px;
        right: 0px;
        left: 0;
        bottom: 0;
        margin: auto;
        width: 550px;
        height: 888px;">
			<div>
				<div class="m_body"></div>
				<div class="ear1"></div>
				<div class="ear2"></div>
				<div class="eye1"></div>
				<div class="eye2"></div>
				<div class="face c_blue"></div>
				<div class="face c_red"></div>
				<div class="face c_purple"></div>
				<div class="face c_yellow"></div>
				<div class="face c_green"></div>
				<div class="nose"></div>
				<div class="mouse"></div>
				<div class="arm1"></div>
				<div class="arm2"></div>
				<div class="leg1"></div>
				<div class="leg2"></div>
			</div>
		</div>
		<script src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
		<script>
			$(".ear1, .ear2").on('click', function() {
				$(".ear1, .ear2").css('transform', 'none');
				setTimeout(function() {
					$(".ear1").css('transform', 'rotate(-10deg)');
					$(".ear2").css('transform', 'rotate(10deg)');
				}, 100)
			})
		</script>
	</body>
</html>