-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
executable file
·85 lines (57 loc) · 1.88 KB
/
Copy pathmain.js
File metadata and controls
executable file
·85 lines (57 loc) · 1.88 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
Template 2089 Meteor
http://www.tooplate.com/view/2089-meteor
*/
jQuery(document).ready(function($) {
'use strict';
$('.counter').each(function() {
var $this = $(this),
countTo = $this.attr('data-count');
$({ countNum: $this.text()}).animate({
countNum: countTo
},
{
duration: 8000,
easing:'linear',
step: function() {
$this.text(Math.floor(this.countNum));
},
complete: function() {
$this.text(this.countNum);
//alert('finished');
}
});
});
$(".b1").click(function () {
$(".pop").fadeIn(300);
});
$(".b2").click(function () {
$(".pop2").fadeIn(300);
});
$(".b3").click(function () {
$(".pop3").fadeIn(300);
});
$(".pop > span, .pop").click(function () {
$(".pop").fadeOut(300);
});
$(".pop2 > span, .pop2").click(function () {
$(".pop2").fadeOut(300);
});
$(".pop3 > span, .pop3").click(function () {
$(".pop3").fadeOut(300);
});
$(window).on("scroll", function() {
if($(window).scrollTop() > 100) {
$(".header").addClass("active");
} else {
//remove the background property so it comes transparent again (defined in your css)
$(".header").removeClass("active");
}
});
/************** Mixitup (Filter Projects) *********************/
$('.projects-holder').mixitup({
effects: ['fade','grayscale'],
easing: 'snap',
transitionSpeed: 400
});
});