Skip to content

Commit 4587104

Browse files
authored
🎉 Added
1 parent 8e83900 commit 4587104

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
const burst = new mojs.Burst({
2+
count: 10,
3+
left: 0,
4+
top: 0,
5+
children: {
6+
shape: ['circle', 'rect', 'curve', 'polygon'],
7+
fill: ['yellow', 'red', 'green', 'blue'],
8+
degreeShift: 'rand(-360, 360)',
9+
},
10+
duration: 500,
11+
});
12+
13+
const bang = new mojs.Burst({
14+
left: 0,
15+
top: 0,
16+
radius: {1:35},
17+
angle: 45,
18+
count: 8,
19+
children: {
20+
radius: 8,
21+
fill: 'orange',
22+
scale: {1:0, easing: 'sin.in'},
23+
pathScale: [0.7, null],
24+
duration: [500, 700],
25+
degreeShift: [13, null],
26+
},
27+
});
28+
29+
const circle = new mojs.Shape({
30+
left: 0,
31+
top: 0,
32+
strokeWidth: 8,
33+
fill: 'none',
34+
radius: 80,
35+
scale: {0:1},
36+
opacity: {0.5:0},
37+
shape: 'circle',
38+
stroke: '#333',
39+
strokeWidth: 8,
40+
fill: 'none',
41+
duration: 500,
42+
});
43+
44+
document.onclick = (e) => {
45+
const position = { x: e.pageX, y: e.pageY };
46+
47+
circle.tune(position);
48+
circle.replay();
49+
50+
burst.tune(position);
51+
burst.replay();
52+
53+
bang.tune(position);
54+
bang.replay();
55+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
************************
3+
** About Me Container **
4+
************************
5+
*/
6+
ScrollReveal({
7+
reset: false
8+
}).reveal('#aboutMeContainer', {
9+
delay: 100,
10+
distance: '150px',
11+
origin: 'top',
12+
});
13+
14+
/*
15+
**********************
16+
** Skills Container **
17+
**********************
18+
*/
19+
ScrollReveal({
20+
reset: false
21+
}).reveal('#skillsContainer', {
22+
delay: 100,
23+
distance: '150px',
24+
origin: 'top',
25+
});
26+
27+
/*
28+
**********************
29+
** Projects Container **
30+
**********************
31+
*/
32+
ScrollReveal({
33+
reset: false
34+
}).reveal('#projectsContainer', {
35+
delay: 100,
36+
distance: '150px',
37+
origin: 'top',
38+
});
39+
40+
/*
41+
************************
42+
** Reach Me Container **
43+
************************
44+
*/
45+
ScrollReveal({
46+
reset: false
47+
}).reveal('#reachMeContainer', {
48+
delay: 100,
49+
distance: '150px',
50+
origin: 'top',
51+
});

0 commit comments

Comments
 (0)