Commit d03db7d029ba6d88c3a64f5c82b21e9a7670b6c2
1 parent
501a9b80
Ajout d'animations de changement de page
Showing
4 changed files
with
27 additions
and
7 deletions
Show diff stats
bower.json
public/css/style.css
... | ... | @@ -6,10 +6,26 @@ body { |
6 | 6 | padding-top: 50px; |
7 | 7 | } |
8 | 8 | |
9 | -#membre-list { | |
10 | - width: 90%; | |
11 | -} | |
12 | - | |
13 | 9 | [data-notify="title"] { |
14 | 10 | display: block; |
15 | 11 | } |
12 | + | |
13 | +#ngViewAnimationContainer { | |
14 | + position: relative; | |
15 | +} | |
16 | + | |
17 | +[ng-view].ng-enter { | |
18 | + position: absolute; | |
19 | + -webkit-animation: zoomIn 0.5s; | |
20 | + animation: zoomIn 0.5s; | |
21 | +} | |
22 | + | |
23 | +[ng-view].ng-leave { | |
24 | + position: absolute; | |
25 | + -webkit-animation: fadeOutDown 0.5s; | |
26 | + animation: fadeOutDown 0.5s; | |
27 | +} | |
28 | + | |
29 | +#membre-list { | |
30 | + width: 90%; | |
31 | +} | ... | ... |
public/js/app.js
1 | -angular.module('ciApp', ['ngRoute', 'SessionsCtrl', 'ConnectCtrl', 'MembreCtrl']).config(['$routeProvider', '$locationProvider', | |
1 | +angular.module('ciApp', ['ngRoute', 'ngAnimate', 'SessionsCtrl', 'ConnectCtrl', 'MembreCtrl']).config(['$routeProvider', '$locationProvider', | |
2 | 2 | function ($routeProvider, $locationProvider) { |
3 | 3 | $routeProvider |
4 | 4 | .when('/', { | ... | ... |
public/views/index.html
... | ... | @@ -13,6 +13,7 @@ |
13 | 13 | <script src="libs/jquery/dist/jquery.min.js"></script> |
14 | 14 | <script src="libs/angular/angular.min.js"></script> |
15 | 15 | <script src="libs/angular-route/angular-route.min.js"></script> |
16 | + <script src="/libs/angular-animate/angular-animate.js"></script> | |
16 | 17 | <script src="libs/angular-bootstrap/ui-bootstrap.min.js"></script> |
17 | 18 | <script src="libs/jsencrypt/bin/jsencrypt.min.js"></script> |
18 | 19 | <script src="libs/remarkable-bootstrap-notify/bootstrap-notify.min.js"></script> |
... | ... | @@ -48,7 +49,9 @@ |
48 | 49 | </div> |
49 | 50 | </div> |
50 | 51 | </nav> |
51 | - <div ng-view></div> | |
52 | + <div id="ngViewAnimationContainer"> | |
53 | + <div ng-view></div> | |
54 | + </div> | |
52 | 55 | </div> |
53 | 56 | </body> |
54 | 57 | ... | ... |