Socket
Book a DemoInstallSign in
Socket

just-cursor-animation

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-cursor-animation

Trailing cursor animation react component

2.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Animating the cursor through the use of canvas

Pink-Gradient-Cursor

Dark-Navy-Gradient-Cursor

Lime-Green-Gradient-Cursor

Supports only React as for now

import Animate from 'just-cursor-animation'

function App() {
    return (
        <>
            {/* Your rest of the code */}
            <Animate color="#ffffff" />
        </>
    )
}

Its advised to put the Animate component in the last so that it will be able to calculate the full height of the document for the creation of its canvas.

Note

  • color prop accepts only hexadecimal color or css native colors.
  • By default the color is set to be black

Optional :

General Default Mouse Params

You could edit these default values too by passing a prop params

function App() {
  return (
    <>
      <div
        style={{
          height: "100vh",
          background:
            "linear-gradient(to right top, #051937, #004d7a, #008793, #00bf72, #a8eb12)",
        }}
      />
      <Animate
        color="#ffffff"
        params={{
          widthFactor: 0.3,
        }}
      />
    </>
  );
}

FAQs

Package last updated on 11 Jun 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.