-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
67 lines (65 loc) · 1.77 KB
/
index.js
File metadata and controls
67 lines (65 loc) · 1.77 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
new GitHubCalendar(".calendar", "jakewski");
$("#life").click(function() {
$("html, body").animate(
{
scrollTop: $("#early").offset().top
},
1000
);
return false;
});
$("#compsci").click(function() {
$("html, body").animate(
{
scrollTop: $("#CS").offset().top
},
1000
);
return false;
});
$("#software").click(function() {
$("html, body").animate(
{
scrollTop: $("#SE").offset().top
},
1000
);
return false;
});
$("#hmu").click(function() {
$("html, body").animate(
{
scrollTop: $("#contact").offset().top
},
1000
);
});
$("#earlysection").css("visibility", "");
$("#early").addClass("animated fadeInLeft");
$("#earlysection *").addClass("animated fadeIn");
$(window).scroll(function() {
var scroll = $(window).scrollTop();
// if (scroll > $("#early").offset().top - window.innerHeight) {
// $("#earlysection").css("visibility", "");
// $("#early").addClass("animated fadeInLeft");
// $("#earlysection *").addClass("animated fadeIn");
// }
if (scroll > $("#CS").offset().top - window.innerHeight - 100) {
$("#compsection").css("visibility", "");
$("#CS").addClass("animated fadeInLeft");
$("#compsection *").addClass("animated fadeIn");
}
if (scroll > $("#SE").offset().top - window.innerHeight - 100) {
$("#casual *").css("visibility", "");
$("#SE").addClass("animated fadeInLeft");
$("#casual *").addClass("animated fadeIn");
}
if (scroll > $("#professional").offset().top - window.innerHeight - 100) {
$("#professional").css("visibility", "");
$("#professional *").addClass("animated fadeIn");
}
if (scroll > $("#contact").offset().top - window.innerHeight - 100) {
$("#contact").addClass("animated bounceInUp");
}
position = scroll;
});