{"id":23193985,"url":"https://github.com/khan-mujeeb/button-morphing-animation","last_synced_at":"2025-07-16T06:36:59.480Z","repository":{"id":178714556,"uuid":"662263253","full_name":"khan-mujeeb/Button-Morphing-Animation","owner":"khan-mujeeb","description":"Enhance your user interfaces with dynamic morphing button animations in just a few lines of code.","archived":false,"fork":false,"pushed_at":"2023-07-05T18:26:19.000Z","size":114,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T07:42:07.468Z","etag":null,"topics":["animated-button","morphing-animations","morphing-button","xml"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khan-mujeeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-07-04T18:12:30.000Z","updated_at":"2024-01-10T01:45:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"5894bf26-ec78-404d-ae48-ac898caf087a","html_url":"https://github.com/khan-mujeeb/Button-Morphing-Animation","commit_stats":null,"previous_names":["khan-mujeeb/button-morphing-animation"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/khan-mujeeb/Button-Morphing-Animation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khan-mujeeb%2FButton-Morphing-Animation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khan-mujeeb%2FButton-Morphing-Animation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khan-mujeeb%2FButton-Morphing-Animation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khan-mujeeb%2FButton-Morphing-Animation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khan-mujeeb","download_url":"https://codeload.github.com/khan-mujeeb/Button-Morphing-Animation/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khan-mujeeb%2FButton-Morphing-Animation/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265488780,"owners_count":23775180,"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":["animated-button","morphing-animations","morphing-button","xml"],"created_at":"2024-12-18T13:12:58.418Z","updated_at":"2025-07-16T06:36:59.466Z","avatar_url":"https://github.com/khan-mujeeb.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Button-Morphing-Animation\n\n🌟 Enhance your user interfaces with dynamic morphing button animations in just a few lines of code.\n\n\u003cdiv align=\"center\"\u003e\n\u003ccenter\u003e \u003cimg src = \"https://github.com/khan-mujeeb/Button-Morphing-Animation/assets/89351750/c3181736-0f79-44ec-85f0-f2cc4537f818\" /\u003e \u003c/center\u003e\n\u003c/div\u003e\n\n## Including in your project\n\n**Step 1.** Add the JitPack repository to your root build.gradle at the end of repositories\n```kotlin\nallprojects {\n\t\trepositories {\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\n\n**Step 2.** Add the dependency below to your module's build.gradle file\n```kotlin\ndependencies {\n\t        implementation 'com.github.khan-mujeeb:Button-Morphing-Animation:1.0.2'\n\t}\n```\n\n##  Usage\n**Step 1.** Add the following code to your xml layout\n```xml\n\u003ccom.example.button_morphing.customview.MorphButton\n        android:layout_width=\"180dp\"\n        android:layout_height=\"50dp\"\n        android:id=\"@+id/btn2\" /\u003e\n```\n\n**Step 2.** Add this code to your respective kt file\n```kotlin\nbinding.btn2.text = \"Let's get Started\"\n\n        binding.btn2.setOnClickListener {\n            binding.btn2. setUIState(MorphButton.UIState.Loading)\n        }\n```\n\n## Customizations\n```kotlin\n        binding.btn.toBgColor = getColor(R.color.sea_green)\n        binding.btn.fromBgColor = getColor(R.color.white)\n        binding.btn.toTextColor = getColor(R.color.white)\n        binding.btn.fromTextColor = getColor(R.color.black)\n        binding.btn.iconDrawable = getDrawable(R.drawable.browser_new)!!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhan-mujeeb%2Fbutton-morphing-animation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhan-mujeeb%2Fbutton-morphing-animation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhan-mujeeb%2Fbutton-morphing-animation/lists"}