Skip to content

Commit ff4c0af

Browse files
committed
[dyad] Added animation to mobile navigation menu - wrote 1 file(s)
1 parent 8b35d8a commit ff4c0af

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/app/component/navigation/navigation.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@
2323
</div>
2424

2525
<!-- Mobile Menu -->
26-
<div *ngIf="isMenuOpen" class="md:hidden bg-white/95 backdrop-blur-lg absolute w-full shadow-md">
26+
<div
27+
class="md:hidden bg-white/95 backdrop-blur-lg absolute w-full shadow-md overflow-hidden transition-all duration-300 ease-in-out"
28+
[ngClass]="{
29+
'max-h-0 opacity-0': !isMenuOpen,
30+
'max-h-96 opacity-100': isMenuOpen
31+
}"
32+
>
2733
<div class="px-2 pt-2 pb-3 space-y-1 sm:px-3 flex flex-col items-center">
2834
<a href="#services" (click)="closeMenu()" class="block w-full text-center px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-indigo-600 hover:bg-gray-50" i18n>Services</a>
2935
<a href="#portifolio" (click)="closeMenu()" class="block w-full text-center px-3 py-2 rounded-md text-base font-medium text-gray-700 hover:text-indigo-600 hover:bg-gray-50" i18n>Our apps</a>

0 commit comments

Comments
 (0)