Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Small and medium teams
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
yuwolf21
wolf21.github.io
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
wolf21.github.io
/
animation.css
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
35 lines (35 loc) · 1.86 KB
master
Breadcrumbs
wolf21.github.io
/
animation.css
Copy path
Top
File metadata and controls
Code
Blame
35 lines (35 loc) · 1.86 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.rect{
width:100px;
height:100px;
background-color:red;
position:fixed;/*相对于网页定位*/
animation-name:mymove;
/*animation-name属性指定动画名称。值为:keyframename指定要绑定到选择器的关键帧的名称;none指定有没有动画(可用于覆盖从级联的动画)*/
animation-duration:3s;
/*animation-duration属性定义动画完成一个周期需要多少秒或毫秒.值:time 指定动画播放完成花费的时间.默认值为0,意味着没有动画效果.*/
animation-timing-function:linear;
/*animation-timing-function指定动画按照何种速度曲线完成一个周期. 值见:transition特效过渡效果/ceng.css*/
animation-delay:3s;/*延迟多长时间开始运动 animation-delay值单位可以是秒(s)或毫秒(ms).允许负值,-3s是跳过前3s动画。*/
animation-iteration-count:3;
/*循环的次数 animation-iteration-count属性定义动画播放次数. 值:number数字; infinite:指定动画应该播放无限次(永远)*/
animation-direction:normal;
/*animation-direction 属性定义是否循环交替反向播放动画。 值:normal 默认值。动画按正常播放。;reverse:动画反向播放。*/
}
@keyframes mymove/*给关键帧起名字*/{
from {top:0;left:0;}
to{ top:0;left:80%;}
}
.rect1{
width:100px;
height:100px;
background-color:red;
position:fixed;/*相对于网页定位*/
animation:mymove1 2s infinite;/*第一个调用关键帧的name,第二个值是执行多长时间,第三个值是重复执行*/
}
@keyframes mymove1/*给关键帧起名字*/{
0%{top:0;left:0;background-color:red;}
25%{ top:0;left:80%;background-color:black;}
50%{top:80%;left:80%;background-color:green;}
75%{top:80%;left:20%;background-color:pink;}
100%{top:0%;left:20%;background-color:gray;}
}
You can’t perform that action at this time.