@phazr/custom-cursor
Version:
A lightweight and highly customizable React component for creating unique and interactive cursor experiences.
57 lines (49 loc) • 1.01 kB
CSS
@font-face {
font-family: 'AmsterdamOne';
src: url('./fonts/AmsterdamOne.ttf') format('truetype');
font-weight: bold;
font-style: normal;
size: 1rem;
line-height: 1.5rem;
}
.phazr-cursor-none {
cursor: none ;
}
.phazr-cursor-none * {
cursor: none ;
}
.phazr-cursor-container {
pointer-events: none;
position: fixed;
z-index: 9999;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.phazr-cursor-text {
font-weight: bold;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
.phazr-cursor-sayhi {
display: flex;
flex-direction: column;
gap: 8px;
font-size: 1rem;
line-height: 1.5rem;
font-family: 'AmsterdamOne', cursive, sans-serif;
font-weight: 900;
}
/* Responsive behavior */
@media (hover: none) and (pointer: coarse) {
.phazr-cursor-container {
display: none ;
}
.phazr-cursor-none,
.phazr-cursor-none * {
cursor: auto ;
}
}