Add sidemenu highlighter animations

This commit is contained in:
prayag17 committed 2023-03-23 11:09:01 +05:30
1 parent 221cd4722a
commit 5212e2c497
8 files changed
+132 -72

No files matched your search

+9 -1
View File
@@ -3,7 +3,7 @@
.sidemenu {
&-item {
position: relative;
&-active::before {
&::before {
content: "";
position: absolute;
top: 15%;
@@ -16,6 +16,14 @@
$clr-accent-default,
$clr-secondary-default
);
opacity: 0;
transform: translateX(-10px);
transition: transform $transition-time-default,
opacity $transition-time-default;
}
&-active::before {
opacity: 1;
transform: translateX(0);
}
}
}