Skip to content

Commit

Permalink
Merge pull request #17 from git-igmoreno/master
Browse files Browse the repository at this point in the history
Added fadeTo() feature
  • Loading branch information
rosenpin authored Aug 7, 2022
2 parents 96f2122 + 74eb7e8 commit 777d6a9
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,17 @@ public void forceRefresh() {
stopAnimation();
startAnimation();
}

/**
* Fades text to position in provided array and pauses
* Consider calling pause() method before calling this function to avoid overriding currently active animation
*/
public void fadeTo(int position){
this.position = position;
isShown = true;
startAnimation();
pause();
}

/**
* Shuffle the strings
Expand Down

0 comments on commit 777d6a9

Please sign in to comment.