@@ -12,7 +12,7 @@ import {
1212 Transform ,
1313} from '@fortawesome/fontawesome-svg-core' ;
1414import { faWarnIfParentNotExist } from '../shared/errors/warn-if-parent-not-exist' ;
15- import { FaProps } from '../shared/models/props.model' ;
15+ import { AnimationProp , FaProps } from '../shared/models/props.model' ;
1616import { faClassList } from '../shared/utils/classlist.util' ;
1717import { FaLayersComponent } from './layers.component' ;
1818
@@ -46,8 +46,21 @@ export class FaLayersTextComponent implements OnChanges {
4646 * This input is deprecated since 0.12.0 and will be removed in 0.13.0.
4747 */
4848 @Input ( ) classes ?: string [ ] = [ ] ;
49- @Input ( ) spin ?: boolean ;
50- @Input ( ) pulse ?: boolean ;
49+
50+ /**
51+ * @deprecated This input was incorrectly exposed and never worked correctly. To be removed in 0.14.0.
52+ */
53+ @Input ( ) set spin ( value : boolean ) {
54+ this . animation = value ? 'spin' : undefined ;
55+ }
56+
57+ /**
58+ * @deprecated This input was incorrectly exposed and never worked correctly. To be removed in 0.14.0.
59+ */
60+ @Input ( ) set pulse ( value : boolean ) {
61+ this . animation = value ? 'spin-pulse' : undefined ;
62+ }
63+
5164 @Input ( ) flip ?: FlipProp ;
5265 @Input ( ) size ?: SizeProp ;
5366 @Input ( ) pull ?: PullProp ;
@@ -59,6 +72,8 @@ export class FaLayersTextComponent implements OnChanges {
5972
6073 @HostBinding ( 'innerHTML' ) renderedHTML : SafeHtml ;
6174
75+ private animation : AnimationProp ;
76+
6277 constructor ( @Optional ( ) private parent : FaLayersComponent , private sanitizer : DomSanitizer ) {
6378 faWarnIfParentNotExist ( this . parent , 'FaLayersComponent' , this . constructor . name ) ;
6479 }
@@ -76,8 +91,7 @@ export class FaLayersTextComponent implements OnChanges {
7691 protected buildParams ( ) : TextParams {
7792 const classOpts : FaProps = {
7893 flip : this . flip ,
79- spin : this . spin ,
80- pulse : this . pulse ,
94+ animation : this . animation ,
8195 border : this . border ,
8296 inverse : this . inverse ,
8397 size : this . size || null ,
0 commit comments