logo text fadeIn

This commit is contained in:
zuiidea
2018-02-26 19:13:43 +08:00
parent 98b773fdc3
commit 42cd1221fa
2 changed files with 14 additions and 13 deletions
+13 -12
View File
@@ -95,8 +95,9 @@
display: inline-block;
font-weight: 700;
color: @primary-color;
white-space: nowrap;
:local {
animation: fadeLeftIn 400ms linear;
animation: fadeLeftIn 500ms linear;
animation-fill-mode: both;
}
}
@@ -174,14 +175,14 @@
}
}
// @keyframes fadeLeftIn {
// 0% {
// transform: translateX(20px);
// opacity: 0;
// }
//
// 100% {
// transform: translateX(0);
// opacity: 1;
// }
// }
@keyframes fadeLeftIn {
0% {
transform: translateX(5px);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
+1 -1
View File
@@ -20,7 +20,7 @@ const Sider = ({
<div>
<div className={styles.logo}>
<img alt="logo" src={config.logo} />
<span>{siderFold ? '' : config.name}</span>
{siderFold ? '' : <span>{config.name}</span>}
</div>
<Menus {...menusProps} />
{!siderFold ? <div className={styles.switchtheme}>