RubyMotion library for linear animations
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
lib
resources
spec
.DS_Store
.gitignore
CONTRIBUTING.md
Gemfile
LICENSE
README.md
Rakefile
code_of_conduct.md
motion-linear-animate.gemspec

README.md

iOS (RubyMotion) Animation Library

Code Climate

This is a simple wrapper for linear iOS animations. Currently, only simple animations are supported. We promise to add much more fascination animations to this library, so please bear with us until then :)

Animated GIF of Sample Implementation

Usage

Installation

Add this line to your application's Gemfile:

gem 'motion-linear-animate'

And then execute:

bundle

Sample App

A sample app is included for reference. To get it up and running, simply clone the repository and run rake or rake device depending on whether you want to preview it in the simulator or device.

Using in your app

Here is the basic setup to ease work for you:

animator = MotionAnimator.new
animator.linear_animate(view, to: final_point, duration: time_period, completion: completion_block)
  • final_point should be an instance of CGPoint or any other object with x and y attributes set to the final (x, y) position the view should be in after the animation.
  • time_period is the duration allocated for the animation to take place.

Contributing

See the CONTRIBUTING document. Thank you, contributors!

License

iOS (RubyMotion) Animation Library is Copyright (c) 2016 Multunus Software Pvt. Ltd. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About

multunus

iOS (RubyMotion) Animation Library is maintained and funded by Multunus Software Pvt. Ltd. The names and logos for Multunus are trademarks of Multunus Software Pvt. Ltd.

We love open source software! See our other projects or hire us to help build your product.