-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.html
executable file
·156 lines (156 loc) · 6.39 KB
/
index.html
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Color Extraction Effect with Vibrant.js</title>
<meta name="description" content="Creating a color palette from images in a fun way using Vibrant.js" />
<meta name="keywords" content="color palette, effect, animation, vibrant.js, extract color, image, web design" />
<meta name="author" content="Codrops" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.3.0/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<script src="js/modernizr.custom.js"></script>
</head>
<body>
<svg viewBox="0 0 640 360" class="hidden">
<filter id="grayscale">
<feColorMatrix type="saturate" values="0"/>
</filter>
</svg>
<div class="container">
<header class="codrops-header">
<div class="codrops-links">
<a class="codrops-icon codrops-icon--prev" href="http://tympanus.net/Development/ImageTiltEffect/" title="Previous Demo"><span>Previous Demo</span></a>
<a class="codrops-icon codrops-icon--drop" href="http://tympanus.net/codrops/?p=24144" title="Back to the article"><span>Back to the Codrops article</span></a>
</div>
<h1>Color Extraction Effect <span>using CSS Filters and Vibrant.js</span></h1>
</header>
<div class="content">
<div id="slider" class="slider">
<div class="slider__item slider__item--current">
<img class="slider__img" src="img/1.jpg" alt="img01" />
</div>
<div class="slider__item">
<img class="slider__img" src="img/2.jpg" alt="img02" />
</div>
<div class="slider__item">
<img class="slider__img" src="img/3.jpg" alt="img03" />
</div>
<div class="slider__item">
<img class="slider__img" src="img/4.jpg" alt="img04" />
</div>
<div class="slider__item">
<img class="slider__img" src="img/5.jpg" alt="img05" />
</div>
<div class="slider__item">
<img class="slider__img" src="img/6.jpg" alt="img06" />
</div>
<div class="slider__item">
<img class="slider__img" src="img/7.jpg" alt="img07" />
</div>
<nav class="slider__nav-wrap">
<button class="slider__nav slider__nav--prev"><i class="fa fa-angle-left"></i><span class="text-hidden">Previous</span></button>
<button class="slider__nav slider__nav--next"><i class="fa fa-angle-right"></i><span class="text-hidden">Next</span></button>
</nav>
</div><!-- /slider -->
<div class="tools">
<button class="button-color"><i class="fa fa-eyedropper"></i><span class="text-hidden">Extract</span></button>
<ul class="palette">
<li class="palette__item">
<div class="palette__inner">
<div class="palette__fill"></div>
<i class="icon fa fa-tint"></i>
<div class="palette__name">
<span class="palette__value palette__value--default">#######</span>
<span class="palette__value palette__value--real">#######</span>
</div>
</div>
<i class="drop drop--1"></i>
<i class="drop drop--2"></i>
<i class="drop drop--3"></i>
<i class="drop drop--4"></i>
</li>
<li class="palette__item">
<div class="palette__inner">
<div class="palette__fill"></div>
<i class="icon fa fa-tint"></i>
<div class="palette__name">
<span class="palette__value palette__value--default">#######</span>
<span class="palette__value palette__value--real">#######</span>
</div>
</div>
<i class="drop drop--1"></i>
<i class="drop drop--2"></i>
<i class="drop drop--3"></i>
<i class="drop drop--4"></i>
</li>
<li class="palette__item">
<div class="palette__inner">
<div class="palette__fill"></div>
<i class="icon fa fa-tint"></i>
<div class="palette__name">
<span class="palette__value palette__value--default">#######</span>
<span class="palette__value palette__value--real">#######</span>
</div>
</div>
<i class="drop drop--1"></i>
<i class="drop drop--2"></i>
<i class="drop drop--3"></i>
<i class="drop drop--4"></i>
</li>
<li class="palette__item">
<div class="palette__inner">
<div class="palette__fill"></div>
<i class="icon fa fa-tint"></i>
<div class="palette__name">
<span class="palette__value palette__value--default">#######</span>
<span class="palette__value palette__value--real">#######</span>
</div>
</div>
<i class="drop drop--1"></i>
<i class="drop drop--2"></i>
<i class="drop drop--3"></i>
<i class="drop drop--4"></i>
</li>
<li class="palette__item">
<div class="palette__inner">
<div class="palette__fill"></div>
<i class="icon fa fa-tint"></i>
<div class="palette__name">
<span class="palette__value palette__value--default">#######</span>
<span class="palette__value palette__value--real">#######</span>
</div>
</div>
<i class="drop drop--1"></i>
<i class="drop drop--2"></i>
<i class="drop drop--3"></i>
<i class="drop drop--4"></i>
</li>
</ul>
</div><!-- /tools -->
</div>
<!-- Related demos -->
<section class="content content--related">
<p>If you enjoyed this demo you might also like:</p>
<a class="media-item" href="http://tympanus.net/Development/InteractiveColoringConcept/">
<img class="media-item__img" src="img/related/ColoringConcept.jpg">
<h3 class="media-item__title">Interactive Coloring Concept </h3>
</a>
<a class="media-item" href="http://tympanus.net/Development/WobblySlideshowEffect/">
<img class="media-item__img" src="img/related/WobblySlideshowEffect.png">
<h3 class="media-item__title">Wobbly Slideshow Effect</h3>
</a>
</section>
<section class="content">
<p><strong>Images by <a href="http://kaboompics.com/">kaboompics.com</a></strong></p>
</section>
</div><!-- /container -->
<script src="js/classie.js"></script>
<script src="js/Vibrant.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>