UNPKG

circledot-cursor

Version:

A custom cursor component for React

49 lines (44 loc) 916 B
/* cursor.css */ body { cursor: none !important; } .cursor-dot { position: fixed; top: 0; left: 0; width: 5px; height: 5px; background-color: yellow; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 99999; transition: opacity 0.2s ease; } .cursor-dot-hidden { opacity: 0; } .cursor-circle { position: fixed; top: 0; left: 0; width: 30px; height: 30px; border: 2px solid rgb(90, 90, 1); border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); z-index: 99998; transition: all 0.1s ease; box-sizing: border-box; } .cursor-circle.hovered { transition: all 0.2s ease; transform: none; box-sizing: border-box; margin: 0; padding: 0; } button, a, .social-button { cursor: none !important; }