-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathindex.html
33 lines (30 loc) · 909 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
33
<html>
<head>
<title>Free transform tool for Snap.svg elements</title>
<style type="text/css">
#main-container {
position: fixed;
background-color: #ddd;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<svg id="main-container"></svg>
<script src="snap.svg-min.js"></script>
<script src="snap.svg.free_transform.js"></script>
<script type="text/javascript">
var paper = Snap('#main-container'),
object = paper
.rect(50, 50, 200, 200)
.attr({
cursor: 'move',
fill: '#1e609d'
});
paper.freeTransform(object);
</script>
</body>
</html>