How to use the velocity.RegisterEffect function in velocity

To help you get started, we’ve selected a few velocity examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gooy / aurelia-animator-velocity / dist / es6 / animator.js View on Github external
registerEffect(name,props){
    if(name[0] === ":") {
      if(typeof props === "string"){
        this.effects[name] = props;
      }else{
        throw new Error("second parameter must be a string when registering aliases");
      }
    }else{
      Velocity.RegisterEffect(name,props);
    }
    return this;
  }
github gooy / aurelia-animator-velocity / src / animator.js View on Github external
registerEffect(name,props){
    if(name[0] === ":") {
      if(typeof props === "string"){
        this.effects[name] = props;
      }else{
        throw new Error("second parameter must be a string when registering aliases");
      }
    }else{
      Velocity.RegisterEffect(name,props);
    }
    return this;
  }