Metallic Chrome Button
Shiny metallic button with chrome-like reflection
Embed this component
Paste this snippet into any site — the design renders in a sandboxed iframe served from /embed/metallic-button.
<iframe src="/embed/metallic-button" sandbox="allow-scripts" loading="lazy" title="Metallic Chrome Button" style="border:0;width:100%;height:480px;overflow:hidden"></iframe>Implementation code
Copy the HTML and CSS for Metallic Chrome 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="metallic-button">CHROME</button>CSS
.metallic-button {
padding: 1rem 2rem;
border-radius: 0.75rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
background-size: 200% 200%;
color: white;
font-weight: bold;
border: 1px solid rgba(255, 255, 255, 0.3);
cursor: pointer;
animation: metallic-shift 5s linear infinite;
transition: all 0.3s ease;
}
.metallic-button:hover {
transform: scale(1.05);
box-shadow: 0 20px 40px rgba(118, 75, 162, 0.5);
}
@keyframes metallic-shift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}Tailwind CSS
<button class="px-8 py-4 rounded-xl bg-gradient-to-br from-indigo-500 via-purple-500 to-pink-400 bg-[length:200%_200%] text-white font-bold border border-white/30 hover:scale-105 hover:shadow-2xl hover:shadow-purple-500/50 transition-all" style="animation: metallic-shift 5s linear infinite;">
CHROME
</button>LWC — HTML template
<template>
<button class="metallic-button" onclick={handleClick}>
<slot>CHROME</slot>
</button>
</template>LWC — JavaScript
import { LightningElement, api } from 'lwc';
export default class MetallicButton extends LightningElement {
@api label = 'CHROME';
handleClick() {
this.dispatchEvent(new CustomEvent('buttonclick', {
bubbles: true,
composed: true
}));
}
}LWC — CSS
.metallic-button {
padding: 1rem 2rem;
border-radius: 0.75rem;
background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
background-size: 200% 200%;
color: white;
font-weight: bold;
border: 1px solid rgba(255, 255, 255, 0.3);
cursor: pointer;
animation: metallic-shift 5s linear infinite;
transition: all 0.3s ease;
}
.metallic-button:hover {
transform: scale(1.05);
box-shadow: 0 20px 40px rgba(118, 75, 162, 0.5);
}
@keyframes metallic-shift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}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 Metallic Chrome Button fits
- Premium UI
- Luxury Apps
- Automotive
- High-end Products
Interaction states & animations
- Shine
- Hover
- Reflection
Topics
- #metallic
- #chrome
- #premium
- #luxury
- #shine
- #reflective
Accessibility notes
Ensure text contrast meets WCAG standards against metallic background.
Browser support
- All modern browsers