首页列表添加动画效果

This commit is contained in:
结发受长生
2019-08-24 20:52:28 +08:00
parent 7c165816f4
commit 62eb074a57
9 changed files with 92 additions and 21 deletions
+4 -14
View File
@@ -2,23 +2,13 @@
position: relative;
}
@keyframes cd-bounce-1 {
0% {
opacity: 0;
transform: scale(1);
}
60% {
opacity: 1;
transform: scale(1.01);
}
100% {
transform: scale(1);
}
.article-outer {
perspective: 500px;
margin: 0 30px 30px;
position: relative;
}
.article {
margin: 0 30px 30px;
position: relative;
border-width: 1px;
border-style: solid;
border-color: #fff #ddd;
+3 -3
View File
@@ -45,10 +45,10 @@ html, body, #container {
width: auto;
@extend %trans;
&.show {
@extend %anmLeftIn;
@extend %anmLeftIn;
.article {
transition: opacity .5s ease-in, background-color .2s ease-in;
opacity: 0.6;
transition: opacity .3s ease-in, background-color .3s ease-in;
opacity: 0.6 !important;
pointer-events: none;
}
}
+13 -2
View File
@@ -62,8 +62,19 @@ body.night {
.article-title { // 主标题
color: $colorF;
}
.article-entry blockquote{ // 引用
background: #2c2c2c;
.article-entry {
table { // 表格
border-color: $borderColor_night;
th,td {
border-color: $borderColor_night;
}
thead tr { // 表头
background: $mainBg_night;
}
}
blockquote{ // 引用
background: #2c2c2c;
}
}
h1,h2,h3,h4,h5,h6 { // 章节标题
color: $colorC;