Skip to content

Shimmer Effect Button

Button with animated shimmer/shine effect across the surface

Shimmer Effect Button

by FreeCsStyles Dev's

EffectsPremium
🌐🎨⚛️💚🅰️🔥☁️
#shimmer#shine#premium#animated#gradient#attention

Embed this component

Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/shimmer-button.

<iframe src="/embed/shimmer-button" sandbox="allow-scripts" loading="lazy" title="Shimmer Effect Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>

Implementation code

Copy the HTML and CSS for Shimmer Effect Button, or grab a framework-specific implementation. The HTML and CSS variants are self-contained; framework variants assume that framework's project setup.

HTML
<button class="shimmer-button">
  <span>Shimmer</span>
</button>
CSS
.shimmer-button {
  position: relative;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, #9333ea, #db2777);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.shimmer-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}
LWC — HTML template
<template>
  <button class="shimmer-button" onclick={handleClick}>
    <span><slot>Shimmer</slot></span>
  </button>
</template>
LWC — JavaScript
import { LightningElement, api } from 'lwc';

export default class ShimmerButton extends LightningElement {
  @api label = 'Shimmer';
  
  handleClick() {
    this.dispatchEvent(new CustomEvent('buttonclick', {
      bubbles: true,
      composed: true
    }));
  }
}
LWC — CSS
.shimmer-button {
  position: relative;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, #9333ea, #db2777);
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  overflow: hidden;
}

.shimmer-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}
LWC — Configuration
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
  <apiVersion>59.0</apiVersion>
  <isExposed>true</isExposed>
  <targets>
    <target>lightning__AppPage</target>
    <target>lightning__RecordPage</target>
    <target>lightning__HomePage</target>
  </targets>
</LightningComponentBundle>

Where Shimmer Effect Button fits

  • Premium Actions
  • Loading States
  • Attention Grabbing
  • Marketing

Interaction states & animations

  • Shimmer
  • Shine
  • Gradient

Topics

  • #shimmer
  • #shine
  • #premium
  • #animated
  • #gradient
  • #attention

Accessibility notes

Provide reduced motion alternative. Ensure text remains readable during animation.

Browser support

  • All modern browsers