最新下载
24小时阅读排行榜
- 1 Python deque 的高性能场景
- 2 Golang如何优化大对象传递_Golang参数传递性能分析
- 3 Go语言goroutine如何安全退出_Golang并发协程管理
- 4 css 想让多个模块在小屏幕自动换行怎么办_使用 css flex wrap 控制换行效果
- 5 kali怎么挖php漏洞_用sublist3r枚举php子域挖洞【技巧】
- 6 如何修复嵌套表格中 colspan 失效的问题
- 7 如何避免多页网站中重复执行加载动画
- 8 C++ list怎么用 C++双向链表容器常用操作详解【STL】
- 9 C++ vector怎么倒序遍历 C++ rbegin与rend反向迭代器用法【STL】
- 10 如何使用 Intersection Observer 实现文本淡入动画效果
- 11 Golang如何定义RPC接口_Golang接口定义规范
- 12 如何在网页中直接嵌入未托管的 HTML 内容(无需服务器部署)
- 13 Golang Web服务如何实现分页查询_Golang分页接口设计思路
- 14 pathlib 如何递归遍历目录但跳过隐藏文件和目录
- 15 C# NAudio音频处理方法 C#如何录制和播放音频
最新教程
-
- Node.js 教程
- 16417 2025-08-28
-
- CSS3 教程
- 1547205 2025-08-27
-
- Rust 教程
- 23515 2025-08-27
-
- Vue 教程
- 25931 2025-08-22
-
- PostgreSQL 教程
- 22435 2025-08-21
-
- Git 教程
- 9360 2025-08-21
<head lang="en">
<meta charset="UTF-8">
<title>css3 animation transform鱼游动特效</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<style>
body{
background-color: lightblue;
overflow:hidden;
}
.fishbox{
width: 200px;
height: 200px;
/*background-color: rgba(0,0,0,0.4);*/
position: absolute;
left:0;
top:0;
animation: run 20s linear infinite;
animation-direction: normal;
}
.fish{
width: 174px;
height: 126px;
position: absolute;
left:35%;
top:0;
background:url(image/fish8.png) no-repeat left top;
/*transition:all 0.8s steps(8) ;*/
animation:active1 0.8s steps(8) infinite;
这是一款基于css3 animation transform属性制作的鱼游动动画特效,用background-position属性实现两条游动追逐的鱼。
