Skip to content

Commit

Permalink
added a note about dynamic transitions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Solodovnikov authored and kazupon committed Mar 24, 2016
1 parent 4de8f46 commit 4c1a61b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/guide/transitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,22 @@ Vue.js のトランジション (Transition) システムを使用すると、DO
}
```

動的に命名されたトランジションを使用できます:
動的なバインディングを使用することによって、同じ要素で異なるトランジションを実現することができます:

``` html
```html
<div v-if="show" :transition="transitionName">hello</div>
```

```js
new Vue({
el: '...',
data: {
show: false,
transitionName: 'fade'
}
})
```

加えて、JavaScript フックを提供できます。

``` js
Expand Down

0 comments on commit 4c1a61b

Please sign in to comment.