-
Notifications
You must be signed in to change notification settings - Fork 35
/
index.html
32 lines (31 loc) · 818 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>blurify</title>
<style>
img {
width: 100%;
}
</style>
</head>
<body>
<div class="blurify-container">
<img data-src="./test/1.jpg" class="blurify">
<img data-src="./test/2.jpg" class="blurify">
</div>
<script src="dist/blurify.js"></script>
<script>
(function () {
blurify({
images: document.querySelectorAll('.blurify'),
blur: 6,
mode: 'auto',
});
// blurify(6, document.querySelectorAll('.blurify'));
})();
</script>
</body>
</html>