fix: animates mobile menu transition
This commit is contained in:
@@ -24,6 +24,8 @@ export default class extends Controller {
|
||||
|
||||
toggle() {
|
||||
this.element.parentElement.classList.toggle('hidden');
|
||||
this.element.classList.toggle('animate__slideInLeft');
|
||||
this.element.classList.toggle('z-30');
|
||||
this.element.classList.toggle('fixed');
|
||||
this.element.classList.toggle('z-20');
|
||||
}
|
||||
|
||||
@@ -34,6 +34,9 @@ module.exports = {
|
||||
"rounded-sm",
|
||||
"rounded-md",
|
||||
"r-tablecell",
|
||||
"animate__animated",
|
||||
"animate__slideInLeft",
|
||||
"animate__animateFaster"
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<nav id="navbar" {{ attributes }} {{ stimulus_controller('navbar') }} {{ stimulus_action('navbar', 'setActive')}} class="flex h-screen flex-col justify-between bg-cyan-950">
|
||||
<nav id="navbar" {{ attributes }} {{ stimulus_controller('navbar') }} {{ stimulus_action('navbar', 'setActive')}} class="flex h-screen flex-col justify-between bg-cyan-950 animate__animated animate__animateFaster">
|
||||
<div class="px-4 py-4 flex flex-col gap-12">
|
||||
<h1 class="text-3xl mt-12 md:mt-0 font-extrabold text-orange-500 mb-3"><a href="{{ path('app_index') }}">Torsearch</a></h1>
|
||||
<ul class="nav-list space-y-1">
|
||||
|
||||
Reference in New Issue
Block a user