{"id":28482525,"url":"https://github.com/nomanr/animate-compose","last_synced_at":"2026-01-21T13:25:19.547Z","repository":{"id":296470961,"uuid":"963182073","full_name":"nomanr/animate-compose","owner":"nomanr","description":"Build and copy compose animations","archived":false,"fork":false,"pushed_at":"2025-06-09T15:54:29.000Z","size":6645,"stargazers_count":162,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-19T22:51:28.336Z","etag":null,"topics":["animation","compose","compose-multiplatform","compose-ui","jetpack-compose","kotlin-multiplatform"],"latest_commit_sha":null,"homepage":"http://animate.nomanr.com/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nomanr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-09T09:32:12.000Z","updated_at":"2026-01-05T13:46:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"0631c95b-657e-4593-8de7-b69810cad64d","html_url":"https://github.com/nomanr/animate-compose","commit_stats":null,"previous_names":["nomanr/animate-compose"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nomanr/animate-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomanr%2Fanimate-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomanr%2Fanimate-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomanr%2Fanimate-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomanr%2Fanimate-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nomanr","download_url":"https://codeload.github.com/nomanr/animate-compose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nomanr%2Fanimate-compose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28633757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","compose","compose-multiplatform","compose-ui","jetpack-compose","kotlin-multiplatform"],"created_at":"2025-06-07T20:37:50.264Z","updated_at":"2026-01-21T13:25:19.540Z","avatar_url":"https://github.com/nomanr.png","language":"Kotlin","funding_links":[],"categories":["Multiplatform"],"sub_categories":["Android samples"],"readme":"# animate-compose\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.nomanr/animate-compose.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.nomanr%22%20AND%20a:%22animate-compose%22)\n\nA powerful Kotlin Multiplatform animation library for Jetpack Compose with 90+ ready-to-use animations inspired by animate.css.\n\n\u003cdiv style=\"background-color: white; padding: 20px;\"\u003e\n  \n![Group 38](https://github.com/user-attachments/assets/9a898df6-a086-4bb1-92fa-614b70e3945d)\n\n![FocuSeeProject2025-06-0911-49-31_10-ezgif com-crop (1)](https://github.com/user-attachments/assets/cf701bad-7bd6-444d-91a6-a924a623f527)\n\n\u003c/div\u003e\n\n## Features\n\n- 🎨 **90+ Pre-built Animations** - Attention seekers, entrances, exits, and special effects\n- 🚀 **Simple API** - Just wrap your composables with `Animated()`\n- 🎯 **Keyframe-based** - Smooth, natural animations with custom easing\n- 📱 **Multiplatform** - Works on Android, iOS, Desktop, and Web\n- ⚡ **Performant** - Optimized for Compose with minimal overhead\n- 🛠 **Customizable** - Create your own animation presets\n- 🎮 **Interactive Playground** - Test and configure animations in real-time\n\n## Quick Start\n\n### Installation\n\nAdd the dependency to your module's `build.gradle.kts`:\n\n```kotlin\ndependencies {\n    implementation(\"com.nomanr:animate-compose:${version}\")\n}\n```\n\n### Basic Usage\n\n```kotlin\nimport com.nomanr.animate.compose.animated.Animated\nimport com.nomanr.animate.compose.presets.fadeinentrances.FadeIn\n\n@Composable\nfun MyComponent() {\n    Animated(\n        preset = FadeIn(),\n        durationMillis = 1000\n    ) {\n        Text(\"Hello, Animated World!\")\n    }\n}\n```\n\n## Animation Categories\n\nSee the [complete list of animations](docs/ANIMATIONS.md) for detailed descriptions of all 90+ animations.\n\n### Attention Seekers\nPerfect for drawing user attention to important elements.\n\n```kotlin\nAnimated(preset = Bounce()) { Icon(...) }\nAnimated(preset = Flash()) { Button(...) }\nAnimated(preset = Pulse()) { Card(...) }\nAnimated(preset = RubberBand()) { Text(...) }\nAnimated(preset = ShakeX()) { TextField(...) }\nAnimated(preset = Swing()) { Image(...) }\nAnimated(preset = Tada()) { Box(...) }\n```\n\n### Entrances\nSmooth ways to introduce elements to the screen.\n\n```kotlin\n// Fade entrances\nAnimated(preset = FadeIn()) { ... }\nAnimated(preset = FadeInDown()) { ... }\nAnimated(preset = FadeInLeft()) { ... }\nAnimated(preset = FadeInRight()) { ... }\nAnimated(preset = FadeInUp()) { ... }\n\n// Bounce entrances\nAnimated(preset = BounceIn()) { ... }\nAnimated(preset = BounceInDown()) { ... }\nAnimated(preset = BounceInLeft()) { ... }\n\n// Slide entrances\nAnimated(preset = SlideInDown()) { ... }\nAnimated(preset = SlideInLeft()) { ... }\n\n// Zoom entrances\nAnimated(preset = ZoomIn()) { ... }\nAnimated(preset = ZoomInDown()) { ... }\n\n// And many more...\n```\n\n### Exits\nGraceful ways to remove elements from the screen.\n\n```kotlin\nAnimated(preset = FadeOut(), animateOnEnter = false) { ... }\nAnimated(preset = BounceOut(), animateOnEnter = false) { ... }\nAnimated(preset = SlideOutUp(), animateOnEnter = false) { ... }\nAnimated(preset = ZoomOut(), animateOnEnter = false) { ... }\n```\n\n### Special Effects\nUnique animations for memorable interactions.\n\n```kotlin\nAnimated(preset = Hinge()) { ... }\nAnimated(preset = JackInTheBox()) { ... }\nAnimated(preset = RollIn()) { ... }\nAnimated(preset = RollOut()) { ... }\n```\n\n## Advanced Usage\n\n### Controlling Animation State\n\n```kotlin\nval animatedState = rememberAnimatedState()\n\nAnimated(\n    preset = FadeIn(),\n    state = animatedState\n) {\n    Card { ... }\n}\n\n// Control the animation\nLaunchedEffect(someCondition) {\n    animatedState.animate()\n}\n```\n\n### Custom Animation State\n\n```kotlin\nval animatedState = rememberAnimatedState()\n\n// Check animation state\nval isAnimating = animatedState.isAnimating.value\nval isFinished = animatedState.isAnimationFinished.value\n\nAnimated(\n    preset = BounceIn(),\n    state = animatedState\n) {\n    Box { ... }\n}\n\n// Trigger animation manually\nButton(onClick = { animatedState.animate() }) {\n    Text(\"Animate\")\n}\n```\n\n### Repeat Animations\n\n```kotlin\nAnimated(\n    preset = Pulse(),\n    repeat = true,\n    durationMillis = 1000\n) {\n    Icon(\n        imageVector = Icons.Default.Favorite,\n        contentDescription = \"Pulsing heart\"\n    )\n}\n```\n\n### Custom Animation Presets\n\nCreate your own animation presets by extending `AnimationPreset`:\n\n```kotlin\nclass MyCustomAnimation : AnimationPreset {\n    override val name = \"MyCustomAnimation\"\n    override val durationMillis = 800\n    \n    override fun createKeyframes(containerSize: ContainerSize): List\u003cKeyframe\u003e {\n        return listOf(\n            Keyframe.static(0f, alpha = 0f, scale = 0.3f),\n            Keyframe.segment(\n                0f to 0.5f,\n                alpha = SegmentFloat(0f, 1f),\n                scale = SegmentFloat(0.3f, 1.05f),\n                easing = Easing.EaseOutCubic\n            ),\n            Keyframe.segment(\n                0.5f to 1f,\n                scale = SegmentFloat(1.05f, 1f),\n                easing = Easing.EaseInOutCubic\n            )\n        )\n    }\n}\n```\n\n## Platform Support\n\n| Platform | Status | Notes |\n|----------|--------|-------|\n| Android | ✅ Stable | Full support |\n| iOS | ✅ Stable | Via Skiko |\n| Desktop | ✅ Stable | Via Skiko |\n| Web | ✅ Stable | Via Skiko |\n\n## Performance Tips\n\n1. **Reuse Animation Presets**: Create preset instances once and reuse them\n2. **Avoid Excessive Layers**: Complex animations on deeply nested composables may impact performance\n3. **Use `animateOnEnter`**: Set to `false` for exit animations to avoid unnecessary initial animations\n4. **Profile Your Animations**: Use the built-in playground to test performance with your specific use cases\n\n## Sample App\n\nExplore all animations in our interactive playground:\n\n```bash\n# Clone the repository\ngit clone https://github.com/yourusername/animate-compose.git\n```\n\n### Running the Sample App\n\nThe sample app includes:\n- Visual catalog of all animations\n- Interactive configuration options\n- Code generation for custom presets\n\n#### Android\n```bash\n./gradlew :sample:app:android:installDebug\n# or\n./gradlew :sample:app:android:assembleDebug\n```\n\n#### iOS\n```bash\n# Open the project in Xcode\nopen sample/app/ios/iosApp.xcodeproj\n\n# Or build from command line\ncd sample/app/ios\nxcodebuild -scheme iosApp -configuration Debug -destination 'platform=iOS Simulator,name=iPhone 15'\n```\n\n#### Desktop\n```bash\n./gradlew :sample:app:desktop:run\n```\n\n#### Web\n```bash\n# Development server with hot reload\n./gradlew :sample:app:web:jsBrowserDevelopmentRun\n\n# Production build\n./gradlew :sample:app:web:jsBrowserProductionWebpack\n```\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n### Adding New Animations\n\n1. Create a new class extending `AnimationPreset`\n2. Define keyframes using the keyframe DSL\n3. Place it in the appropriate category package\n4. Add tests and documentation\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE.txt](LICENSE.txt) file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomanr%2Fanimate-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnomanr%2Fanimate-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnomanr%2Fanimate-compose/lists"}