-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (71 loc) · 1.93 KB
/
index.html
File metadata and controls
72 lines (71 loc) · 1.93 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html ng-app="app">
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<script src="node_modules/angular/angular.js"></script>
<script src="node_modules/angular-animate/angular-animate.min.js"></script>
<script src="node_modules/angular-route/angular-route.min.js"></script>
<script src="js/app.js"></script>
<style>
body,h1{
padding: 0;
margin: 0;
}
html,body,.ng-scope{
width: 100%;
height: 100%;
}
h1{
display: block;
height: 100%;
width: 100%;
}
.abc{
background: blue;
}
.def{
background: red;
}
.ABC{
background: blueviolet;
}
.container{
position: absolute;
width: 100%;
}
.container.ng-enter,.container.ng-leave{
-webkit-transition: 1s ease all;
transition: 1s ease all;
}
.container.ng-enter {
-webkit-transform: translate3d(100%, 0, 0);
}
.container.ng-leave.ng-leave-active {
-webkit-transform: translate3d(100%, 0, 0);
}
.back.container.ng-enter {
-webkit-transform: translate3d(-100%, 0, 0);
}
.back.container.ng-leave.ng-leave-active {
-webkit-transform: translate3d(-100%, 0, 0);
}
.container.ng-leave,
.container.ng-enter.ng-enter-active {
-webkit-transform: translate3d(0, 0, 0);
}
</style>
</head>
<body>
<div>
<a href="#/abc">abc</a>
<a href="#/blog">blog</a>
<a href="#/ABC">ABC</a>
</div>
<div class="viewWrap" ng-controller="viewCtrl">
{{isBack}}
<div ng-class="{back:isBack}" class="container" ng-view></div>
</div>
</body>
</html>