All Projects β†’ javierbyte β†’ Control User Cursor

javierbyte / Control User Cursor

Alter user cursor behavior. Simulates users cursor and can apply transformations to it.

Programming Languages

javascript
184084 projects - #8 most used programming language
js
455 projects

Projects that are alternatives of or similar to Control User Cursor

blobity
The cursor is the heart of any interaction with the web. Why not take it to the next level? πŸš€
Stars: ✭ 804 (-23.43%)
Mutual labels:  ux, cursor
Material Cab
πŸš• An Android & Kotlin library for placing and manipulating Contextual Action Bars in your UI.
Stars: ✭ 988 (-5.9%)
Mutual labels:  ux
Use Web Animations
😎 🍿 React hook for highly-performant and manipulable animations using Web Animations API.
Stars: ✭ 802 (-23.62%)
Mutual labels:  ux
Bibata extra cursor
πŸš€ More Bibata 🌈
Stars: ✭ 33 (-96.86%)
Mutual labels:  cursor
Programming Book Recommendations List
My personal list of books that I recommend to read if you are a software developer
Stars: ✭ 22 (-97.9%)
Mutual labels:  ux
Curricula Ux
CurrΓ­cula UX en @Laboratoria
Stars: ✭ 34 (-96.76%)
Mutual labels:  ux
Clarity
Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
Stars: ✭ 6,398 (+509.33%)
Mutual labels:  ux
Time Capsule
Write a letter to your future self - receive it in one year.
Stars: ✭ 48 (-95.43%)
Mutual labels:  ux
Figmagic Example
Using Figmagic (simplifying design token generation and asset extraction) with Webpack 5, React 16, Styled Components.
Stars: ✭ 37 (-96.48%)
Mutual labels:  ux
Vue Twitter Counter
Counter component inspired in Twitter with Vue
Stars: ✭ 29 (-97.24%)
Mutual labels:  ux
Readline Utils
This repository has been archived, use Enquirer instead.
Stars: ✭ 15 (-98.57%)
Mutual labels:  cursor
React Rewards
Package containing a few microinteractions you can use to reward your users for little things and make them smile!
Stars: ✭ 841 (-19.9%)
Mutual labels:  ux
Baseliner
All your baseline are belong to us
Stars: ✭ 35 (-96.67%)
Mutual labels:  ux
Scrollupfolder
A firefox addon wich goes up a folder of a website.
Stars: ✭ 18 (-98.29%)
Mutual labels:  ux
Psychopy
For running psychology and neuroscience experiments
Stars: ✭ 1,020 (-2.86%)
Mutual labels:  experiment
Dank
Here lies the greatest Reddit app that was never released
Stars: ✭ 783 (-25.43%)
Mutual labels:  ux
Multiple.js
Sharing background across multiple elements using CSS
Stars: ✭ 879 (-16.29%)
Mutual labels:  experiment
Midiflip
🎹 MIDI music mayhem - flip, transpose, and arbitrarily remap pitches in MIDI files
Stars: ✭ 33 (-96.86%)
Mutual labels:  experiment
Ckdcss
A tiny set of micro interactions for your checkboxes.
Stars: ✭ 49 (-95.33%)
Mutual labels:  ux
Crossterm
Cross platform terminal library rust
Stars: ✭ 1,023 (-2.57%)
Mutual labels:  cursor

Control User Cursor.

Small experiment to alter the cursor behavior.

control-user-cursor

How it works?

I make the user cursor invisible, and then paint my own cursor with JS! The :hover styles are also fake.

Most of the math is here https://github.com/javierbyte/control-user-cursor/blob/master/index.js#L134

Usage

As this was only planned to be a demo, the current API is kinda rough:

ControlUserCursor({
  el: {
    buttonToPrevent: {
      behavior: 'REPEL',
      el: document.querySelector('.element-to-repel')
    },
    buttonToAttract: {
      behavior: 'ATTRACT',
      el: document.querySelector('.element-to-attract')
    }
  }
});

This will replace the real cursor with the fake one and activate the 'repel' and 'attract' behavior on the selected dom elements.

Roadmap?

I would like to update the API to be like this:

// initiate cursor control
ControlUserCursor()
	.repel('repel', document.querySelector('.el-to-repel'))
	.repel('repel', document.querySelector('.other-el-to-repeal'))
	.attract('attract-buy', document.querySelector('.el-to-attract'));

// stop `document.querySelector('.el-to-repel')` control
controlUserCursor.stop('repel');

// once there all the controls are stopped, the fake cursor disappears
controlUserCursor.stopAll();
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].