-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.html
More file actions
92 lines (92 loc) · 2.71 KB
/
test.html
File metadata and controls
92 lines (92 loc) · 2.71 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
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>mixitup</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<style>
img{
max-width: 100%;
height: auto;
}
.filter_trigger {
list-style: none;
padding: 20px 0;
}
.filter_trigger li{
display: inline-block;
padding: 5px 20px;
background: #ddd;
border-radius: 5px;
cursor: pointer;
margin-right: 5px;
}
.filter_trigger li.active{
background: #999;
color: #fff;
}
.all_filter_item .mix{
display: none;
}
.single_item{
position: relative;
margin-bottom: 30px;
}
.single_item h2{
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
color: #fff;
width: 100%;
text-align: center;
margin: 0;
}
</style>
</head>
<body>
<section class="container">
<div class="row">
<div class="col-md-12">
<ul class="filter_trigger">
<li class="filter" data-filter="all">All</li>
<li class="filter" data-filter=".red">Red</li>
<li class="filter" data-filter=".green">Green</li>
<li class="filter" data-filter=".blue">Blue</li>
</ul>
</div>
</div>
<div class="all_filter_item row">
<div class="mix single_item col-md-3 red">
<img src="red.jpg" alt="">
<h2>your red</h2>
</div>
<div class="mix single_item col-md-3 green">
<img src="green.jpg" alt="">
<h2>your green</h2>
</div>
<div class="mix single_item col-md-3 blue">
<img src="blue.jpg" alt="">
<h2>your blue</h2>
</div>
<div class="mix single_item col-md-3 red">
<img src="red.jpg" alt="">
<h2>your red</h2>
</div>
<div class="mix single_item col-md-3 green">
<img src="green.jpg" alt="">
<h2>your green</h2>
</div>
<div class="mix single_item col-md-3 blue">
<img src="blue.jpg" alt="">
<h2>your blue</h2>
</div>
</div>
</section>
<script src="js/jquery-1.10.2.min.js"></script>
<script src="jquery.mixitup.js"></script>
<script>
jQuery('.all_filter_item').mixItUp();
</script>
</body>
</html>