# @pt1602/cursor

> [![CSS](https://img.shields.io/badge/--blue?logo=Javascript&logoColor=fff)](https://de.wikipedia.org/wiki/Cascading_Style_Sheets/) [![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-blue.svg)](https://github.com/pt1602/cursor/graphs/commit-act

Latest version **1.0.7** (published 2023-03-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @pt1602/cursor
pnpm add @pt1602/cursor
yarn add @pt1602/cursor
bun add @pt1602/cursor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2023-03-05 |
| First published | 2023-01-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 285.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Philipp Tuchardt |
| Maintainers | pt1602 |
| Keywords | js, cursor, custom cursor, scss, typescript |

## Links

- npm: https://www.npmjs.com/package/@pt1602/cursor
- Repository: https://github.com/pt1602/cursor
- Homepage: https://github.com/pt1602/cursor/
- Issues: https://github.com/pt1602/cursor/issues
- npm.io page: https://npm.io/package/@pt1602/cursor

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.7 (latest) — 2023-03-05
- 1.0.6 — 2023-02-09
- 1.0.5 — 2023-02-03
- 1.0.4 — 2023-02-01
- 1.0.3 — 2023-01-31
- 1.0.2 — 2023-01-30
- 1.0.1 — 2023-01-30
- 1.0.0 — 2023-01-30

## README

[![CSS](https://img.shields.io/badge/--blue?logo=Javascript&logoColor=fff)](https://de.wikipedia.org/wiki/Cascading_Style_Sheets/)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-blue.svg)](https://github.com/pt1602/cursor/graphs/commit-activity)
[![github forks](https://badgen.net/github/forks/pt1602/PT1602TwigRuleset/)](https://github.com/pt1602/cursor/network/)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-blue.svg)](http://makeapullrequest.com)
[![github stars](https://img.shields.io/github/stars/pt1602/PT1602TwigRuleset.svg?style=social&label=Star&maxAge=2592000)](https://github.com/pt1602/cursor/stargazers/)

---

# PT1602 - Cursor

A simple custom cursor created with scss and typescript, for me to create my first npm package.

---

__[Demo](https://pt1602.github.io/cursor/)__

---

## Setup

Add the styling into your `<head>` tag of your project. Like this:

```html
<link href="./public/libs/@pt1602/cursor/dist/css/base.css" rel="stylesheet">
```

and this `<script>` tag after your closing `<body>` tag

```html
<script src="./public/libs/@pt1602/cursor/dist/js/index.js"></script>
```

Last step is to add the following div somewhere to your project.

```html
<div data-cursor></div>
```

---

## Configuration

Via the `data-cursor-delay` attribute you are able to set a custom delay for the animation (default 300).

__Example:__

```html
<div data-cursor data-cursor-delay="600"></div>
```

## Styling

To add your own styling just override the default css variables.

```css
* {
    --cursor-primary-color: #55fff5;
    --cursor-z-index: 100;
    --cursor-dot-color: var(--cursor-primary-color);
    --cursor-dot-size: 5px;
    --cursor-outline-size: 30px;
    --cursor-outline-width: 2px;
    --cursor-outline-color: var(--cursor-primary-color);
    --cursor-border-radius: 50%;
}
```


---

[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)
![Open Source? Yes!](https://badgen.net/badge/Open%20Source%20%3F/Yes%21/blue?icon=github)

---
_Source: https://npm.io/package/@pt1602/cursor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
