This repository has been archived by the owner on Nov 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathblocks_2.html
60 lines (47 loc) · 2.04 KB
/
blocks_2.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
<!DOCTYPE html>
<html >
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.css" />
<link rel="stylesheet" href="./css/blocks.css">
</head>
<body>
<div ng-app="AnimationChainsApp" ng-controller="AnimationController">
<button class="btn btn-default" ng-click="animate()" ng-disabled="animating">
Start Animations
</button>
<button class="btn btn-default" ng-click="reset()" ng-disabled="animating">
Reset
</button>
<span style="padding-left:30px;">Duration = {{ elapsedTime }} msecs.</span>
<hr />
<status-table progress="progress.purple"></status-table>
<div class="block purple"></div>
<hr>
<status-table progress="progress.orange"></status-table>
<div class="block orange"></div>
<hr />
<p>
This Demo #2 Animation uses a custom $timeline Service with a animation data model.<br/>
<br/>
The controller uses `$timeline()` to lookup the animation, register callbacks and<br/>
The animation service $timeline creates the sequence chain.<br/>
<br/>
Pro: Databinding is used to update the status-table details<br/>
Pro: Directives know nothing about animations<br/>
<br/>
Con: The process to build a sequence chain is hardcoded in the Service layer<br/>
Con: The animation sequence details are hard-coded in the Service layer<br/>
<br/>
</p>
</div>
<!-- vendor -->
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/1.15.0/TweenMax.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.8/angular.min.js"></script>
<!-- app -->
<script type="text/javascript" src="../libs/angularjs-gsap/supplant.js"></script>
<script type="text/javascript" src="./js/blocks_2.js"></script>
<script type="text/javascript" src="./js/statusTable.js"></script>
</body>
</html>