Created
February 11, 2021 23:03
-
-
Save design-innovations/dfe26f6f88942dfa4d9f9ba828a99b5b 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="skip-link absolute bg-black text-white font-bold left-1/2 p-2 | |
transform -translate-y-full transition duration-300 | |
focus:translate-y-0 focus-within:translate-y-0"> | |
<a href="#main">Skip to content</a> | |
</div> |
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
module.exports = { | |
// ... | |
variants: { | |
extend: { | |
translate: ['focus-within'], | |
} | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment