r/learnjavascript • u/frank0117 • Apr 02 '21
Particle text effect with randomly generated images from a sprite sheet (+ source code)
13
u/AegzRoxolo Apr 02 '21
Wow! This is so friggin cool. Does it increase the load time of a webpage by a lot?
9
u/frank0117 Apr 02 '21
Hi, it's an interactive particle effect so it always loads fast, there isn't much to load, but can be demanding on computer performance, if you use too many particles.
3
1
u/toastertop Apr 02 '21
what did you find to be the upper bound for particles before perf hit and on what time of rig?
9
u/jsantasalo Apr 02 '21
I work 99% time with NodeJS, but will definitely take a look. Thx for sharing!
7
u/frank0117 Apr 02 '21
I only ever tried NodeJS once for a REST API project, I'm mostly frontend but need to learn backend eventually :D
4
Apr 02 '21
Brilliant, as always! I wish I had more time to try a bunch of this, but I'm elbow deep creating my portfolio and linked projects. But I saved it so I can try in a bit, thanks!
3
3
2
2
2
2
11
u/frank0117 Apr 02 '21
I took certain % of particles and replaced them with images at random coordinates in my custom sprite sheet. Thought it looked interesting, what do you think?
Particle text tutorial with more examples: https://youtu.be/XGioNBHrFU4
Live demo:
https://codepen.io/franksLaboratory/pen/ZELLgbJ