0.0.20 • Published 1 year ago
scatter-letters v0.0.20
🔠 Scatter Letters
The text is scattered when the mouse passes over it.
No PeerDependency! High performance!
🎥 Youtube Demo : https://www.youtube.com/watch?v=eVliGZLmwks&feature=youtu.be
This project was created with inspiration from watching Interactive Developer Kim Jong-min's YouTube.
Usage
new ScatterLetters(strs[,options])
example
window.onload = () => {
new ScatterLetters("AIC DB GFJ", {
sparkLevel: 11,
comebackSpeed: 1,
mouseThickness: 15,
color: "#30e080",
flyingDotColor: "#e81831",
blankWidth: 17,
letterSpacing: 4,
fontSize: 16,
top: 310,
left: 160,
});
};
Strings can contain up to 30 characters. (Alphabet and space only, converted to upper case)
All options are not required.
Key | discription | default |
---|---|---|
sparkLevel | Intensity of the spark that spreads when the mouse passes | 6 |
comebackSpeed | Speed at which points return | 4 |
mouseThickness | Extent to which a point is affected when the mouse passes over it | 12 |
color | Color of immobile dots | "#000000" |
flyingDotColor | Color of the scattered dots. It changes slightly to the basic color. | "#00FF00" |
blankWidth | Blank Width | 10 |
letterSpacing | Letter Spacing | 3 |
fontSize | Font Size | 20 |
top | Margin Top | 0 |
left | Margin Left | 0 |
0.0.20
1 year ago
0.0.19
1 year ago
0.0.18
1 year ago
0.0.17
1 year ago
0.0.16
1 year ago
0.0.15
1 year ago
0.0.14
1 year ago
0.0.13
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago