[IMP] allow to combine t-transition and t-widget

Closes #94
This commit is contained in:
Aaron Bohy
2019-05-20 10:45:26 +02:00
parent 59f401303a
commit 639908366a
6 changed files with 263 additions and 21 deletions
+5 -3
View File
@@ -497,10 +497,10 @@ directive is there to help.
Whenever a node has a `t-transition` directive, with a `name` value, the following
will happen:
At node creation:
At node insertion:
- the css classes `name-enter` and `name-enter-active` will be added before the
node is added to the DOM,
- the css classes `name-enter` and `name-enter-active` will be added directly
when the node is inserted into the DOM,
- on the next animation frame: the css class `name-enter` will be removed and the
class `name-enter-to` will be added (so they can be used to trigger css
transition effects),
@@ -535,6 +535,8 @@ For example, a simple fade in/out effect can be done with this:
}
```
The `t-transition` directive can be combined with `t-widget`.
Note: more information on animations are available [here](doc/animations.md).
### `t-mounted` directive