用html画一个睡觉的熊动画

在这里插入图片描述

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><title>睡觉的熊动画</title><link rel="stylesheet" href="./style.css">
</head><body><div id="container"><div class="head"></div><div class="muzzle"></div><div class="ears"></div><div class="body"></div><div class="paws-front"></div><div class="paws-back"></div><div class="details"></div><div class="tail"></div><!-- zzz --><div class="sleep"><span class="s1">z</span><span class="s2">z</span><span class="s3">z</span><span class="s4">z</span><span class="s5">z</span></div></div>
</body></html>

body {background-color: #EBD8D0;text-align: center;height: 100%;margin: 0px;
}#container {margin: 120px auto;position: relative;height: 230px;width: 754px;
}#container div {position: absolute;
}#container div::before,
#container div::after {content: '';position: absolute;display: block;
}/* 头部 */.head {z-index: 10;width: 152px;height: 70px;bottom: 32px;left: 143px;background: #A78A7F;border-radius: 100%;
}.head:before {width: 122px;height: 122px;left: 54px;bottom: 0px;z-index: 199;background: #594a41;border-radius: 90% 50% 90% 90%;transform: rotateZ(226deg);
}.muzzle {z-index: 5;width: 152px;height: 70px;bottom: 30px;left: 143px;background: #A78A7F;border-radius: 100%;
}/* 耳朵 */.ears {width: 42px;height: 42px;background: #594a41;border-radius: 100%;left: 220px;top: 60px;box-shadow: 34px -8px 0 0 #594a41
}/* 身体 */.body {width: 300px;height: 150px;background: #594a41;left: 228px;border-radius: 50%;bottom: 29px;
}/* 前腿 */.paws-front {z-index: 15;background: #A78A7F;width: 100px;height: 50px;bottom: 14px;left: 272px;border-radius: 80% 22% 55% 50% / 55% 22% 80% 50%;transform: rotateZ(12deg);
}/* 后腿 */.paws-back {width: 100px;height: 52px;border-top-left-radius: 100%;background: #A78A7F;left: 420px;bottom: 29px;
}.paws-back:after {width: 36px;height: 52px;border-radius: 100%;left: 80px;background: #A78A7F;
}/* 鼻子、腮红 */.details {width: 25px;height: 25px;background: #221E22;border-radius: 100%;z-index: 20;box-shadow: 100px 0 0 #AD5D4E;bottom: 66px;left: 135px;
}/* 眼睛 */.details:after {width: 22px;height: 22px;border-bottom: 5px solid #221E22;border-top: 5px solid transparent;border-left: 5px solid transparent;border-right: 5px solid transparent;border-radius: 50%;left: 68px;top: -30px;
}/* 尾巴 */.tail {width: 50px;height: 50px;background: #594a41;border-radius: 100%;left: 490px;top: 60px;
}/* 睡觉 zzz */.sleep {height: 90px;width: 80px;position: absolute;left: 80px;top: 30px;font-size: 55px;
}.sleep span {width: 15px;height: 15px;display: block;font-family: arial;font-weight: bold;text-align: center;line-height: 20px;background: #221E22;animation: zz 3s linear infinite;
}.sleep .s1 {margin-left: 180px;margin-top: -40px;
}.sleep .s2 {margin-left: 120px;margin-top: -5px;
}.sleep .s3 {margin-left: 60px;margin-top: 5px;
}.sleep .s4 {margin-left: 0px;margin-top: 12px;
}.sleep .s5 {margin-left: -5px;margin-top: 52px;
}@keyframes zz {0% {opacity: 0;transform: scale3d(.2, .2, .2) rotate(-20deg);}50% {opacity: 1;}80% {transform: translateY(-30px) translateX(20px) rotate(10deg);opacity: 0;}100% {opacity: 0;}
}

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/626707.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

reportlab 生成pdf文件 (python)

1 安装 pip install reportlab2 应用场景 通过网页动态生成PDF文档大量的报告和数据发布用XML一步生成PDF 官网案例 3 PLATYPUS Platypus是“Page Layout and Typography Using Scripts”&#xff0c;是使用脚本的页面布局和印刷术的缩写&#xff0c;这是一个高层次页面布局…

Python-Qt上位机设计

1.下载designer软件 2.自己设计一个界面 3.在指定部件加入点击响应命令函数名 鼠标点击目标部件拖出信号线 4.保存生成.ui文件&#xff0c;用pycharm打开 5.生成.py文件 6.新建一个功能文件 上图中class MainWindow的具体代码不予展示。 7.生成exe文件 将写好的py文件保存&a…

CentOS 7 下安装RabbitMQ教程(亲测有效)

一、做准备&#xff08;VMWare 虚拟机上的 CentOS 7 镜像 上安装的&#xff09; &#xff08;1&#xff09;准备RabbitMQ的安装包&#xff08;rabbitmq-server-3.9.0-1.el7.noarch.rpm&#xff09;下载地址mq &#xff08;2&#xff09;还得准备erlang语言&#xff08;erlang…

AcWing 796. 子矩阵的和——算法基础课题解

AcWing 796. 子矩阵的和 题目描述 输入一个 n 行 m 列的整数矩阵&#xff0c;再输入 q 个询问&#xff0c;每个询问包含四个整数 x1,y1,x2,y2&#xff0c;表示一个子矩阵的左上角坐标和右下角坐标。 对于每个询问输出子矩阵中所有数的和。 输入格式 第一行包含三个整数 n&…

MT2046 巨大的错误

1.暴力代码 2/10 #include <bits/stdc.h> using namespace std; int n; int a[25]; int b[25]; int ans 0; bool err() {for (int i 1; i < n; i){if (a[i] b[i]){return false;}}return true; } int main() {cin >> n;for (int i 1; i < n; i){a[i] i…

L1-086 斯德哥尔摩火车上的题

上图是新浪微博上的一则趣闻&#xff0c;是瑞典斯德哥尔摩火车上的一道题&#xff0c;看上去是段伪代码&#xff1a; s a 1112031584 for (i 1; i < length(a); i) {if (a[i] % 2 a[i-1] % 2) {s max(a[i], a[i-1])} } goto_url(www.multisoft.se/ s)其中字符串的 …

【智能排班系统】Quartz结合Cron-Utils自定义时间发送上班、休息提醒

文章目录 Quartz&#xff1a;强大的Java作业调度引擎Quartz概述核心概念与架构配置文件主配置&#xff08;配置主要调度器设置、事务&#xff09;线程池配置&#xff08;调整作业执行资源&#xff09;SimpleThreadPool特定属性自定义线程池 RAMJobStore配置&#xff08;在内存中…

读《AI营销画布》步骤三 扩场景(八)

前言 扩场景写起来有点吃力和干巴&#xff0c;为了文章的连续性&#xff0c;还是写点。 扩场景实际上是需要考虑在第一步和第二步之后是否增加业务流程、节点和场景。在确定增加场景之前&#xff0c;我们需要确保的是第一二步的成功&#xff0c;而且模式是可以复制的。所以&…

Zabbix监控内容

目录 一、自定义监控内容 1、在客户端创建自定义key 1.1明确需要执行的linux命令 1.2创建zabbix监控项配置文件&#xff0c;用于自定义Key 1.3服务端验证测试 2、在Web界面创建自定义监控模板 2.1创建模板 2.2创建应用集&#xff08;用于管理监控项&#xff09; 2.3创建…

废液收集系统物联网远程监控解决方案

废液收集系统物联网远程监控解决方案 在面对日益严峻的环保压力和严格的法律法规要求下&#xff0c;构建一套高效、智能的废液收集系统物联网远程监控解决方案显得尤为重要。该方案旨在通过深度融合物联网技术、云计算、大数据分析等先进手段&#xff0c;实现对废液收集系统的…

每日一题:缺失的第一个正数

给你一个未排序的整数数组 nums &#xff0c;请你找出其中没有出现的最小的正整数。 请你实现时间复杂度为 O(n) 并且只使用常数级别额外空间的解决方案。 示例 1&#xff1a; 输入&#xff1a;nums [1,2,0] 输出&#xff1a;3 解释&#xff1a;范围 [1,2] 中的数字都在数组…

【youcans电力电子仿真 01】DC/DC变换电路

1. DC/DC变换电路 DC/DC变换电路是开关电源电路的核心&#xff0c;也是光伏逆变器的核心。本章介绍DC/DC变换电路的基本类型和电路原理&#xff0c;运用Matlab/Simulink对常用的非隔离型、隔离型变换电路进行建模和仿真分析。 1.1 DC/DC变换电路的类型 DC/DC变换电路也称为直…