Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 month ago
JSON representation

Text animation library for Jetpack Compose.

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.