-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
44 lines (35 loc) · 1.39 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$(document).ready(function() {
$('.start').removeClass('start');
});
setTimeout(
function()
{
$(document).ready(function() {
$( "#hand, #hiWord" ).addClass( "disappear");
});
}, 1500);
setTimeout(
function()
{
$(document).ready(function() {
$( '.hide' ).removeClass( 'hide');
});
$(document).ready(function() {
$('#hi').remove();
});
}, 3000);
/*good explanation for on scroll animation:*/
/*https://coolcssanimation.com/how-to-trigger-a-css-animation-on-scroll/*/
const observer = new IntersectionObserver(entries => {
entries.forEach(entry => {
if (entry.isIntersecting) {
document.querySelector("#wpfskill").classList.add("bar","wpf");
document.querySelector("#csharpskill").classList.add("bar","csharp");
document.querySelector("#jsskill").classList.add("bar","js");
document.querySelector("#cssskill").classList.add("bar","css");
document.querySelector("#sqlskill").classList.add("bar","sql");
return;
}
});
});
observer.observe(document.querySelector('#wpfskill'));