Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Oct 21, 2021
1 parent 0762b2d commit 0eeef37
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
4. [Animated switchers](#animated-switchers)
5. [Animated theme switch](#animated-theme-switch)
6. [Other examples](#other-examples)
7. [Kotlin extensions](#kotlin-extensions)

## Getting started

Expand All @@ -24,7 +25,7 @@ Maven:
<dependency>
<groupId>com.github.iAmGio</groupId>
<artifactId>animated</artifactId>
<version>0.4.0</version>
<version>0.4.1</version>
</dependency>
```

Expand All @@ -37,7 +38,7 @@ allprojects {
}
}
dependencies {
implementation 'com.github.iAmGio:animated:0.4.0'
implementation 'com.github.iAmGio:animated:0.4.1'
}
```
<br/>
Expand Down Expand Up @@ -211,4 +212,19 @@ themeSwitcher.animateTheme("/dark.css"); // Plays the transition
**[Drop shadows + switcher](src/test/java/eu/iamgio/animatedtest/AnimatedShadowTest.java)**

![Root switch](https://i.imgur.com/cYkSu9z.gif)
**[Root switch](src/test/java/eu/iamgio/animatedtest/AnimatedRootSwitchTest.java)**
**[Root switch](src/test/java/eu/iamgio/animatedtest/AnimatedRootSwitchTest.java)**

<br/>

---

<br/>

## Kotlin extensions

[Extension functions](src/main/java/eu/iamgio/animated/AnimatedExtensions.kt) make the library less verbose with Kotlin.
Example:
```kotlin
val animated: Animated = Animated(child, child.someProperty().animated())
val pair: AnimationPair = FadeIn().options(speed = 1.5) outTo FadeOut()
```

0 comments on commit 0eeef37

Please sign in to comment.