2.14.0
Animations 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
|
in="none"
in="fade-in"
in="slide-down"
in="fade-in-slide-up"
in="fade-in-slide-down"
in="fade-in-slide-left"
in="fade-in-slide-right"
in="fade-in-fade-out"
out="none"
out="fade-out"
out="fade-out-slide-up"
out="slide-up"
out="fade-out-slide-down"
out="fade-out-slide-left"
out="fade-out-slide-right"