DEV Community

SteinarV-design
SteinarV-design

Posted on

Random positioning of particle emitter on screen with vanilla Javascript and GSAP.

About GSAP

GSAP (GreenSock Animation Platform) is a robust
high-performance JavaScript animation library.
Read more at: https://greensock.com/docs/

The html-file

Html

Javascript-files

Javascript-1

Javascript-2

Diagram

SVG area

SVG code detail

SVG code

About Codepen

"Codepen" - https://codepen.io/ - is a social development environment - an online code editor for developers of any skill - that allows people to write code in the browser, and see the results of it as they build. Codepen is particularly useful for people learning to code.

View the full code for this pen at https://codepen.io/steinarV/pen/qByZGWw

Here is a link to my blog: https://steinarv.design/blog

Thanks for watching !

Top comments (0)