This addon provides a {{delay-class-add}} and {{delay-class-remove}} element modifier to modify element's class after a specified duration.
- Ember.js v3.12 or above
- Ember CLI v2.13 or above
- Node.js v10 or above
ember install ember-delay-class-modifier
Both modifiers (delay-class-add
, delay-class-remove
) accept a mandatory first parameter of the class you want to add, and a second optional parameter of the delay (in milliseconds) until the class is added. If a delay is not specified, the default 1000
will be used.
See the Contributing guide for details.
This project is licensed under the MIT License.