当前位置:网站首页>记录下bilibili(b站)小火箭页面上划动画效果的实现
记录下bilibili(b站)小火箭页面上划动画效果的实现
2022-06-09 12:24:00 【未成年梦想】
突发
- 觉得这种bilibili小火箭很有意思,想看看怎么实现的,发现是精灵图来实现的
- 具体的期末考试完成后在学习~
- css中animation的steps分步动画
效果

素材


代码
- 这里暂时只实现了动画效果,滚动到顶部等我期末考试完成后补充~
<!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>bilibili小火箭</title>
<style> * {
margin: 0; padding: 0; } .rock {
position: fixed; right: 0; bottom: 0; width: 150px; height: 174px; background-image: url("img/rocket_top.png"); overflow: hidden; } .rock:hover {
background-image: url("img/rocket_frame.png"); animation: rockMove steps(4) .4s infinite; } @keyframes rockMove {
0% {
background-position-x: 0; } /* 25% { background-position-x: -150px; } 50% { background-position-x: -300px; } 75% { background-position-x: -450px; } */ 100% {
background-position-x: -600px; } } </style>
</head>
<body>
<div class="rock fly">
</div>
</body>
</html>
边栏推荐
- Differences between const, VaR and let defined variables in JS
- Warning: Accessing non-existent property ‘column‘ of module exports inside circular depen
- How to solve the worry of enterprise network with the acceleration of cloud network integration on the third anniversary of 5g licensing?
- 【C语言练习——交换两个变量的值】
- Handlebars template engine usage 2
- [Loki introduction, deployment, use]
- BI报表系统有什么特点
- C语言栈--链栈
- 云呐|行政单位固定资产管理制度,单位固定资产管理办法
- [C language practice - merging two ordered sequences]
猜你喜欢
随机推荐
云呐|智能运维管理系统平台,可视化运维系统管理
数字化转型:如何获得组织的认可?
[Prometheus summary.observe method]
记一次程序内存占用高问题排查
Comment résoudre le problème du réseau d'entreprise en accélérant la fusion du réseau Cloud pour le troisième anniversaire de la licence 5G?
[noip2015 improvement group] transportation plan
【 NativeScript 】
[redis advanced]
BI报表系统有什么特点
[unity TMP external font import problem] TMP Chinese, generate fonts into TMP_ Fontasset FAQs
JVM系列之执行引擎
Flag options of redis command:
云呐|行政单位固定资产管理制度,单位固定资产管理办法
What are the characteristics of Bi reporting system
Handlebars template engine usage 2
ES6 basic grammar knowledge
Yunna | how to manage the physical assets of the company
Database day-6
jstat 详解
. Use of net mvc5 rich text [wangeditor5]









