n3-rd / curseur

Svelte component for creating customizable cursors.
https://curseur.vercel.app
MIT License
8 stars 1 forks source link
component cursor custom-cursor svelte sveltekit

Curseur

Svelte component for creating customizable cursors.

npm GitHub repo size GitHub top language npm

enter image description here

Installation

NPM

npm i curseur

Yarn

yarn add curseur

PNPM

pnpm add curseur

Usage

import the library

import  {  Cursor  }  from  'curseur';

And simply use it:

<Cursor  color="green"  mixBlendMode="exclusion"  size={13}  />

To use hover effects, you can simply add a .hoverable class to the element you want to apply the effect to.

<div  class="hoverable">
    <h1>Hover me!</h1>
</div>

Customization