Efeitos em Cards

← Voltar
Nenhum efeito encontrado com esse termo.

1. Efeito Hover 3D

Hover 3D Card

Passe o mouse para ver o efeito 3D

HTML

<div class="card-3d">
    <h4>Hover 3D Card</h4>
    <p>Passe o mouse para ver o efeito 3D</p>
</div>

CSS

.card-3d {
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border-radius: 15px;
    padding: 20px;
    color: white;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.card-3d:hover {
    transform: rotateX(10deg) rotateY(10deg);
}

2. Efeito Flip

Frente do Card

Verso do Card

HTML

<div class="card-flip-container">
    <div class="card-flip">
        <div class="card-flip-front">
            <h4>Frente do Card</h4>
        </div>
        <div class="card-flip-back">
            <h4>Verso do Card</h4>
        </div>
    </div>
</div>

CSS

.card-flip-container {
    width: 300px;
    height: 200px;
    perspective: 1000px;
}

.card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.card-flip-container:hover .card-flip {
    transform: rotateY(180deg);
}

.card-flip-front, .card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-flip-front {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    color: white;
}

.card-flip-back {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
    color: white;
    transform: rotateY(180deg);
}

3. Efeito Glassmorphism

Glass Card

Efeito de vidro moderno

HTML

<div class="card-glass">
    <h4>Glass Card</h4>
    <p>Efeito de vidro moderno</p>
</div>

CSS

.card-glass {
    width: 300px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 20px;
    color: white;
    transition: all 0.3s ease;
}

.card-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

4. Efeito Hover Reveal

Sample Image

Conteúdo Revelado

Passe o mouse para revelar

HTML

<div class="card-reveal">
    <img src="sua-imagem.jpg" alt="Sample Image" style="width: 100%; height: 100%; object-fit: cover;">
    <div class="card-reveal-content">
        <h4>Conteúdo Revelado</h4>
        <p>Passe o mouse para revelar</p>
    </div>
</div>

CSS

.card-reveal {
    width: 300px;
    height: 200px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-reveal img {
    transition: transform 0.5s ease;
}

.card-reveal:hover img {
    transform: scale(1.1);
}

.card-reveal-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.card-reveal:hover .card-reveal-content {
    transform: translateY(0);
}

5. Efeito Border Animation

Animated Border

Borda com animação gradiente

HTML

<div class="card-border">
    <h4>Animated Border</h4>
    <p>Borda com animação gradiente</p>
</div>

CSS

.card-border {
    width: 300px;
    height: 200px;
    background: white;
    border-radius: 15px;
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1;
}

.card-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid transparent;
    background: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59, #12c2e9) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    border-radius: 15px;
    background-size: 300% 300%;
    animation: borderMove 4s linear infinite;
}

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

.card-border h4 {
    color: #333;
    margin: 0 0 10px 0;
    position: relative;
}

.card-border p {
    color: #666;
    margin: 0;
    text-align: center;
    position: relative;
}

6. Efeito Shine

Shine Effect

HTML

<div class="card-shine">
    <h4>Shine Effect</h4>
</div>

CSS

.card-shine {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.5s;
}

.card-shine:hover::before {
    left: 150%;
}

7. Efeito Scale & Shadow

Scale Effect

Hover para escalar

HTML

<div class="card-scale">
    <h4>Scale Effect</h4>
    <p>Hover para escalar</p>
</div>

CSS

.card-scale {
    width: 300px;
    height: 200px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.card-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

8. Efeito Tilt Perspective

Tilt Effect

HTML

<div class="card-tilt">
    <h4>Tilt Effect</h4>
</div>

CSS

.card-tilt {
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 15px;
    padding: 20px;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.card-tilt:hover {
    animation: tilt 0.5s ease;
}

@keyframes tilt {
    0% { transform: rotateX(0) rotateY(0); }
    25% { transform: rotateX(10deg) rotateY(-10deg); }
    50% { transform: rotateX(0) rotateY(0); }
    75% { transform: rotateX(-10deg) rotateY(10deg); }
    100% { transform: rotateX(0) rotateY(0); }
}

9. Efeito Glitch

Glitch Effect

HTML

<div class="card-glitch">
    <h4>Glitch Effect</h4>
</div>

CSS

.card-glitch {
    width: 300px;
    height: 200px;
    background: #2c3e50;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.card-glitch:hover {
    animation: glitch 0.5s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

10. Efeito Magnetic Corner

Magnetic Effect

HTML

<div class="card-magnetic">
    <h4>Magnetic Effect</h4>
</div>

CSS

.card-magnetic {
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%);
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-magnetic::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 255, 255, 0.2) 0%,
        transparent 80%);
    opacity: 0;
    transition: opacity 0.3s;
}

.card-magnetic:hover::before {
    opacity: 1;
}

JavaScript

document.querySelector('.card-magnetic').addEventListener('mousemove', (e) => {
    const card = e.currentTarget;
    const rect = card.getBoundingClientRect();
    const x = e.clientX - rect.left;
    const y = e.clientY - rect.top;
    
    card.style.setProperty('--mouse-x', `${x}px`);
    card.style.setProperty('--mouse-y', `${y}px`);
});

11. Efeito Neon Pulse

Neon Effect

HTML

<div class="card-neon">
    <h4>Neon Effect</h4>
</div>

CSS

.card-neon {
    width: 300px;
    height: 200px;
    background: #000;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 10px #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.card-neon::before,
.card-neon::after {
    content: '';
    position: absolute;
    left: -2px;
    top: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    border-radius: 15px;
    background: linear-gradient(45deg, 
        #00fff2, #00ff95, #0ff,
        #00fff2, #00ff95, #0ff
    );
    background-size: 400%;
    animation: neonBorder 20s linear infinite;
    z-index: -1;
}

.card-neon::after {
    filter: blur(20px);
    opacity: 0.5;
}

.card-neon:hover {
    text-shadow: 0 0 20px #0ff;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.4);
}

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

12. Efeito Parallax Depth

Parallax Effect

Move o mouse

HTML

<div class="card-parallax">
    <div class="card-parallax-content">
        <h4>Parallax Effect</h4>
        <p>Move o mouse</p>
    </div>
</div>

CSS

.card-parallax {
    width: 300px;
    height: 200px;
    background: linear-gradient(45deg, #654ea3, #da98b4);
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

.card-parallax-content {
    color: white;
    text-align: center;
    transform: translateZ(50px);
    transition: transform 0.3s ease;
}

.card-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1),
        rgba(255,255,255,0.05)
    );
    transform: translateZ(20px);
    border-radius: 15px;
}

.card-parallax:hover .card-parallax-content {
    transform: translateZ(80px);
}

JavaScript

document.querySelector('.card-parallax').addEventListener('mousemove', (e) => {
    const card = e.currentTarget;
    const rect = card.getBoundingClientRect();
    const x = ((e.clientX - rect.left) / card.offsetWidth) - 0.5;
    const y = ((e.clientY - rect.top) / card.offsetHeight) - 0.5;
    
    card.style.transform = `
        rotateY(${x * 20}deg)
        rotateX(${-y * 20}deg)
    `;
});

document.querySelector('.card-parallax').addEventListener('mouseleave', (e) => {
    const card = e.currentTarget;
    card.style.transform = 'rotateY(0) rotateX(0)';
});

13. Efeito Morph

Morph Effect

HTML

<div class="card-morph">
    <span>Morph Effect</span>
</div>

CSS

.card-morph {
    width: 300px;
    height: 200px;
    background: #fff;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-morph::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border-radius: 15px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-morph:hover {
    transform: rotate(-5deg) scale(1.1);
    border-radius: 30px;
}

.card-morph:hover::before {
    opacity: 1;
    border-radius: 30px;
}

.card-morph span {
    z-index: 1;
    color: #333;
    font-weight: bold;
    transition: color 0.5s ease;
}

.card-morph:hover span {
    color: white;
}

14. Efeito Liquid

Liquid

HTML

<div class="card-liquid">
    <div class="liquid-bubbles">
        <div class="bubble"></div>
        <div class="bubble"></div>
        <div class="bubble"></div>
    </div>
    <div class="liquid-content">
        <span>Liquid</span>
    </div>
</div>

CSS

.card-liquid {
    width: 300px;
    height: 200px;
    background: #1a1a1a;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.card-liquid::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: conic-gradient(
        from 0deg,
        #00ffff,
        #7700ff,
        #00ff88,
        #00ffff
    );
    animation: liquidRotate 8s linear infinite;
    filter: blur(10px) brightness(1.5);
}

.card-liquid::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-liquid .liquid-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    text-align: center;
    color: white;
    mix-blend-mode: difference;
}

.card-liquid .liquid-bubbles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-liquid:hover .liquid-bubbles {
    opacity: 1;
}

.card-liquid .bubble {
    position: absolute;
    background: radial-gradient(circle at center, 
        rgba(255,255,255,0.8) 0%,
        rgba(255,255,255,0.2) 50%,
        transparent 70%);
    border-radius: 50%;
    animation: bubbleFloat linear infinite;
}

.card-liquid .bubble:nth-child(1) {
    width: 30px;
    height: 30px;
    left: 10%;
    animation-duration: 4s;
    animation-delay: 0s;
}

.card-liquid .bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 40%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.card-liquid .bubble:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 70%;
    animation-duration: 5s;
    animation-delay: 2s;
}

.card-liquid:hover::before {
    animation: liquidRotate 4s linear infinite;
}

.card-liquid span {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.card-liquid:hover span {
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

@keyframes liquidRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.5);
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.3);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1.5);
    }
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(200px) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

15. Efeito Kinetic

Kinetic

HTML

<div class="card-kinetic">
    <div class="kinetic-pattern"></div>
    <div class="kinetic-content">
        <span>Kinetic</span>
    </div>
</div>

CSS

.card-kinetic {
    width: 300px;
    height: 200px;
    background: #2c3e50;
    border-radius: 15px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.card-kinetic::before,
.card-kinetic::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: conic-gradient(
        from 0deg at 50% 50%,
        #f06292,
        #ec407a,
        #e91e63,
        #f06292
    );
    animation: kineticSpin 4s linear infinite;
    opacity: 0.8;
}

.card-kinetic::after {
    animation: kineticSpin 4s linear infinite reverse;
    filter: blur(5px);
}

.card-kinetic .kinetic-content {
    background: #2c3e50;
    position: absolute;
    inset: 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: 0.5s;
}

.card-kinetic:hover .kinetic-content {
    inset: 12px;
}

.card-kinetic .kinetic-pattern {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.1) 10px,
        rgba(255, 255, 255, 0.1) 20px
    );
    animation: patternMove 20s linear infinite;
    opacity: 0;
    transition: opacity 0.5s;
}

.card-kinetic:hover .kinetic-pattern {
    opacity: 1;
}

.card-kinetic span {
    color: white;
    font-weight: bold;
    z-index: 3;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.5s;
}

.card-kinetic:hover span {
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transform: scale(1.1);
}

@keyframes kineticSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes patternMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 500px 500px;
    }
}