-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
39 lines (38 loc) · 1.09 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
$(window).load(function () {
$('.loading').delay(3000).fadeOut(300);
$('.home').delay(3000).fadeIn();
});
$(function(){
$('.bars-text').hover(
function(){
$('.bars-text').css('background-color','rgba(102, 101, 101, 1.0)');
},
function(){
$('.bars-text').css('background-color','rgba(102, 101, 101, 0.7)');
}
);
$('.heart').click(function(){
if($('.heart').hasClass('like')){
$('.heart').removeClass('like');
$('.like-contents').show().slideUp('fast');
}
else{
$('.heart').addClass('like');
$('.like-contents').slideDown('fast').show();
}
});
$('.bars-text').click(function(){
$('.menu').animate({
'right':'0%'
},1000);
});
$('.back').click(function(){
$('.menu').animate({
'right':'-23%'
},1000);
});
var label = $(this).next('label')
$('.transform').focus(function() {
$(this).next('label').addClass('up')
});
});