Need help with Revealator?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Jaouan
454 Stars 54 Forks Apache License 2.0 14 Commits 4 Opened issues

Description

An helper to circle reveal/unreveal a view easily, with translations and childs animations.

Services available

!
?

Need anything else?

Contributors list

# 153,149
Java
12 commits

Android Revealator

Release Android Arsenal API

An helper to circle reveal/unreveal a view easily, with translations and childs animations. The libraries is Android 15+ compatible.

demo demo demo

Installation

Gradle

repositories {
    maven { url "https://jitpack.io" }
}
compile 'com.github.jaouan:revealator:1.2.1'

Usage

Just put the view you want to animate in a

io.codetail.widget.RevealFrameLayout
...
    <framelayout android:id="@+id/the_awesome_view" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/colorAccent" android:visibility="invisible">

                  <textview android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Lorem ipsum"></textview>


    </framelayout>

</io.codetail.widget.revealframelayout>

... and use the Revealator's magic to reveal...

java
Revealator.reveal( theAwesomeViewYouWantToReveal )
    .from( theInitiatorViewYouWantToTranslate )
    .withCurvedTranslation()
    //.withCurvedTranslation(curvePoint)
    .withChildsAnimation()
    //.withDelayBetweenChildAnimation(...)
    //.withChildAnimationDuration(...)
    //.withTranslateDuration(...)
    //.withHideFromViewAtTranslateInterpolatedTime(...)
    //.withRevealDuration(...)
    //.withEndAction(...)
    .start();

... or unreveal.

java
Revealator.unreveal( theAwesomeViewYouWantToUnreveal )
    .to( theInitiatorViewYouWantToTranslateBack )
    .withCurvedTranslation()
    //.withCurvedTranslation(curvePoint)
    //.withUnrevealDuration(...)
    //.withTranslateDuration(...)
    //.withShowFromViewInterpolatedDuration(...)
    //.withEndAction(...)
    .start();

References

This project uses : - ozodrukh's CircularReveal for Android 4 compatibility. - guohai's ArcTranslateAnimation for curved translation.

License

Apache License Version 2.0

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.