Skip to content
Betwixt (/bɪˈtwɪkst/ - preposition & adverb - archaic term for between) is an android library that aims to provide a unified composable api for animation Interpolators, both provided already by the platform and for new ones provided by the community
Java HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
betwixt-rebound
betwixt
gradle/wrapper
resources
scripts
.gitignore
LICENSE
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.md

betwixt

Betwixt (/bɪˈtwɪkst/ - preposition & adverb - archaic term for between) is an android library that aims to provide a unified composable api for animation Interpolators, both provided already by the platform and for new ones provided by the community

Demo

To see some interpolators in action and examples of how betwixt allows composing of different interpolators, try downloading the demo app from Google Play™

Get it on Google Play

or you can try an online demo here (note that performance of the online demo may not be sufficient to see smooth animations)

appetize

syntax

Betwixt provides a fluent syntax for creating and composing interpolators, including ones provided by the Android platform, such as:

linear()

linear

fastOutSlowIn()

fastOutSlowIn

but also new custom ones:

step()

step

The library's power, though, comes from its composable interpolators. These allow you to create complex animations like:

pingPong(accelerateDecelerate())

pingPongAccelerateDecelerate

and

join(accelerateDecelerate(), flip(bounce()))

joinAccelerateDecelerateFlipBounce

betwixt-rebound

This extension to the library allows integration with the Facebook library rebound to allow creation of interpolators backed by a Spring

spring(40,3)

spring

Download

The library is available on JCenter. Note that it is still in early development and things might change with subsequent versions.

To use it in your project, add the following to your project

  • Gradle:
compile 'com.savvasdalkitsis:betwixt:1.0.0'
  • Maven:
<dependency>
  <groupId>com.savvasdalkitsis</groupId>
  <artifactId>betwixt</artifactId>
  <version>1.0.0</version>
</dependency>

for betwixt-rebound you can use:

  • Gradle:
compile 'com.savvasdalkitsis:betwixt-rebound:1.0.0'
  • Maven:
<dependency>
  <groupId>com.savvasdalkitsis</groupId>
  <artifactId>betwixt-rebound</artifactId>
  <version>1.0.0</version>
</dependency>

License

Copyright 2016 Savvas Dalkitsis

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
You can’t perform that action at this time.