Commit d03db7d029ba6d88c3a64f5c82b21e9a7670b6c2

Authored by Geoffrey PREUD'HOMME
1 parent 501a9b80

Ajout d'animations de changement de page

@@ -9,6 +9,7 @@ @@ -9,6 +9,7 @@
9 "jsencrypt": "~2.1.0", 9 "jsencrypt": "~2.1.0",
10 "animate.css": "~3.2.6", 10 "animate.css": "~3.2.6",
11 "remarkable-bootstrap-notify": "~3.0.1", 11 "remarkable-bootstrap-notify": "~3.0.1",
12 - "angular-ladda": "~0.2.2" 12 + "angular-ladda": "~0.2.2",
  13 + "angular-animate": "~1.3.15"
13 } 14 }
14 } 15 }
public/css/style.css
@@ -6,10 +6,26 @@ body { @@ -6,10 +6,26 @@ body {
6 padding-top: 50px; 6 padding-top: 50px;
7 } 7 }
8 8
9 -#membre-list {  
10 - width: 90%;  
11 -}  
12 -  
13 [data-notify="title"] { 9 [data-notify="title"] {
14 display: block; 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 +}
1 -angular.module('ciApp', ['ngRoute', 'SessionsCtrl', 'ConnectCtrl', 'MembreCtrl']).config(['$routeProvider', '$locationProvider', 1 +angular.module('ciApp', ['ngRoute', 'ngAnimate', 'SessionsCtrl', 'ConnectCtrl', 'MembreCtrl']).config(['$routeProvider', '$locationProvider',
2 function ($routeProvider, $locationProvider) { 2 function ($routeProvider, $locationProvider) {
3 $routeProvider 3 $routeProvider
4 .when('/', { 4 .when('/', {
public/views/index.html
@@ -13,6 +13,7 @@ @@ -13,6 +13,7 @@
13 <script src="libs/jquery/dist/jquery.min.js"></script> 13 <script src="libs/jquery/dist/jquery.min.js"></script>
14 <script src="libs/angular/angular.min.js"></script> 14 <script src="libs/angular/angular.min.js"></script>
15 <script src="libs/angular-route/angular-route.min.js"></script> 15 <script src="libs/angular-route/angular-route.min.js"></script>
  16 + <script src="/libs/angular-animate/angular-animate.js"></script>
16 <script src="libs/angular-bootstrap/ui-bootstrap.min.js"></script> 17 <script src="libs/angular-bootstrap/ui-bootstrap.min.js"></script>
17 <script src="libs/jsencrypt/bin/jsencrypt.min.js"></script> 18 <script src="libs/jsencrypt/bin/jsencrypt.min.js"></script>
18 <script src="libs/remarkable-bootstrap-notify/bootstrap-notify.min.js"></script> 19 <script src="libs/remarkable-bootstrap-notify/bootstrap-notify.min.js"></script>
@@ -48,7 +49,9 @@ @@ -48,7 +49,9 @@
48 </div> 49 </div>
49 </div> 50 </div>
50 </nav> 51 </nav>
51 - <div ng-view></div> 52 + <div id="ngViewAnimationContainer">
  53 + <div ng-view></div>
  54 + </div>
52 </div> 55 </div>
53 </body> 56 </body>
54 57