{"id":13645348,"url":"https://github.com/linfaxin/TransitionPlayer","last_synced_at":"2025-04-21T14:30:39.670Z","repository":{"id":36130651,"uuid":"40434026","full_name":"linfaxin/TransitionPlayer","owner":"linfaxin","description":"Android library to control Transition animates. A simple way to create a interactive animation.","archived":false,"fork":false,"pushed_at":"2016-07-13T03:45:04.000Z","size":1984,"stargazers_count":1155,"open_issues_count":0,"forks_count":223,"subscribers_count":45,"default_branch":"master","last_synced_at":"2024-10-30T04:50:00.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/linfaxin.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}},"created_at":"2015-08-09T11:25:11.000Z","updated_at":"2024-06-08T07:09:33.000Z","dependencies_parsed_at":"2022-08-02T20:15:30.884Z","dependency_job_id":null,"html_url":"https://github.com/linfaxin/TransitionPlayer","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/linfaxin%2FTransitionPlayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linfaxin%2FTransitionPlayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linfaxin%2FTransitionPlayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linfaxin%2FTransitionPlayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linfaxin","download_url":"https://codeload.github.com/linfaxin/TransitionPlayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223868072,"owners_count":17217024,"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":[],"created_at":"2024-08-02T01:02:33.826Z","updated_at":"2024-11-09T18:31:04.374Z","avatar_url":"https://github.com/linfaxin.png","language":"Java","funding_links":[],"categories":["页面切换","Java"],"sub_categories":[],"readme":"# TransitionPlayer\nAndroid library to control Transition animates. A simple way to create a interactive animation.\n\n\n## Demo1 SimpleTransition\n![image](demo/demo_drawerlayout.gif)\n### Code:\n```java\n    ......\n    TransitionManager.beginDelayedTransition(mSceneRoot, transitionPlayer);\n\n    imageView.setRotation(360);\n    imageView.setRotationX(270);\n    imageView.setRotationY(180);\n    imageView.setTranslationX(70 * getResources().getDisplayMetrics().density);\n    imageView.setScaleX(0.2f);\n    imageView.setScaleY(0f);\n    imageView.setBackgroundColor(getResources().getColor(android.R.color.holo_blue_bright));\n    ......\n    drawerLayout.setDrawerListener(new DrawerLayout.SimpleDrawerListener() {\n        public void onDrawerSlide(View drawerView, float slideOffset) {\n            transitionPlayer.setCurrentFraction(slideOffset);\n        }\n    });\n```\n\n## Demo2 MaterialMenu\n![image](demo/demo_menu.gif)\n### Code:\n```java\n    ......\n    int[] layouts = new int[]{R.layout.material_menu_option, R.layout.material_menu_back, R.layout.material_menu_y};\n    Scene scene = Scene.getSceneForLayout(mSceneRoot, layout[random.nextInt(layouts.length)], context);\n    TransitionManager.go(scene, transitionPlayer);\n    ......\n    drawerLayout.setDrawerListener(new DrawerLayout.SimpleDrawerListener() {\n        public void onDrawerSlide(View drawerView, float slideOffset) {\n            transitionPlayer.setCurrentFraction(slideOffset);\n        }\n    });\n```\n\n\n\n## Demo3 ChromeAppIndexPage\n![image](demo/demo_chrome_home.gif)\n### Code:\n[ChromeHomeDemo.java](demo/src/main/java/com/linfaxin/transitionplayer/demo/ChromeHomeDemo.java)\n\n\n\n## License\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinfaxin%2FTransitionPlayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinfaxin%2FTransitionPlayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinfaxin%2FTransitionPlayer/lists"}