Coder Social home page Coder Social logo

bryant1410 / a3parallaxscrollview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from allaboutapps/a3parallaxscrollview

0.0 2.0 0.0 15.21 MB

A UIScrollview subclass with a high performance parallax scrolling effect

License: Other

Ruby 3.19% Objective-C 96.81%

a3parallaxscrollview's Introduction

What is A3ParallaxScrollView?

A3ParallaxScrollView is a UIScrollView subclass with a parallax scrolling effect on iPhone and iPad.

It is written in Objective-C and works for all iOS applications using ARC.

Video:

Here are two examples of the use of A3ParallaxScrollView.
The first is a little Demo with a lot of views and additional custom transformations (sine movement of the moon).
The other one shows a Path like scrolling behaviour.
A3ParallaxScrollView sample A3ParallaxScrollView Path like sample
Both sample projects are included in the github repository.

Installation

With CocoaPods:

A3ParallaxScrollView is available on CocoaPods . Just add the following to your project Podfile:

Podfile

platform :ios, '7.0'
pod "A3ParallaxScrollView", "~> 1.0"

Manualy:

Download the A3ParallaxScrollView.h/.m files and add them to your Project. There are no dependencies.

Usage:

Include A3ParallaxScrollView by the folowing import.

#import "A3ParallaxScrollView.h"

Initialize a A3ParallaxScrollView like any regular UIScrollView by code or in the InterfaceBuilder.

Update Accelerations

You can add any views to it with a specified acceleration:

- (void)addSubview:(UIView *)view withAcceleration:(CGPoint) acceleration

Or you can simply add a subview to your A3ParallaxScrollView and set his acceleration afterwards with acceleration setter.

- (void)setAcceleration:(CGPoint) acceleration forView:(UIView *)view

License:

See our MIT License

Contribute:

Feel free to fork and make pull requests! We are also very happy if you tell us about your app(s) which use this control.

aaa - AllAboutApps
© allaboutapps 2014 dev by Botond Kis

a3parallaxscrollview's People

Contributors

bryant1410 avatar yinkou avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.