Skip to content

Holographic Button

Iridescent holographic effect with color shifting

Holographic Button

by FreeCsStyles Dev's

PremiumHolographic
🌐⚛️💚🅰️🔥
#holographic#iridescent#rainbow#modern#trendy#colorful

Embed this component

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

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

Implementation code

Copy the HTML and CSS for Holographic 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="holographic-button">
  <span>Holographic</span>
</button>
CSS
.holographic-button {
  position: relative;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
  background-size: 400% 400%;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  overflow: hidden;
  animation: holographic-shift 6s linear infinite;
  transition: all 0.3s ease;
}

.holographic-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(118, 75, 162, 0.5);
}

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

@keyframes holographic-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

export default class HolographicButton extends LightningElement {
  @api label = 'Holographic';
  
  handleClick() {
    this.dispatchEvent(new CustomEvent('buttonclick', {
      bubbles: true,
      composed: true
    }));
  }
}
LWC — CSS
.holographic-button {
  position: relative;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
  background-size: 400% 400%;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  overflow: hidden;
  animation: holographic-shift 6s linear infinite;
  transition: all 0.3s ease;
}

.holographic-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(118, 75, 162, 0.5);
}

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

@keyframes holographic-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes holographic-shine {
  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 Holographic Button fits

  • Creative Sites
  • Modern Apps
  • Art Portfolios
  • Trendy UI

Interaction states & animations

  • Holographic
  • Shimmer
  • Color Shift

Topics

  • #holographic
  • #iridescent
  • #rainbow
  • #modern
  • #trendy
  • #colorful

Accessibility notes

Ensure text remains readable during color shifts. Provide solid color fallback.

Browser support

  • All modern browsers