Skip to content

Commit

Permalink
Added reset of animation to text Input change
Browse files Browse the repository at this point in the history
  • Loading branch information
xSentry committed Aug 24, 2024
1 parent 38a1828 commit e213c55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@omnedia/ngx-cryptic-text",
"description": "A simple component library to animate text.",
"version": "1.0.0",
"version": "1.1.0",
"peerDependencies": {
"@angular/common": "^18.2.0",
"@angular/core": "^18.2.0"
Expand Down
5 changes: 5 additions & 0 deletions src/lib/ngx-cryptic-text.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ export class NgxCrypticTextComponent implements OnInit {
styleClass?: string;

@Input("text")
set textInput(text: string) {
this.text = text;
this.generateText();
}

text!: string;

templateText = '';
Expand Down

0 comments on commit e213c55

Please sign in to comment.