Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here

Stellar

A fantastic Physical animation library for swift

Subscribe to updates I use Stellar


Statistics on Stellar

Number of watchers on Github 2530
Number of open issues 10
Average time to close an issue about 18 hours
Main language Swift
Average time to merge a PR less than a minute
Open pull requests 1+
Closed pull requests 3+
Last commit over 1 year ago
Repo Created about 3 years ago
Repo Last Updated over 1 year ago
Size 13.8 MB
Organization / Authoraugustrush
Contributors1
Page Updated
Do you use Stellar? Leave a review!
View open issues (10)
View Stellar activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating Stellar for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Carthage compatible Packagist codebeat badge Travis branch Cocoapods badge

A fantastic Physical animation library for swift(Not Just Spring !!!), it is base on UIDynamic and extension to it, friendly APIs make you use it or custom your own animation very easily!

Support

Integration

Cocoapods(iOS 8+)

  • You can use Cocoapods to install Stellar by adding it to your Podfile:
platform :ios, '8.0'
use_frameworks!

target 'YourApp' do
    pod 'Stellar', :git => 'https://github.com/AugustRush/Stellar.git'
end

Carthage (iOS 8+)

  • You can use Carthage to install Stellar by adding it to your Cartfile:
github "AugustRush/Stellar"

Manually (iOS 8+)

To use this library in your project manually you may:

  • for Projects, just drag Stellar Sources to the project tree
  • for Workspaces, include the whole StellarDemo.xcodeproj

Features

- View's Animation
- Layer's Animation
- Chainable (every step can be observed)
- File configurable (come soon)

Animations

- Basic
- Gravity
- Snap
- Attachment
- Push
- Collsion(come soon)

Animatable type

- Float
- CGFloat
- Double
- CGSize
- CGPoint
- CGRect
- UIColor
- ......(Any Intrpolatable)

Easing Curve (Base Animation)

- Default
- EaseIn
- EaseOut
- EaseInEaseOut
- Linear
- SwiftOut
- BackEaseIn
- BackEaseOut
- BackEaseInOut
- BounceOut
- Sine
- Circ
- ExponentialIn
- ExponentialOut
- ElasticIn
- ElasticOut
- BounceReverse
- Custom(Double, Double, Double, Double)

On display

Funny demo's gif(s)

Chainable

1) Common

for (index,line) in leftLines.enumerate() {
    let delay = Double(index) * 0.2

    line.moveX(200).duration(2).easing(.SwiftOut).delay(delay)
        .then().moveX(-200).rotateY(1.43).easing(.SwiftOut)
        .makeColor(UIColor.greenColor()).repeatCount(100)
        .autoreverses().duration(2).animate()
 }

 for (index,line) in rightLines.enumerate() {
    let delay = Double(index) * 0.2

    line.moveX(-200).duration(2).easing(.SwiftOut).delay(delay)
        .then().moveX(200).rotateY(1.43).easing(.SwiftOut)
        .makeColor(UIColor.purpleColor()).repeatCount(100)
        .autoreverses().duration(2).animate()
 }

2) every step completion observable

animateView.makeSize(CGSizeMake(50, 150)).snap(0.3).completion({
                print("First step")
            })
            .then().moveX(-100).moveY(-50).anchorPoint(CGPointMake(1, 1)).duration(1).completion({
                print("Second step!")
            })
            .then().rotate(CGFloat(M_PI)).attachment(0.3, frequency: 0.8).completion({
                print("Third step!")
            })
            .then().moveY(500).completion({
                print("last step, all completion")
            })
            .animate()

Snap Curve

Attachment Curve

Gravity Curve

Push Curve

Basic Curve

To do

- File configurable
- Easily Interactive Animations
- Collision
- Mutilple View/Layer performance
- More demos

Licence

Copyright (c) 2016 

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Stellar open issues Ask a question     (View All Issues)
  • almost 3 years Swift 3 errors
  • about 3 years Buggy examples
Stellar open pull requests (View All Pulls)
  • Correct the spelling of CocoaPods in README
Stellar questions on Stackoverflow (View All Questions)
  • Can't install Stellar-core for OSX 10.11.2: C++ Compiler Issue '“/lib/cpp” fails sanity check'
  • Disable parallax on mobile with stellar
  • Stellar Parallax to run on desktop, static image on mobile device
  • Colliding stellar objects via multimethods in OO Prolog?
  • Why is Stellar parallax not working in desktop browsers on my site?
  • Stellar vertical offset - background scrolls down creating a whitespace
  • Wordpress : Uncaught TypeError: $.stellar is not a function
  • Stellar cross currency transaction doesn't work
  • Uncaught TypeError: $(...).stellar is not a function
  • Add a class to a "fixed" img in stellar parallax
  • Stellar in Wordpress
  • Using stellar-lib api with Meteor
  • CSS background image centered with Stellar JS
  • Stellar and contact form
  • Background-x position on stellar JS
  • stellar js moving objects horizontally issue
  • stellar js initialise with jquery only
  • Horizontal position movement on vertical scroll Stellar JS
  • Multiple vertical-offsets for multiple elements with JQuery Stellar?
  • Stellar JS directive in Angular JS
  • can't run android app on galaxy stellar
  • Stellar JS (parallax plugin) positioning issue
  • Jquery horizontal parallax effect using stellar js ?
  • Stellar animated background image effect
  • fading elements with iscroll and stellar
  • Stellar JS / Trigger function at certain height
  • Parallax Scrolling with Stellar - Images disappear at top, rather than go off screen
Stellar list of languages used
Other projects in Swift