-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
80 lines (70 loc) · 1.29 KB
/
index.js
File metadata and controls
80 lines (70 loc) · 1.29 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
$(".text1 , .text2").hide();
// $(".box1").click(function(){
// if($(this).attr('data-state') === '0')
// {
// $(this).animate({
// width:"100%",
// height:"50%",
// marginLeft:"0.6em",
// });
// $(this).attr('data-state', '1');
// $(".text1").css
// ({
// "marginLeft":"0.6em",
// "background-color":"green",
// "width":"70%"
// })
// $(".text1").slideDown(1000)
// }
//
// else
// {
// $(this).animate({
// width:"5em",
// height:"5em",
// marginLeft:"0em"
//
// });
// $(this).attr('data-state', '0')
// $(".text1").hide();
// } ;
//
// });
$(".box1").click(function(){
$(".text1").toggle(1000);
$(this).toggleClass("biggerImage", 2000, "easeOutCirc");
});
// $(".box2").click(function(){
// if($(this).attr('data-state') === '0')
// {
// $(this).animate({
// width:"100%",
// height:"50%",
// marginLeft:"0.6em",
// });
// $(this).attr('data-state', '1');
// $(".text2").css
// ({
// "marginLeft":"0.6em",
// "background-color":"green",
// "width":"70%"
// })
// $(".text2").slideDown(1000)
// }
//
// else
// {
// $(this).animate({
// width:"50%",
// height:"20%",
// marginLeft:"0em"
//
// });
// $(this).attr('data-state', '0')
// $(".text2").hide();
// } ;
//});
$(".box2").click(function(){
$(".text2").toggle(1000);
$(this).toggleClass("biggerImage", 1600, "easeOutCirc");
});