# Transitions-Everywhere **Repository Path**: HarmonyOS-tpc/Transitions-Everywhere ## Basic Information - **Project Name**: Transitions-Everywhere - **Description**: A simple openharmony Library to apply transitions between components. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-04-15 - **Last Updated**: 2023-04-17 ## Categories & Tags **Categories**: harmonyos-view-transition **Tags**: None ## README ## Transitions-Everywhere library ## Introduction A simple openharmony Library to apply transitions between components. It supports many transitions . Transitions defines motion between a starting scene to ending scene. Transition examples are fade, rotate, zoom, etc ### Features It covers below Transitions - Simple animation with AutoTransition - Interpolator,duration,start delay - Path motion - Slide transition - Scale transition - Explode transition and epi center - Transition names - ChangeImage transform transition - Recolor transition - Rotate Transition - Change text transition - Custom transition ## Usage Instructions For each transition we should have a starting scene and ending scene. Need to start the transition by passing TransitionManager.beginDelayedTransition(mDlViewRoot); Where we need to pass the initial scene. Can use addTransition api incase of multiple transitions to be added TransitionManager.beginDelayedTransition(mDlViewRoot, new TransitionSet() .addTransition(new ChangeBounds()) .addTransition(new ChangeImageTransform())); ## Installation instruction ``` Solution 1: local har package integration Add the .har package to the lib folder. Add the following code to the gradle of the entry: implementation fileTree(dir: 'libs', include: ['.jar', '.har']) Solution 2: Add following dependencies in your build.gradle: allprojects { repositories { mavenCentral() } } implementation 'io.openharmony.tpc.thirdlib:Transitions-Everywhere:1.0.1' ```