diff --git a/adev/src/app/core/layout/navigation/mini-menu.scss b/adev/src/app/core/layout/navigation/mini-menu.scss index bb70214c65e..02ca0b3130e 100644 --- a/adev/src/app/core/layout/navigation/mini-menu.scss +++ b/adev/src/app/core/layout/navigation/mini-menu.scss @@ -11,6 +11,14 @@ z-index: var(--z-index-mini-menu); box-shadow: 10px 4px 40px 0 rgba(0, 0, 0, 0.075); + // Animation for mini-menu appearance + animation: menuFadeIn 0.2s ease-out forwards; + transform-origin: left center; + + @media (prefers-reduced-motion: reduce) { + animation: none; + } + @include mq.for-tablet { top: 75px; left: 5px; @@ -98,3 +106,32 @@ bottom: auto; } } + +// Icon transition animation +.adev-theme-icon { + transition: transform 0.3s ease; + + &:hover { + transform: rotate(20deg) scale(1.1); + } + + @media (prefers-reduced-motion: reduce) { + transition: none; + + &:hover { + transform: none; + } + } +} + +// Keyframe animations +@keyframes menuFadeIn { + from { + opacity: 0; + transform: translateX(-10px) scale(0.95); + } + to { + opacity: 1; + transform: translateX(0) scale(1); + } +} diff --git a/adev/src/app/core/layout/navigation/navigation.component.html b/adev/src/app/core/layout/navigation/navigation.component.html index d38a0b0ae8a..8786877d73c 100644 --- a/adev/src/app/core/layout/navigation/navigation.component.html +++ b/adev/src/app/core/layout/navigation/navigation.component.html @@ -177,7 +177,7 @@ type="button" cdkMenuItem [href]="item.url" - [attr.aria-label]="item.displayName" + [aria-label]="item.displayName" > {{ item.displayName }} @@ -209,7 +209,7 @@ {{ searchLabel }} K @@ -446,17 +446,20 @@ - +
-
    -
  • +