5 Star 52 Fork 0

Gitee Community/码力传递:晒代码赢奖品

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
happybirthday.html 2.80 KB
一键复制 编辑 原始数据 按行查看 历史
scn 提交于 2020-06-05 22:27 . add happybirthday.html.
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>happy 7th birthday to gitee</title>
<style>
.text {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
font-size: 5vw;
-webkit-animation-name: move;
animation-name: move;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
font-weight: bolder;
}
.text:nth-of-type(1) {
-webkit-animation-duration: 2s;
animation-duration: 2s;
-webkit-animation-delay: 0.55s;
animation-delay: 0.55s;
}
.text:nth-of-type(2) {
-webkit-animation-duration: 2s;
animation-duration: 2s;
-webkit-animation-delay: 0.3s;
animation-delay: 0.3s;
}
.text:nth-of-type(3) {
-webkit-animation-duration: 2s;
animation-duration: 2s;
-webkit-animation-delay: 0.05s;
animation-delay: 0.05s;
}
.text:nth-of-type(4) {
-webkit-animation-duration: 2s;
animation-duration: 2s;
-webkit-animation-delay: -0.2s;
animation-delay: -0.2s;
}
@-webkit-keyframes move {
40%,
50% {
-webkit-transform: translate(-50%, -65%) scale(1.05);
transform: translate(-50%, -65%) scale(1.05);
}
0%,
90%,
100% {
-webkit-transform: translate(-50%, -45%) scale(0.95);
transform: translate(-50%, -45%) scale(0.95);
}
}
@keyframes move {
40%,
50% {
-webkit-transform: translate(-50%, -65%) scale(1.05);
transform: translate(-50%, -65%) scale(1.05);
}
0%,
90%,
100% {
-webkit-transform: translate(-50%, -45%) scale(0.95);
transform: translate(-50%, -45%) scale(0.95);
}
}
</style>
</head>
<body>
<div class='text' style='color: maroon;text-transform:uppercase'>happy 7th birthday to gitee</div>
<div class='text' style='color: red;text-transform:uppercase'>happy 7th birthday to gitee</div>
<div class='text' style='color: pink;text-transform:uppercase'>happy 7th birthday to gitee</div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gitee-community/gitee-7th-event-3.git
[email protected]:gitee-community/gitee-7th-event-3.git
gitee-community
gitee-7th-event-3
码力传递:晒代码赢奖品
master

搜索帮助