MCPcopy Create free account
hub / github.com/codrops/TypeShuffleAnimation / trigger

Method trigger

src/js/typeShuffle.js:396–400  ·  view source on GitHub ↗

* call the right effect method (defined in this.effects) * @param {string} effect - effect type

(effect = 'fx1')

Source from the content-addressed store, hash-verified

394 * @param {string} effect - effect type
395 */
396 trigger(effect = 'fx1') {
397 if ( !(effect in this.effects) || this.isAnimating ) return;
398 this.isAnimating = true;
399 this.effects[effect]();
400 }
401}

Callers 1

index.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected