├── README.md
├── index.html
├── main.js
├── particles.json
└── style.css
/README.md:
--------------------------------------------------------------------------------
1 | # Particle-Effect
2 | Particle and TypeWriter Text
3 |
4 | ## How to
5 | 1. Modify the Text. in index.html for desired typewriter and display Text
6 | 2. Modify particles.json for the particles configuration
7 | 3. Modify styles.css for background, text-position, etc.
8 | 4. Run with `Live Server`
9 |
10 | #### Star the repo if it helped you.😀
11 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
13 |
14 |
15 |
Hey there! I'm Apurva. I like
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/main.js:
--------------------------------------------------------------------------------
1 | // const TypeWriter = function(txtElement, words, wait = 3000) {
2 | // this.txtElement = txtElement;
3 | // this.words = words;
4 | // this.txt = '';
5 | // this.wordIndex = 0;
6 | // this.wait = parseInt(wait, 10);
7 | // this.type();
8 | // this.isDeleting = false;
9 | // }
10 |
11 | // // Type Method
12 | // TypeWriter.prototype.type = function() {
13 | // // Current index of word
14 | // const current = this.wordIndex % this.words.length;
15 | // // Get full text of current word
16 | // const fullTxt = this.words[current];
17 |
18 | // // Check if deleting
19 | // if(this.isDeleting) {
20 | // // Remove char
21 | // this.txt = fullTxt.substring(0, this.txt.length - 1);
22 | // } else {
23 | // // Add char
24 | // this.txt = fullTxt.substring(0, this.txt.length + 1);
25 | // }
26 |
27 | // // Insert txt into element
28 | // this.txtElement.innerHTML = `