Skip to content

Instantly share code, notes, and snippets.

@aeither
Created January 20, 2023 18:30
Show Gist options
  • Save aeither/b8c1ca4bf13001928a6f8643cf3e7d2f to your computer and use it in GitHub Desktop.
Save aeither/b8c1ca4bf13001928a6f8643cf3e7d2f to your computer and use it in GitHub Desktop.
<!-- Background -->
<div class="flex min-h-screen flex-col items-center justify-center bg-black">
<!-- Button -->
<button class="relative overflow-hidden rounded-lg px-20 py-6">
<!-- Button Body -->
<span class="absolute inset-px z-10 flex items-center justify-center rounded-lg bg-black bg-gradient-to-t from-neutral-800 text-neutral-300">Button</span>
<!-- Animated Border -->
<span aria-hidden class="absolute inset-0 z-0 scale-x-[2.0] blur before:absolute before:inset-0 before:top-1/2 before:aspect-square before:animate-disco before:bg-gradient-conic before:from-purple-700 before:via-red-500 before:to-amber-400" />
</button>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment