Neat library, that provides a simple way to implement guillotine-styled animation
Last updated Jun 8, 2026
2.7k
Stars
486
Forks
9
Issues
0
Stars/day
Attention Score
74
Language breakdown
Java 100.0%
βΈ Files
click to expand
README
Guillotine animation
Neat library, that provides a simple way to implement guillotine-styled animation
Usage
For a working implementation, have a look at the app module- Add JitPack repository in your root build.gradle at the end of repositories:
- Add the dependency to your app build.gradle
- You need to create a layout for the navigation menu (
guillotine.xmlin sample app), which will later open and close guillotine-style. The only tricky part here is that the navigation layout should be on top of any other content and will disappear after closing animation ends. That is why content layout (activity.xmlin sample app) should also have hamburger icon at the same coordinates as navigation menu has.
- After that all you need to do is to build animation by passing navigation layout object, navigation and content layout hamburger objects to
GuillotineAnimation.GuillotineBuilderin youronCreatemethod
new GuillotineAnimation.GuillotineBuilder(guillotineMenu, guillotineMenu.findViewById(R.id.guillotine_hamburger), contentHamburger)
.setActionBarViewForAnimation(toolbar)
.build();
Here setActionBarViewForAnimation method enables bounce effect of Toolbar at the end of the guillotine closing animation.
Misc
Builder allows you to customize start delay, duration, interpolation and you can set listener if you want to do staff at the moment when menu has been opened or closed.Compatibility
* Android 4.0.3 Ice Cream Sandwich (API level 15)Changelog
Version: 1.0
* Initial BuildVersion: 1.2
* Moved to using Toolbar instead of ActionBar * Updated Gradle versions * Fixed bugsLet us know!
Weβd be really happy if you sent us links to your projects where you use our component. Just send an email to github@yalantis.com And do let us know if you have any questions or suggestion regarding the animation. P.S. Weβre going to publish more awesomeness wrapped in code and a tutorial on how to make UI for Android (iOS) better than better. Stay tuned!License
Copyright 2017, Yalantis Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.π More in this category