Skip to content
This repository was archived by the owner on Dec 13, 2019. It is now read-only.

Update transition.md #623

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions source/components/transition.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ animations: [
'bounceOutRight'
]
```
Note: `/quasar.conf.js` already had defined `animations: []`, look for it and modify it as you want instead of adding it again

If you are building a website, you can also skip configuring quasar.conf.js and use a CDN link which points to Animate.css like this (following is just an example, Google for latest link). Remember this will require an Internet connection for your user, as opposed to bundling from within quasar.conf.js.

Expand Down Expand Up @@ -82,3 +83,18 @@ Please note some things in the above example:
2. The components and DOM elements must be keyed, like `key="text"` or `key="email-button"` in the example above.
3. Both examples above have the Boolean property `appear` specified, which makes the entering animation kick in right after component(s) have been rendered. This property is optional.

### Adding Route Transition
To animate routes changes, is necessary to add the property `mode="out-in"`.

```html
<!-- Example with routes transition -->
<transition
appear
mode="out-in"
enter-active-class="animated fadeInLeft"
leave-active-class="animated fadeOutLeft"
>
<router-view></router-view>
</transition>
```