Skip to content

Commit 73a6183

Browse files
committed
implement fadeIn animation
1 parent 891b161 commit 73a6183

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/app/app.vm.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<nav-bar router.bind="router"></nav-bar>
44

55
<div class="page-host">
6-
<router-view></router-view>
6+
<router-view swap-order="after"></router-view>
77
</div>
88

99
</template>

src/app/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export async function configure(aurelia: Aurelia): Promise<void> {
7979
*/
8080
.plugin('aurelia-validation')
8181
// Uncomment the line below to enable animation.
82-
// .plugin('aurelia-animator-css');
82+
.plugin('aurelia-animator-css')
8383
// if the css animator is enabled, add swap-order="after" to all router-view elements
8484

8585
// Anyone wanting to use HTMLImports to load views, will need to install the following plugin.

src/scss/_aurelia.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ section {
5959

6060
/* animate page transitions */
6161
section.au-enter-active {
62-
-webkit-animation: fadeInRight 1s;
63-
animation: fadeInRight 1s;
62+
-webkit-animation: fadeIn 1s;
63+
animation: fadeIn 1s;
6464
}
6565

6666
div.au-stagger {

0 commit comments

Comments
 (0)