diff --git a/src/components/Layout/Layout.less b/src/components/Layout/Layout.less index 483fa5b..0ca5382 100644 --- a/src/components/Layout/Layout.less +++ b/src/components/Layout/Layout.less @@ -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; + } +} diff --git a/src/components/Layout/Sider.js b/src/components/Layout/Sider.js index cca60b6..90f2952 100644 --- a/src/components/Layout/Sider.js +++ b/src/components/Layout/Sider.js @@ -20,7 +20,7 @@ const Sider = ({