javierbyte / Control User Cursor
Alter user cursor behavior. Simulates users cursor and can apply transformations to it.
Stars: β 1,050
Programming Languages
javascript
184084 projects - #8 most used programming language
js
455 projects
Labels
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
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
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
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
Control User Cursor.
Small experiment to alter the cursor behavior.
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].