All Projects → SoufianHossam → AnimationBuilder

SoufianHossam / AnimationBuilder

Licence: MIT license
A simple and easy-to-use wrapper class to deal with iOS animations.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to AnimationBuilder

flip view
A Flutter app with flip animation to view profiles of friends. 🌟
Stars: ✭ 69 (+283.33%)
Mutual labels:  animations, cardview
pycairo-animations
Pycairo Animation Library
Stars: ✭ 19 (+5.56%)
Mutual labels:  animations
Pathanimator
Moves a DOM element along an SVG path (or do whatever along a path...)
Stars: ✭ 251 (+1294.44%)
Mutual labels:  animations
particle-animations
Animate your iOS app with particle systems
Stars: ✭ 14 (-22.22%)
Mutual labels:  animations
Flutter-animations
A collection of Animations that aims to improve the user experience for your next flutter project.
Stars: ✭ 137 (+661.11%)
Mutual labels:  animations
react-bones
💀 Dead simple content loading components for React and React-Native. 💀
Stars: ✭ 42 (+133.33%)
Mutual labels:  animations
Motion Shapeofview
Explain how to use MotionLayout with ShapeOfView
Stars: ✭ 236 (+1211.11%)
Mutual labels:  animations
Android-Material-Design-Template
Android Material Design UI Template , with Google Design support , card view , butterknife , CoordinateLayout , CollapsingToolbar .
Stars: ✭ 56 (+211.11%)
Mutual labels:  cardview
MoalemYar
A personal project for class management, using various technologies like WPF, Entityframwork, CodeFirst, Sqlite, Migration and more
Stars: ✭ 53 (+194.44%)
Mutual labels:  cardview
DearPyGui Animate
DearPyGui_Animate is an add-on to bring DearPyGUI to life.
Stars: ✭ 34 (+88.89%)
Mutual labels:  animations
VinylShop
https://dribbble.com/shots/4996346-Vinyl-Shop-mobile-app
Stars: ✭ 30 (+66.67%)
Mutual labels:  animations
CameraButton
No description or website provided.
Stars: ✭ 31 (+72.22%)
Mutual labels:  animations
helium-animated-pages
A light spiritual succesor to neon-animated-pages using only css animations
Stars: ✭ 17 (-5.56%)
Mutual labels:  animations
flutter dribble login challenge
A flutter animation UI challenge.
Stars: ✭ 51 (+183.33%)
Mutual labels:  animations
vuenode-fullstack
Vue.Js & Node fullstack Single Page Application with Relational databases as backend using Sequelize. Live Demo:
Stars: ✭ 42 (+133.33%)
Mutual labels:  animations
Editly
Slick, declarative command line video editing & API
Stars: ✭ 3,162 (+17466.67%)
Mutual labels:  animations
Wortuhr ESP8266
Wortuhr mit ESP8266 WeMos D1 mini und NeoPixel WS2812B LEDs mit mp3 Sounds, Animationen, Transitions, Events und Spiele
Stars: ✭ 33 (+83.33%)
Mutual labels:  animations
manim
A community-maintained Python framework for creating mathematical animations.
Stars: ✭ 12,657 (+70216.67%)
Mutual labels:  animations
SSComposeCookBook
A Collection of major Jetpack compose UI components which are commonly used.🎉🔝👌
Stars: ✭ 386 (+2044.44%)
Mutual labels:  animations
Material-BottomBarLayout
🎉A material navigation bar library which has pretty animations and different ways of arrangement.
Stars: ✭ 56 (+211.11%)
Mutual labels:  animations

AnimationBuilder

A simple and easy-to-use wrapper class to deal with iOS animations.

Overview

How to use

Instanciate an object from AnimationBuilder, and provide it with the view you want to animate, then use the dot operator to access all it's properties. To run the animation just use .execute

AnimationBuilder(for: passwordTF)
            .translateX(view.frame.width)
            .damping(0.6)
            .duration(1.2)
            .execute(type: .transitional)

You have two options to execute the animation:

  • .transitional : Shifts the view to the desired location then animate it back to it's original location.
  • .permanent : Animate the view to new location permanently.

To run some code after the animation, use the completion block:

AnimationBuilder(for: cardView)
            .alpha(1, 0)
            .translateX(view.frame.width)
            .damping(0.8)
            .initialVeclocity(1)
            .options(.curveEaseOut)
            .duration(0.2)
            .execute(type: .permanent, completion: {
                self.dismiss(animated: true)
            })

Installation

Just include AnimationBuilder.swift in your project.

Demo

Check out the Example project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].