Skip to content

Commit

Permalink
增加关于CSS的注释说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlefean committed Jan 3, 2023
2 parents 3036375 + 76e8d2e commit 59bdcd5
Show file tree
Hide file tree
Showing 8 changed files with 411 additions and 228 deletions.
2 changes: 1 addition & 1 deletion css/animation.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions css/animation.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// 棋子死亡后的收缩成一个小点的特效
@keyframes blockBoom {
0% {
transform: scale(1);
Expand All @@ -13,6 +14,7 @@
}
}

// 触发吃子震荡波的棋盘格子缩小特效
@keyframes small {
0% {
transform: scale(1);
Expand All @@ -24,7 +26,7 @@
transform: scale(1);
}
}

// 棋子落地前的特效
@keyframes putFx {
0% {
transform: scale(3);
Expand All @@ -35,7 +37,7 @@
opacity: 1;
}
}

// 棋盘抖动特效
@keyframes littleShake {
@s: 2px;
0% {
Expand All @@ -49,6 +51,7 @@
}
}

// 火石闪烁特效,现在似乎已经弃用
@keyframes fireFlame {
0% {
filter: blur(0);
Expand All @@ -61,6 +64,9 @@
}
}

/// 火石向左右上下移动的四个特效


@L: 30px;
//@m: 5px;
@m: 0;
Expand Down Expand Up @@ -100,6 +106,7 @@
}
}

/// 火石被困住的时候颤抖的特效
@keyframes bigShake {
@s: 1px;
@S: 2px;
Expand Down
130 changes: 108 additions & 22 deletions css/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 59bdcd5

Please sign in to comment.