Component

Animated Shine Button

Shine sweep animations on hover for premium feel

  • Component
  • Tailwind
  • MIT

Preview

Live component

Interactive preview
Open preview
9:41 100%
devsnips.dev/library/tailwind/components/buttons/animated-button/shine/
fluid · no fixed width 100%
No dependencies Production-ready

Install

Add to your project

terminal
npx devsnips add Tailwind/Components/Buttons/animated-button/shine
registry path: Tailwind/Components/Buttons/animated-button/shine

Source

Implementation

code.html
<!-- Shine Button Styles -->
<style>
  .shine-btn {
    position: relative;
    overflow: hidden;
  }
  .shine-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
  }
  .shine-btn:hover::after {
    transform: rotate(30deg) translateX(100%);
  }
</style>

<!-- Shine Button - Default -->
<button class="px-8 py-3 shine-btn bg-blue-600 text-white font-semibold rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 transition-colors">
  Shine Effect
</button>

<!-- Shine Button - Pill -->
<button class="px-8 py-3 shine-btn bg-purple-600 text-white font-semibold rounded-full hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-purple-500 transition-colors">
  Shine Pill
</button>

<!-- Shine Button - Gradient -->
<button class="px-8 py-3 shine-btn bg-gradient-to-r from-cyan-500 to-blue-500 text-white font-semibold rounded-lg hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-cyan-500 transition-opacity">
  Shine Gradient
</button>
41 lines UTF-8 · LF · Spaces: 2

AI-ready

Available to your agent.

This component is reachable through the DevSnips CLI, MCP server and Skills integrations — one registry, one resource path.

Resource path

devsnips://components/buttons/animated-button/shine

Continue browsing

View all