Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-cursorphobic

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-cursorphobic

Create cute animation with cursor reactive elements.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by250%
Maintainers
1
Weekly downloads
 
Created
Source

Svelte Cursorphobic

npm version npm downloads bundle size

A (very) lightweight component that makes elements afraid of your cursor. Used to easily create cute animations that react to your mouse.

Demo and Docs: https://mitcheljager.github.io/svelte-cursorphobic/

Installation

Install using Yarn or NPM.

yarn add cursorphobic --dev
npm install cursorphobic --save-dev

Include the component in your app.

import Cursorphobic from "svelte-cursorphobic"
<Cursorphobic>...<Cursorphobic>

Usage

For detailed documentation and demos check out: https://mitcheljager.github.io/svelte-cursorphobic/

Properties

PropertyDefaultDescription
range200Controls from how far away the component starts reacting to your cursor.
multiplier0.1Controls how heavily an element reacts to your cursor.
smoothing0.25Controls how quickly an element moves relative to changes in your cursor.

FAQs

Package last updated on 21 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc