https://github.com/alexmercerind/moving-letters-android
Text animation library for Jetpack Compose.
https://github.com/alexmercerind/moving-letters-android
android android-library animations jetpack-compose
Last synced: about 1 year ago
JSON representation
Text animation library for Jetpack Compose.
- Host: GitHub
- URL: https://github.com/alexmercerind/moving-letters-android
- Owner: alexmercerind
- License: mit
- Created: 2023-12-11T12:36:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-25T16:28:25.000Z (about 2 years ago)
- Last Synced: 2025-03-29T05:11:24.859Z (over 1 year ago)
- Topics: android, android-library, animations, jetpack-compose
- Language: Kotlin
- Homepage:
- Size: 124 KB
- Stars: 83
- Watchers: 2
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [moving-letters-android](https://github.com/alexmercerind/moving-letters-android)
#### Text animation library for Android (Jetpack Compose).
## Guide
Following text animations are available:
#### ScaleInAnimatedText

#### ScaleOutAnimatedText

#### FadeAnimatedText

#### JumpAnimatedText

#### RotateAnimatedText

#### Programmatic API
You may use `AnimatedTextState` as follows to control the animation programmatically:
```kt
val state = rememberAnimatedTextState()
XYZAnimatedText(
state = state,
text = "I like Jetpack Compose"
)
state.stop()
state.pause()
state.start()
state.resume()
```
#### Example Application

You may download the [APK](https://github.com/alexmercerind/moving-letters-android/files/13639901/app-release.zip) quick trial.
The [source-code of the example application](https://github.com/alexmercerind/moving-letters-android/tree/main/app/src/main/java/com/alexmercerind/example) provides more details.
## Inspiration
[Moving Letters for Web / JavaScript](https://tobiasahlin.com/moving-letters/) by [@tobiasahlin](https://twitter.com/tobiasahlin).
I wanted to implement it in Jetpack Compose!
## License
Copyright © 2023 & onwards, Hitesh Kumar Saini.
This project & the work under this repository is governed by MIT license that can be found in the [LICENSE](./LICENSE) file.