Shimmer Sheen Sweep
Diagonal light beam sweeping across the surface with glossy sheen.
Live demo
Hover the buttons to see the effect.
How to use this effect
Paste the HTML into your page and the CSS into your stylesheet. Change --btn-color, --btn-bg and --anim-speed to match your design.
<button class="hover-btn btn-size-md btn-hover-shimmer">
<span>HoverLab</span>
<svg class="btn-icon btn-icon-right" width="18" height="18" viewBox="0 0 256 256" fill="currentColor"><path d="M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"></path></svg>
</button>
/* ==========================================
HoverLab Effect #3: 03. Shimmer Sheen Sweep
Self-Contained & Plug-and-Play CSS
========================================== */
:root {
--btn-color: #e6332a;
--btn-bg: #eeeeee;
--anim-speed: 0.35s;
}
/* Base Button Styles */
.hover-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 12px 28px;
font-family: inherit;
font-size: 15px;
font-weight: 500;
letter-spacing: -0.01em;
white-space: nowrap;
cursor: pointer;
background-color: transparent;
color: var(--btn-color, #e6332a);
border: 1.5px solid var(--btn-color, #e6332a);
border-radius: 9999px;
text-decoration: none;
user-select: none;
transition: all var(--anim-speed, 0.35s) cubic-bezier(0.16, 1, 0.3, 1);
box-sizing: border-box;
}
.hover-btn.btn-icon-only {
padding: 0 !important;
aspect-ratio: 1 / 1;
width: 44px;
height: 44px;
}
.hover-btn .btn-icon {
display: block;
flex-shrink: 0;
transition: transform var(--anim-speed, 0.35s) cubic-bezier(0.16, 1, 0.3, 1);
}
/* Effect Styles */
.btn-hover-shimmer {
position: relative;
overflow: hidden;
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
background-color 0.25s ease,
box-shadow 0.25s ease;
}
.btn-hover-shimmer::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
115deg,
transparent 30%,
#ffffff00 40%,
#ffffff4d 48%,
#ffffffff 50%,
#ffffff4d 52%,
#ffffff00 60%,
transparent 70%
);
transform: translateX(-100%) rotate(25deg);
transition: transform 0s;
pointer-events: none;
z-index: 3;
}
.btn-hover-shimmer:hover::before {
transform: translateX(100%) rotate(25deg);
transition: transform var(--anim-speed, 1.5s) cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-hover-shimmer:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px #00000014;
}
.btn-hover-shimmer:active {
transform: translateY(0);
}
.btn-hover-shimmer .btn-icon {
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-hover-shimmer:hover .btn-icon {
transform: translateX(3px);
}
When to use it
Special effects add light, particles or texture. They catch the eye, so reserve them for one highlight per screen: a launch button, a pricing CTA or a creative portfolio link.
Accessibility
Use a real <button> or <a> element so the effect also works with the keyboard: duplicate the :hover selectors with :focus-visible. For visitors who prefer less motion, wrap the transitions and animations in @media (prefers-reduced-motion: no-preference).
Browser support
The effect relies on standard CSS (transitions, transforms, pseudo-elements and custom properties). It works in current versions of Chrome, Edge, Firefox and Safari, with no JavaScript and no dependency.