pixAndroid / AnimationX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AnimationX

Mainly focused on regular animations, such as - Aplha, Translate, Scale, etc.

cover_bl – 12

###DeMo

video_2023-07-16_03-13-03.mp4

Project Requirements

distributionUrl=https://services.gradle.org/distributions/gradle-7.4-bin.zip

Implementation

Step 1. Add the JitPack repository to your build.gradle file

    allprojects {
        repositories {
            maven { url 'https://jitpack.io' }
        }
    }

Step 2. Add the dependency

	implementation 'com.github.pixAndroid:AnimationX:3.4'

Examples

01 - Smooth ProgressBar Animation

    //SET MAX PROGRESS 
    int yourMaxValue = 20000;
    progress_bar.setMax(yourMaxValue * 100);
    
    //DO ANIMATION
    AnimationX.smoothProgressAnimation(progress_bar, progress, duration);

02 - Digit Animation

     AnimationX.digitCounter(0, 100, text_view);

03 - Color Chnage Animation

     AnimationX.text_color_change_effect(MainActivity.this, text_view, 0, Color.RED, 500);

04 - Spin & Move Animation

     AnimationX.spin_and_move(view);

05 - Fade In & Fade Out Animation

     AnimationX.fade_in(view, 2000);
     AnimationX.fade_out(view, 2000);

06 - Spin Animation

     AnimationX.spin_animation(view, duration, repeat_count);

07 - Alpha Animation

     AnimationX.alphaAnimation(view, from_alpha, to_alpha,  duration, listener);

08 - Shake Animation

     AnimationX.shake_animation(view, from_alpha, to_alpha,  duration, listener);

Badges

MIT License

About


Languages

Language:Java 100.0%