forked from HackDavis/hackdavis.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
46 lines (39 loc) · 1.17 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
45
46
$(document).ready(function (){
$("#clickSponsors > a").click(function (){
$('html, body').animate({
scrollTop: $(".ponsors").offset().top
}, 500);
});
$("#clickFAQ > a").click(function (){
$('html, body').animate({
scrollTop: $(".faq").offset().top
}, 500);
});
$("#clickSchedule > a").click(function (){
$('html, body').animate({
scrollTop: $(".schedule").offset().top
}, 500);
});
$("#clickAbout > a").click(function (){
$('html, body').animate({
scrollTop: $(".about").offset().top
}, 500);
});
$("#clickHome > a").click(function (){
$('html, body').animate({
scrollTop: $("body").offset().top
}, 500);
});
var interval = null;
var counter = 0;
clearInterval(interval);
// continuous rotation
interval = setInterval(function(){
counter -= 1;
$(".heart-logo").css({
MozTransform: 'rotate(-' + -counter + 'deg)',
WebkitTransform: 'rotate(' + -counter + 'deg)',
transform: 'rotate(' + -counter + 'deg)'
});
}, 50);
});