{"id":21129988,"url":"https://github.com/kakajika/FragmentAnimations","last_synced_at":"2025-07-09T01:31:58.192Z","repository":{"id":39817595,"uuid":"46989053","full_name":"kakajika/FragmentAnimations","owner":"kakajika","description":"3D animation examples for support-v4 Fragment transition.","archived":false,"fork":false,"pushed_at":"2017-06-15T09:47:32.000Z","size":143,"stargazers_count":1140,"open_issues_count":7,"forks_count":163,"subscribers_count":31,"default_branch":"master","last_synced_at":"2023-11-07T13:17:29.977Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/kakajika.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":"2015-11-27T16:10:06.000Z","updated_at":"2023-11-06T08:36:21.000Z","dependencies_parsed_at":"2022-08-09T15:32:42.857Z","dependency_job_id":null,"html_url":"https://github.com/kakajika/FragmentAnimations","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakajika%2FFragmentAnimations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakajika%2FFragmentAnimations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakajika%2FFragmentAnimations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kakajika%2FFragmentAnimations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kakajika","download_url":"https://codeload.github.com/kakajika/FragmentAnimations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476379,"owners_count":17480215,"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-11-20T05:32:08.898Z","updated_at":"2024-11-20T05:32:10.283Z","avatar_url":"https://github.com/kakajika.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Animations\"\u003e\u003c/A\u003eAnimations"],"readme":"# FragmentAnimations\n\n[![Platform](https://img.shields.io/badge/platform-android-green.svg)](http://developer.android.com/index.html)\n\u003cimg src=\"https://img.shields.io/badge/license-Apache 2.0-green.svg?style=flat\"\u003e\n[![API](https://img.shields.io/badge/API-4%2B-yellow.svg?style=flat)](https://android-arsenal.com/api?level=4)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-FragmentAnimations-green.svg?style=true)](https://android-arsenal.com/details/1/3526)\n\nAnimation examples for `support.v4.Fragment` transition.\n\nThese animations do not depends on any external libraries.\n\n[\u003cimg src=\"https://dply.me/h7azvd/button/large\" alt=\"Try it on your device via DeployGate\"\u003e](https://dply.me/h7azvd)\n\n## Usage Example\n\nIn your `Fragment`, just code like this.\n\n```java\n@Override\npublic Animation onCreateAnimation(int transit, boolean enter, int nextAnim) {\n    return CubeAnimation.create(CubeAnimation.UP, enter, DURATION);\n}\n```\n\nSee more example in [ExampleFragment.java](https://github.com/kakajika/FragmentAnimations/blob/master/app/src/main/java/com/labo/kaji/fragmentanimations/example/ExampleFragment.java)\n\n## Contents\n\n### Cube Animation\n\n[CubeAnimation.java](https://github.com/kakajika/FragmentAnimations/blob/master/fragmentanimations/src/main/java/com/labo/kaji/fragmentanimations/CubeAnimation.java)\n\n![Cube](https://raw.githubusercontent.com/wiki/kakajika/FragmentAnimations/images/cube.gif)\n\n### Flip Animation\n\n[FlipAnimation.java](https://github.com/kakajika/FragmentAnimations/blob/master/fragmentanimations/src/main/java/com/labo/kaji/fragmentanimations/FlipAnimation.java)\n\n![Flip](https://raw.githubusercontent.com/wiki/kakajika/FragmentAnimations/images/flip.gif)\n\n### Push/Pull Animation\n\n[PushPullAnimation.java](https://github.com/kakajika/FragmentAnimations/blob/master/fragmentanimations/src/main/java/com/labo/kaji/fragmentanimations/PushPullAnimation.java)\n\n![Push/Pull](https://raw.githubusercontent.com/wiki/kakajika/FragmentAnimations/images/pushpull.gif)\n\n### Sides Animation\n\n[SidesAnimation.java](https://github.com/kakajika/FragmentAnimations/blob/master/fragmentanimations/src/main/java/com/labo/kaji/fragmentanimations/SidesAnimation.java)\n\n### Move Animation\n\n[MoveAnimation.java](https://github.com/kakajika/FragmentAnimations/blob/master/fragmentanimations/src/main/java/com/labo/kaji/fragmentanimations/MoveAnimation.java)\n\n![Move](https://raw.githubusercontent.com/wiki/kakajika/FragmentAnimations/images/move.gif)\n\n## Combination\n\nYou can use above Animations with another one.\n\n```java\n@Override\npublic Animation onCreateAnimation(int transit, boolean enter, int nextAnim) {\n    if (enter) {\n        return MoveAnimation.create(MoveAnimation.UP, enter, DURATION);\n    } else {\n        return CubeAnimation.create(CubeAnimation.UP, enter, DURATION);\n    }\n}\n```\n\n### Cube/Move Animation\n\n![Cube/Move](https://raw.githubusercontent.com/wiki/kakajika/FragmentAnimations/images/cubemove.gif)\n\n### Move/Cube Animation\n\n![Move/Cube](https://raw.githubusercontent.com/wiki/kakajika/FragmentAnimations/images/movecube.gif)\n\n### Push/Move Animation\n\n![Push/Move](https://raw.githubusercontent.com/wiki/kakajika/FragmentAnimations/images/pushmove.gif)\n\n### Move/Pull Animation\n\n![Move/Pull](https://raw.githubusercontent.com/wiki/kakajika/FragmentAnimations/images/movepull.gif)\n\n## Install\n\nThis library is available in jcenter.\n\n```groovy\ndependencies {\n    compile 'com.labo.kaji:fragmentanimations:0.1.1'\n}\n```\n\n## License\n\n    Copyright 2015 kakajika\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkakajika%2FFragmentAnimations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkakajika%2FFragmentAnimations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkakajika%2FFragmentAnimations/lists"}