Nenhum efeito encontrado com esse termo.
1. Trail Effect
Mova o cursor aqui
HTML:
<div class="cursor-area trail-area">
<span class="cursor-text">Mova o cursor aqui</span>
</div>
CSS:
.trail {
width: 10px;
height: 10px;
background: var(--primary-color);
border-radius: 50%;
position: absolute;
pointer-events: none;
opacity: 0;
}
JavaScript:
function createTrail(e, element) {
const trail = document.createElement('div');
trail.className = 'trail';
trail.style.left = e.pageX - element.offsetLeft + 'px';
trail.style.top = e.pageY - element.offsetTop + 'px';
element.appendChild(trail);
trail.style.opacity = '0.5';
setTimeout(() => {
trail.style.opacity = '0';
setTimeout(() => {
element.removeChild(trail);
}, 300);
}, 50);
}
2. Magnetic Effect
HTML:
<button class="magnetic-button">Hover me</button>
JavaScript:
function handleMagnetic(e, button) {
const bound = button.getBoundingClientRect();
const magneticPullX = (e.clientX - bound.left) / bound.width - 0.5;
const magneticPullY = (e.clientY - bound.top) / bound.height - 0.5;
button.style.transform = `translate(${magneticPullX * 20}px, ${magneticPullY * 20}px)`;
}
3. Cursor Highlight
Mova o cursor aqui
HTML:
<div class="cursor-area highlight-area">
<span class="cursor-text">Mova o cursor aqui</span>
</div>
CSS:
.cursor-highlight {
width: 30px;
height: 30px;
background: rgba(79, 70, 229, 0.2);
border-radius: 50%;
position: absolute;
pointer-events: none;
transform: translate(-50%, -50%);
transition: width 0.3s, height 0.3s;
}
4. Interactive Pointer
Cursor personalizado
HTML:
<div class="cursor-area pointer-area">
<span class="cursor-text">Cursor personalizado</span>
</div>
<div class="custom-cursor"></div>
<div class="cursor-dot"></div>
CSS:
.custom-cursor {
width: 20px;
height: 20px;
border: 2px solid var(--primary-color);
border-radius: 50%;
position: fixed;
pointer-events: none;
}
.cursor-dot {
width: 4px;
height: 4px;
background: var(--primary-color);
border-radius: 50%;
position: fixed;
pointer-events: none;
}
5. Glowing Cursor
Efeito de brilho
HTML:
<div class="cursor-area glow-area">
<span class="cursor-text glow-text">Efeito de brilho</span>
</div>
CSS:
.cursor-glow {
width: 40px;
height: 40px;
background: radial-gradient(circle, var(--primary-color) 0%, rgba(99, 102, 241, 0) 70%);
border-radius: 50%;
position: absolute;
pointer-events: none;
mix-blend-mode: screen;
}
6. Ripple Effect
Clique aqui
HTML:
<div class="cursor-area ripple-area">
<span class="cursor-text">Clique aqui</span>
</div>
CSS:
.ripple {
position: absolute;
border: 2px solid var(--primary-color);
border-radius: 50%;
animation: rippleAnim 0.8s linear;
pointer-events: none;
}
@keyframes rippleAnim {
0% {
width: 0px;
height: 0px;
opacity: 0.5;
}
100% {
width: 100px;
height: 100px;
opacity: 0;
}
}