Created
August 3, 2023 02:43
-
-
Save maksimerohin/5972e70f33c65a993a86ee3ec84d3a16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="bg-gray-200" x-data="{ showBar: false }"> | |
<nav | |
class="w-full py-4 text-center fixed text-xs font-semibold" | |
:class="{ 'bg-white shadow transition duration-100' : showBar }" | |
@scroll.window="showBar = (window.pageYOffset > 20) ? true : false" | |
> | |
MENU | |
</nav> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment