Skip to content

Commit ab2fa4b

Browse files
author
wu-kan
committed
调整页面加载动画
1 parent c8f58d6 commit ab2fa4b

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

_config.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -535,19 +535,9 @@ jekyll-theme-WuK: # 我的主题的自定义样式都在这个命名空间
535535
box-shadow: 0 .25rem .5rem rgba(0, 0, 0, 0.1);
536536
}
537537
.content {
538-
background-color: rgba(255, 255, 255, 0.8);
539-
box-shadow: 0 .25rem .5rem .5rem rgba(255, 255, 255, 0.8);
538+
background-color: rgba(255, 255, 255, 0.9);
539+
box-shadow: 0 .25rem .5rem .5rem rgba(255, 255, 255, 0.9);
540540
border: none;
541-
animation: animationAppear 2s;
542-
}
543-
@keyframes animationAppear {
544-
0% {
545-
opacity: 0;
546-
}
547-
50% {
548-
opacity: 0;
549-
}
550-
100% {}
551541
}
552542
@media (min-width: 70em) {
553543
.container {
@@ -628,6 +618,23 @@ jekyll-theme-WuK: # 我的主题的自定义样式都在这个命名空间
628618
background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
629619
}
630620
/*滚动条效果end*/
621+
/*动画效果start*/
622+
.masthead,
623+
.content,
624+
.sidebar-toggle,
625+
.pio-container {
626+
animation: animationAppear 2s;
627+
}
628+
@keyframes animationAppear {
629+
0% {
630+
opacity: 0;
631+
}
632+
33% {
633+
opacity: 0;
634+
}
635+
100% {}
636+
}
637+
/*动画效果end*/
631638
</style>
632639
633640
readme_index:

0 commit comments

Comments
 (0)