TemporaryStateController
Purpose
Temporarily apply a state to an attribute of an element, and restore it back after a given time.
Actions
| Action | Purpose |
|---|---|
- | - |
Targets
| Target | Purpose | Default |
|---|---|---|
- | - | - |
Classes
| Class | Purpose | Default |
|---|---|---|
- | - | - |
Values
| Value | Type | Description | Default |
|---|---|---|---|
attribute | String | The DOM element attribute name, or attribute path that Lodash.get accepts. I.e. dataset.foo, className | - |
seconds | Number | The number of seconds to leave the properties applied for | - |
value | String | The value to apply to the given attribute | - |
Events
| Event | When | Dispatched on | event.detail |
|---|---|---|---|
- | - | - | - |
Side Effects
None