Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zeeshanali-k/typist-cmp

A Compose Multiplatform Typing Animation Library for Android, iOS, Desktop and Web
https://github.com/zeeshanali-k/typist-cmp

android android-app android-lib android-library android-sdk android-studio compose-multiplatform ios jetpack-compose kotlin kotlin-multiplatform library

Last synced: 6 days ago
JSON representation

A Compose Multiplatform Typing Animation Library for Android, iOS, Desktop and Web

Awesome Lists containing this project

README

        

[![Maven Central](https://img.shields.io/maven-central/v/tech.dev-scion/typist-cmp.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22tech.dev-scion%22%20AND%20a:%22typist-cmp%22)

# Typist-CMP
A Compose Multiplatform Text Typing Animation Library for Android, iOS, Desktop and Web.
Visit this link to checkout Typist for Jetpack Compose.


Pass multiple strings and infinite repititions option

## Usage

Add this to your project level "build.gradle" or in newer versions of gradle in "settings.gradle" under repositories section:

```groovy
repositories {
mavenCentral()
}
```

Add this to your shared module build.gradle file in commonMain under dependencies section:

```kotlin
api("tech.dev-scion:typist-cmp:TAG")
```

Replace TAG with library version

Add Typist Composable to your app and configure accordingly:

```kotlin
Typist(
text = "Hi! I am Typist.",
modifier = Modifier
.align(Alignment.Center),
typistSpeed = TypistSpeed.NORMAL,
textStyle = TextStyle(
color = Color.Red,
fontWeight = FontWeight.Bold,
fontSize = 28.sp,
textAlign = TextAlign.Center,
isBlinkingCursor = true, // if true the cursor will keep blinking
isInfiniteCursor = false, // if true the cursor will not hide even after the text has been written
isCursorVisible = true, // if true the cursor will not be visible at all
),
onAnimationEnd = {},
onAnimationStart = {}
)
```