Skip to content

Latest commit

 

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple animations in Kotlin

Usage

ankomate(context) {

  duration = 200L
  interpolator = AccelerateDecelerateInterpolator()

  scale(view1) {
    xFrom = 0.1f
    xTo = 1f
  }

  alpha(view1) {
    from = 0f
    to = 1f
  }

  rotate(view2) {
    from = 270
    to = 180
  }
  
  translateFraction(view3) {
    to = 1f
  }

  then {

    duration = 400L
    interpolator = AccelerateInterpolator()

    rotate(view1) {
      from = 180
      to = 360
    }

    then {
      gone(view1)
    }
  }
}

Install

// {module}/build.gradle

repositories {
  maven { url 'https://dl.bintray.com/asarazan/maven' }
}
dependencies {
  compile 'net.sarazan:ankomation:0.1'
}

About

Simple animations in Kotlin

Resources

Stars

17 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages