... | @@ -56,4 +56,14 @@ EX: Here is the same card immediately after it's been played onto the board. |
... | @@ -56,4 +56,14 @@ EX: Here is the same card immediately after it's been played onto the board. |
|
.data 1
|
|
.data 1
|
|
```
|
|
```
|
|
|
|
|
|
There is now a `change-data-location='board'` attribute, signifying the move from the hand to the board, a `add-data-summoningsickness='1'` attribute, a `add-data-eligibletoattack='0'` attribute. These can all be used to select for CSS animations. Especially helpful for tying into entry and exit animations. |
|
There is now a `change-data-location='board'` attribute, signifying the move from the hand to the board, a `add-data-summoningsickness='1'` attribute, a `add-data-eligibletoattack='0'` attribute. These can all be used to select for CSS animations. Especially helpful for tying into entry and exit animations.
|
|
\ No newline at end of file |
|
|
|
|
|
## ui: animate
|
|
|
|
|
|
|
|
### Card attributes
|
|
|
|
|
|
|
|
ui: animate action in the effect builder can be used to play complex animations that require javascript. When starting, set the attribute `current-animation`, and keep it for the duration of the animation. For example, the ram animation would set `current-animation=ram`.
|
|
|
|
|
|
|
|
### Writing your own animations
|
|
|
|
|
|
|
|
Users on the enterprise plan can upload their own animations to `/src/animations/` in addition to using the ones provided by Dulst. These animations would then be available in the effect builder, same as the default ones. |
|
|
|
\ No newline at end of file |