Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

High Performance Custom cursor functions

NotificationsYou must be signed in to change notification settings

Dushyant1295/dpkCursor

Repository files navigation

High performance smooth custom cursor library that helps you to create cool things.

How to use:

CSS

Add dpkCursor.min.css orCDN dpkCursor.min.css

JAVASCRIPT

Add dpkCursor.min.js orCDN dpkcursor.min.js

USAGE
<linkrel="stylesheet"href="dpkCursor.min.css"/><divclass="dpk-hover"data-hover-text="Hello"> Text</div><divclass="dpk-hover"data-hover-class="class-name"> Add class to cursor</div><divclass="dpk-hover"data-hover-bg="#222"> Background Color</div><divclass="dpk-hover"data-hover-img="img/a.png"> Add Image As Background</div><scriptsrc="dpkCursor.min.js"></script><script>constcustomCursor=newdpkCursor({ease:0.25});</script>

Installation Using NPM

npm install dpk_cursorimport { dpkCursor } from"dpk_cursor/src/dpkCursor";const customCursor = new dpkCursor({ ease: 0.25 });

HTML Element attributes

AttributeValuesDescription
data-hover-textstringtext inside Cursor
data-hover-classstringadd class to Cursor
data-hover-bgcolor- name/codebg Color of Circle
data-hover-imgimg/pathimg inside Cursor

dpkCursor Provides Following Functions

NameParameterDefaultsDesc
init()-initialization
effect()--Use the Effects
reset()--reset dpkCursor
destroy()--delete dpkCursor


[8]ページ先頭

©2009-2025 Movatter.jp