slush-angular2
Version:
Slush Generator For Angular2
17 lines (15 loc) • 591 B
text/typescript
import { Directive, HostBinding, HostListener } from '@angular/core';
export class ShadowDirective {
biggie: string = '0 4px 8px 2px #707070';
smalls: string = '0 2px 4px 1px #808080';
tranny: string = 'box-shadow 200ms ease-in-out';
transition = this.tranny;
boxShadow = this.smalls;
onMouseOver () {
this.boxShadow = this.biggie;
}
onMouseOut () {
this.boxShadow = this.smalls;
}
}