Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vimalcvs/confetti-animation
Confetti-Animation is a library for creating delightful confetti animations in Android apps. It provides an easy way to add colorful confetti effects to your app's UI.
https://github.com/vimalcvs/confetti-animation
animation animation-effects animation-library confetti confetti-animation confetti-ball confetti-view
Last synced: about 5 hours ago
JSON representation
Confetti-Animation is a library for creating delightful confetti animations in Android apps. It provides an easy way to add colorful confetti effects to your app's UI.
- Host: GitHub
- URL: https://github.com/vimalcvs/confetti-animation
- Owner: vimalcvs
- Created: 2023-03-30T15:41:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-25T05:47:42.000Z (over 1 year ago)
- Last Synced: 2024-05-02T03:44:05.995Z (7 months ago)
- Topics: animation, animation-effects, animation-library, confetti, confetti-animation, confetti-ball, confetti-view
- Language: Java
- Homepage: https://www.technovimal.in
- Size: 137 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Confetti-Animation
Confetti-Animation is a library for creating delightful confetti animations in Android apps. It provides an easy way to add colorful confetti effects to your app's UI.
## Installation
To use Confetti-Animation in your project, follow these steps:
1. Add the repository URL to your root `build.gradle` file:
```groovy
allprojects {
repositories {
// Existing repositories
maven { url 'https://jitpack.io' }
}
}
```2. Add the library dependency to your app's `build.gradle` file:
```groovy
dependencies {
// Existing dependencies
implementation 'com.github.vimalcvs:Confetti-Animation:0.0.1'
}
```## Usage
To create a confetti animation in your app, you can use the `ConfettiAnimation` class provided by the library. Here's an example of how to use it:
```java
// Instantiate the ConfettiAnimation
ConfettiAnimation confettiAnimation = new ConfettiAnimation.Builder()
.setContext(context)
.setContainer(containerView)
.setColors(Color.RED, Color.GREEN, Color.BLUE)
.setDuration(3000)
.setConfettiCount(100)
.build();// Start the animation
confettiAnimation.start();