Skip to main content

TemporaryStateController

Purpose​

Temporarily apply a state to an attribute of an element, and restore it back after a given time.

Actions​

ActionPurpose
--

Targets​

TargetPurposeDefault
---

Classes​

ClassPurposeDefault
---

Values​

ValueTypeDescriptionDefault
attributeStringThe DOM element attribute name, or attribute path that Lodash.get accepts. I.e. dataset.foo, className-
secondsNumberThe number of seconds to leave the properties applied for-
valueStringThe value to apply to the given attribute-

Events​

EventWhenDispatched onevent.detail
----

Side Effects​

None

How to Use​