Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hmu332233/react-cursor-spotlight

It is a react component that implements the cursor spotlight effect on mousemove.
https://github.com/hmu332233/react-cursor-spotlight

Last synced: 4 days ago
JSON representation

It is a react component that implements the cursor spotlight effect on mousemove.

Awesome Lists containing this project

README

        

# react-cursor-spotlight

![demo_gif](docs/demo.gif)

It is a react component that implements the cursor spotlight effect on mousemove.

[Demo](https://hmu332233.github.io/react-cursor-spotlight)

## Install
```bash
$ yarn add react-cursor-spotlight
// or
$ npm install --save react-cursor-spotlight
```

## Usage

**basic**

```jsx
import { CursorSpotlight } from 'react-cursor-spotlight';

Contents

```

**custom spotlight**

```jsx
import { CursorSpotlight } from 'react-cursor-spotlight';

const spotlightStyle = {
width: '50px',
height: '50px',
radius: '0%',
backgroundColor: '#fff',
};

Contents

```