0.0.8 • Published 2 years ago

curseur v0.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Curseur

Svelte component for creating customizable cursors.

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="exlusion"  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

  • size: Number - The size of the cursor. (Default: 20)
  • color: String - The color of the cursor. (Default: 'black')
  • shape: String - The shape of the cursor. (Default: 'circle')
  • mixBlendMode: String - The mix-blend-mode of the cursor. (Default: 'none')
0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago