💌 📖
Skip to main content

Zephyr Rainbow CTAs

.rainbow-btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 18px 32px;
font-size: 18px;
font-weight: 700;
color: white;
text-decoration: none;
border: none;
border-radius: 50px;
cursor: pointer;
transition: all 0.4s ease;
text-shadow: 0 2px 4px rgba(0,0,0,0.3);
box-shadow: 0 8px 20px rgba(0,0,0,0.3);
position: relative;
overflow: hidden;
margin: 12px;
min-width: 260px;
}

.rainbow-btn::before {
content: ”;
position: absolute;
top: -50%;
left: -50%;
width: 40%;
height: 200%;
background: linear-gradient(
120deg,
transparent,
rgba(255,255,255,0.6),
transparent
);
transform: skewX(-25deg);
transition: all 0.6s;
}

.rainbow-btn:hover::before {
left: 120%;
}

/* Rainbow Gradient 1 */
.btn-website {
background: linear-gradient(90deg,
#ff0000, #ff7f00, #ffff00,
#00ff00, #00ffff, #0000ff, #8b00ff);
background-size: 400% 400%;
animation: rainbowShift 6s ease infinite;
}

/* Rainbow Gradient 2 – Slightly different direction */
.btn-call {
background: linear-gradient(135deg,
#ff1493, #ff00ff, #8a2be2,
#00bfff, #00ff7f, #ffd700);
background-size: 400% 400%;
animation: rainbowShift 5s ease infinite;
}

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

.rainbow-btn:hover {
transform: translateY(-6px) scale(1.05);
box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.rainbow-btn:active {
transform: scale(0.95);
}

.btn-content {
display: flex;
align-items: center;
gap: 10px;
z-index: 2;
position: relative;
}

.container {
padding: 40px;
text-align: center;
background: #1a0033;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

Leave a Reply