当前位置:网站首页>[Case] Animation of a bear running
[Case] Animation of a bear running
2022-08-05 16:17:00 【daze girl】
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style> * {
margin: 0; padding: 0; } body {
background-color: darkblue; } .mountain {
position: relative; height: 336px; background-image: url(./mountain.png); animation: mountain 10s linear infinite; } .bear {
position: absolute; top: 200px; left: 0; width: 200px; height: 100px; background: url(./bear.png) no-repeat; animation: bear 1s steps(8) infinite, move 2s linear forwards; } @keyframes bear {
0% {
} 100% {
background-position: -1600px 0; } } @keyframes move {
0% {
} 100% {
left: 50%; transform: translate(-50%, 0); } } @keyframes mountain {
0% {
} 100% {
background-position: -3840px 0; } } </style>
</head>
<body>
<div class="mountain">
<div class="bear"></div>
</div>
</body>
</html>

素材:

边栏推荐
- playwright recording script
- 数据库篇——hash索引
- 注册不足一周 英国议会因数据安全争议停用TikTok
- 基于eureka-server的服务注册与消费案例
- 华为设备Smart Link和Monitor Link配置命令
- 如何使用 JDBC PreparedStatement将值列表动态添加到 IN 子句
- 解决FileZilla 报错“无法和 SFTP 服务器建立 FTP 连接,请选择合适的协议”
- 【R语言】对年龄数据进行清洗
- Instant messaging development long connection gateway technology: WebSocket real-time push gateway technology
- 学习笔记238— 如何在word文档中快速输入各类根号【根号下没输入数字,也不会出现虚线框】
猜你喜欢

一个程序员的水平能差到什么程度?

Statistical genetics: the fourth chapter, GWAS analysis

Further dissection and application of disappearing heritability

【工具】简道云零代码开发平台

【OneNote】书写有层次结构的内容+快速折叠/展开各层次内容

【翻译】EF Core 3.1.x, 5.x & 6.x Second Level Cache Interceptor

Vetur can‘t find `tsconfig.json` or `jsconfig.json` inXXX

突不了围,阿里海外怎么办?

网络通信中的基本概念

即时通讯开发长连接网关技术:WebSocket实时推送网关技术
随机推荐
二叉树高度
High Numbers_Proof_Intermediate Value Theorem
High Numbers_Prove_The Clamping Criterion of the Existence of Limits
JPA作持久层操作
机器视觉应用方向及学习思路总结
微信小程序 实现天气预报接入
leetcode:285. 二叉搜索树中的中序后继节点
远程push记录:
EasyCVR调用停止实时录像接口,未返回录像地址该如何解决?
这个「令人上头」的赛道,俞敏洪、高瓴都入了,红杉和腾讯会来吗?
【云原生 · Kubernetes】部署博客系统
[等价转换]UVa11054 - Wine trading in Gergovia
【构造方法概述 Objective-C中】
如果我在东莞,到哪里开户比较好?在线开户安全么?
WeChat applet realizes weather forecast access
基于eureka-server的服务注册与消费案例
Good code in the eyes of a compiler engineer: Loop Interchange
华为设备DLDP配置命令
华为设备Smart Link和Monitor Link配置命令
高数_证明_介值定理