@@ -37,17 +37,43 @@ not-dismissable| Boolean | false | will be not close on click outside of menu (o
3737close-on-click | Boolean | false | will be closed on click inside of menu
3838click-to-toggle | Boolean | false | opens on click instead of hover
3939is-opened | Boolean | false | (two-way) set to open / close
40- transition | String | - | name of vue transition
40+ transition | String | - | name of a vue transition. [ Detailed description ] ( #transition )
4141
4242#### Events
4343Name | description
4444---:| ---
45- before-open | will be called before open animation
46- opened | will be called when opened
47- before-close | will be called before close animation
48- closed | will be called when closed
45+ before-enter | will be called before open animation
46+ after-enter | will be called when opened
47+ before-leave | will be called before close animation
48+ after-leave | will be called when closed
4949
50- When a transition is given, it must emit the ` opened ` and ` closed ` events.
50+ #### Transition
51+
52+ You can provide a vue transition like this:
53+ ``` js
54+ Vue .transition (" fade" ,{
55+ // your transition
56+ })
57+ // or in the instance:
58+ transitions: {
59+ fade: {
60+ // your transition
61+ }
62+ }
63+ // usage:
64+ template: " <fab transition='fade'></fab>"
65+ ```
66+
67+
68+ ## Changelog
69+
70+ - 1.1.0
71+ moved transition to ` vue-transitions ` properly
72+ events are renamed after vue transitions
73+
74+ - 1.0.0
75+ moved transition to ` vue-transitions `
76+ changed element from ` span ` to ` a `
5177
5278# Development
5379Clone repository.
@@ -57,11 +83,6 @@ npm run dev
5783```
5884Browse to ` http://localhost:8080/ ` .
5985
60- ## Changelog
61- - 1.0.0
62- moved transition to ` vue-transitions `
63- changed element from ` span ` to ` a `
64-
6586## License
6687Copyright (c) 2016 Paul Pflugradt
6788Licensed under the MIT license.
0 commit comments