https://github.com/t8rin/marquee
Marquee effect implementation for Jetpack Compose
https://github.com/t8rin/marquee
android coroutines decoration effect jetpack-compose kotlin marquee
Last synced: 4 months ago
JSON representation
Marquee effect implementation for Jetpack Compose
- Host: GitHub
- URL: https://github.com/t8rin/marquee
- Owner: T8RIN
- License: apache-2.0
- Created: 2022-12-24T19:28:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-24T19:38:21.000Z (about 3 years ago)
- Last Synced: 2025-04-01T15:56:28.853Z (11 months ago)
- Topics: android, coroutines, decoration, effect, jetpack-compose, kotlin, marquee
- Language: Kotlin
- Homepage:
- Size: 8.79 KB
- Stars: 31
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Marquee
This class will help to add xml like marquee effect to any composable
Copy Marquee.kt file to your repository and you are ready to engage!
```kotlin
//Usage example
Marquee(
modifier = Modifier, //Modifier of Marquee Box
params = defaultMarqueeParams(), //Params for specifying its appearance
) {
//Your content goes here
Text(text = "Very very long text, which doesn't fit whole screen and needed to be scrolled horizontally")
}
```
## Note
Also remember to add this dependencies to local build.gradle folder
```kotlin
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation("androidx.compose.ui:ui:1.4.0-alpha03")
implementation("androidx.compose.foundation:foundation:1.4.0-alpha03")
```
## Find this repository useful? :heart:
Support it by joining __[stargazers](https://github.com/t8rin/marquee/stargazers)__ for this repository. :star:
And __[follow](https://github.com/t8rin)__ me for my next creations! 🤩
# License
```xml
Designed and developed by 2022 T8RIN
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```