{"id":26845012,"url":"https://github.com/chinalwb/compose-roller-animator","last_synced_at":"2025-04-30T20:24:30.694Z","repository":{"id":51536283,"uuid":"502575883","full_name":"chinalwb/compose-roller-animator","owner":"chinalwb","description":"Roller animation effect with Compose","archived":false,"fork":false,"pushed_at":"2022-06-12T11:39:22.000Z","size":116,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-18T00:03:36.425Z","etag":null,"topics":["animator","compose-animation","counter","roller"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chinalwb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-12T09:48:44.000Z","updated_at":"2024-04-10T09:08:21.000Z","dependencies_parsed_at":"2022-08-22T04:41:02.431Z","dependency_job_id":null,"html_url":"https://github.com/chinalwb/compose-roller-animator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinalwb%2Fcompose-roller-animator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinalwb%2Fcompose-roller-animator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinalwb%2Fcompose-roller-animator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chinalwb%2Fcompose-roller-animator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chinalwb","download_url":"https://codeload.github.com/chinalwb/compose-roller-animator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246370867,"owners_count":20766461,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["animator","compose-animation","counter","roller"],"created_at":"2025-03-30T19:34:12.493Z","updated_at":"2025-03-30T19:34:13.172Z","avatar_url":"https://github.com/chinalwb.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ComposeRollerAnimator\nRoller animation effect with Compose\n\n### Looks like:\n\n\u003cimg src=\"https://user-images.githubusercontent.com/1758864/173230887-2c64c52d-3c72-4aef-b07d-10033b7594c4.gif\" width=\"160\" /\u003e\n\n\n\n\n\n### Sample code:\n\n```\nRollerNumberAnimator(\n    startValue = 1990,\n    endValue = 2022\n)\n```\n\n### Decrease and reverse:\n\n\n\u003cimg src=\"https://user-images.githubusercontent.com/1758864/173231362-71f567d5-295f-4142-8edc-b899ef4404b7.gif\" width=\"160\" /\u003e\n\n\n### Sample code:\n\n```\nRollerNumberAnimator(\n    startValue = 2022,\n    endValue = 1990,\n    decrease = true\n)\n```\n\n\n### Simple Demo\n\n\n![simple_demo](https://user-images.githubusercontent.com/1758864/173231043-fda4acb0-f02f-40fd-9fa0-7152e0d37d9b.gif)\n\n\n### API and parmas:\n\n- Simple, check it out as blow:\n- Params are pretty self explanatory.\n```\nfun RollerNumberAnimator(\n    modifier: Modifier = Modifier,\n    startValue: Int,\n    endValue: Int,\n    animateOneByOne: Boolean = false,\n    ltr: Boolean = false,\n    decrease: Boolean = false,\n    duration: Int? = null,\n    animateToSameNumber: Boolean = false,\n    useFading: Boolean = true,\n    vPadding: Dp = 4f.dp,\n    textSize: TextUnit = 36.sp,\n    textColor: Color = Color(0xFFFEFEFE),\n    backgroundColor: Color = Color(0xFF0CCD8C),\n    onLayoutFinished: (paddingBottomDp: Dp) -\u003e Unit = {},\n    onRollingFinished: (endValue: Int) -\u003e Unit = {}\n)\n```\n\n\n### Just another demo\n\nhttps://user-images.githubusercontent.com/1758864/173230803-26a60ec9-7de5-4a40-80a0-2f5f0aa74b0d.mp4\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinalwb%2Fcompose-roller-animator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchinalwb%2Fcompose-roller-animator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchinalwb%2Fcompose-roller-animator/lists"}