summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHaishan <[email protected]>2019-03-31 00:20:23 +0800
committerHaishan <[email protected]>2019-03-31 00:21:11 +0800
commitb401a7b78f24079855b4f75dbc40cc08e2759e6e (patch)
tree94da2da808b0dbf6ca983411ffcf5f165c246bea /src
parent2a9de5ea106d3fd1f966dfe2c8cf8a34fa4193d1 (diff)
sidebar: add a logo hover animation
Diffstat (limited to 'src')
-rw-r--r--src/components/SideBar.module.scss11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/components/SideBar.module.scss b/src/components/SideBar.module.scss
index 853841b..a8fe68e 100644
--- a/src/components/SideBar.module.scss
+++ b/src/components/SideBar.module.scss
@@ -19,7 +19,7 @@
transition: color 0.3s ease-in-out;
&:hover {
- color: #1f52ac;
+ animation: pulse 0.3s ease-in-out 0s infinite alternate;
}
img {
@@ -28,6 +28,15 @@
}
}
+@keyframes pulse {
+ 0% {
+ color: #2a477a;
+ }
+ 100% {
+ color: #1f52ac;
+ }
+}
+
.rows {
@media (max-width: 768px) {
display: flex;