2.18.0Animations for Bolt Design System
<bolt-animate in="fade-in"> ...</bolt-animate>
Note: when assigning component props as HTML attributes on a web component, make sure to use kebab-case.
| Prop Name | Description | Type | Default Value | Option(s) |
|---|---|---|---|---|
|
|
string
|
hidden
|
|
|
|
|
string
|
none
|
|
|
|
|
Set in milliseconds |
number
|
500
|
|
|
|
Set in milliseconds |
number
|
0
|
|
|
|
string
|
ease
|
|
|
|
|
number
|
1
|
|
|
|
|
string
|
none
|
|
|
|
|
Set in milliseconds |
number
|
500
|
|
|
|
Set in milliseconds |
number
|
0
|
|
|
|
string
|
none
|
|
|
|
|
Set in milliseconds |
number
|
350
|
|
|
|
Set in milliseconds |
number
|
0
|
|
|
|
string
|
ease
|
|
|
|
|
number
|
1
|
|
|
|
|
boolean
|
false
|
|
| Name | Required? | Description |
|---|---|---|
default
|
No | wrapped content to animate |
| Name | Description |
|---|---|
triggerAnimIn() => boolean
|
start the in animation, will go to idle animation after
|
triggerAnimOut() => boolean
|
start the out animation
|
| Name | Detail | Description |
|---|---|---|
bolt-animate:end:in
|
{}
|
Indicates when the in animation concluded
|
bolt-animate:end:out
|
{}
|
Indicates when the out animation concluded
|