-
Notifications
You must be signed in to change notification settings - Fork 211
/
demo.html
51 lines (43 loc) · 1.16 KB
/
demo.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
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Blur.js</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js'></script>
<script type='text/javascript' src='blur.js'></script>
<style type='text/css'>
body{
margin:0;padding:0;
color:#fff;
font-family:arial;
text-shadow:0 2px 2px #000;
background:top left no-repeat;
background-image:url('pencils.jpeg');
}
.circle{
margin:0 auto;
-webkit-box-shadow:0 2px 2px #000, 0 1px 0 #fff inset;
-moz-box-shadow:0 2px 2px #000, 0 1px 0 #fff inset;
box-shadow:0 2px 2px #000, 0 1px 0 #fff inset;
width:255px;
height:255px;
-webkit-border-radius:127px;
-moz-border-radius:127px;
border-radius:127px;
cursor:move;
}
</style>
</head>
<body>
<div class="circle"></div>
<script type="text/javascript">
$(document).ready(function(){
$('.circle').blurjs({
draggable: true,
overlay: 'rgba(255,255,255,0.1)',
radius:10
});
});
</script>
</body>
</html>