summaryrefslogtreecommitdiffstats
path: root/assets/css
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/main/comment.css31
1 files changed, 31 insertions, 0 deletions
diff --git a/assets/css/main/comment.css b/assets/css/main/comment.css
index 74a8bb3..9b2390c 100644
--- a/assets/css/main/comment.css
+++ b/assets/css/main/comment.css
@@ -257,4 +257,35 @@
#response {
text-align: center;
margin-top: 60px;
+}
+
+/* ===== 从左到右淡入 ===== */
+@keyframes fadein {
+ 0% {
+ opacity: 0;
+ transform: translateX(5vh);
+ }
+
+ 100% {
+ opacity: 1;
+ transform: translateX(0);
+ }
+}
+
+@-webkit-keyframes fadein {
+ 0% {
+ opacity: 0;
+ transform: translateX(5vh);
+ }
+
+ 100% {
+ opacity: 1;
+ transform: translateX(0);
+ }
+}
+
+.comment-animation-fadein {
+ animation: fadein;
+ animation-duration: 0.3s;
+ -webkit-animation: fadein 0.3s;
} \ No newline at end of file