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.site/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
DevSnips AI ready Claude · Cursor · Windsurf

Agent skill & Model Context Protocol

Pass this component straight into your AI workflow. DevSnips exposes each resource as a structured, addressable registry entry, so your agent installs the real files instead of approximating them.

devsnips://components/buttons/animated-button/shine
Prompt instruction
I want to use this DevSnips resource in production:

Page:
https://devsnips.site/library/tailwind/components/buttons/animated-button/shine/

Install: npx devsnips add
Tailwind/Components/Buttons/animated-button/shine

This is the Animated Shine Button — Shine sweep animations on hover for premium feel

Use this DevSnips resource as the starting point for my project.
Adapt it to my project's stack and conventions, fix any issues,
and make it production-ready while preserving its intended design
and behavior.

Paste into ChatGPT, Claude or your agent — it already carries the page URL and the exact install path.

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