vsn 0.1.120 → 0.1.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/demo/silly-animations.html +39 -0
- package/demo/vsn.js +2 -2
- package/dist/AST/ModifierNode.js +3 -1
- package/dist/AST/ModifierNode.js.map +1 -1
- package/dist/AST/Node.d.ts +3 -1
- package/dist/AST/Node.js +9 -0
- package/dist/AST/Node.js.map +1 -1
- package/dist/AST/WithNode.d.ts +1 -0
- package/dist/AST/WithNode.js +51 -10
- package/dist/AST/WithNode.js.map +1 -1
- package/dist/AST.d.ts +1 -1
- package/dist/AST.js +15 -4
- package/dist/AST.js.map +1 -1
- package/dist/Scope.js +5 -1
- package/dist/Scope.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/AST/ModifierNode.ts +3 -1
- package/src/AST/Node.ts +11 -1
- package/src/AST/WithNode.ts +27 -4
- package/src/AST.ts +13 -4
- package/src/Scope.ts +6 -1
- package/src/version.ts +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>VSN Post Replace Test</title>
|
|
6
|
+
<style>
|
|
7
|
+
.test {
|
|
8
|
+
transition: all 1s;
|
|
9
|
+
}
|
|
10
|
+
</style>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<ul>
|
|
14
|
+
<li class="test test-1" id="test-1">Test 1</li>
|
|
15
|
+
<li class="test test-2">Test 2</li>
|
|
16
|
+
<li class="test test-1">Test 3</li>
|
|
17
|
+
</ul>
|
|
18
|
+
<script type="text/javascript" src="vsn.js"></script>
|
|
19
|
+
<script type="text/vsn" vsn-script|defer>
|
|
20
|
+
with ?(.test) {
|
|
21
|
+
$opacity = 0;
|
|
22
|
+
wait(1);
|
|
23
|
+
$opacity = 1;
|
|
24
|
+
wait(1);
|
|
25
|
+
$opacity = 0.5;
|
|
26
|
+
}
|
|
27
|
+
wait(1);
|
|
28
|
+
with|sequential ?(.test) {
|
|
29
|
+
$opacity = 0;
|
|
30
|
+
wait(0.25);
|
|
31
|
+
$opacity = 1;
|
|
32
|
+
}
|
|
33
|
+
a = {'b':1};
|
|
34
|
+
with a {
|
|
35
|
+
log(b);
|
|
36
|
+
}
|
|
37
|
+
</script>
|
|
38
|
+
</body>
|
|
39
|
+
</html>
|