All Projects → shoheiyokoyama → Syblinkanimationkit

shoheiyokoyama / Syblinkanimationkit

Licence: mit
SYBlinkAnimationKit is a blink effect animation framework for iOS, written in Swift.

Programming Languages

swift
15916 projects
swift3
66 projects

Projects that are alternatives of or similar to Syblinkanimationkit

Gradients
🌔 A curated collection of splendid 180+ gradients made in swift
Stars: ✭ 719 (+470.63%)
Mutual labels:  carthage, ux
Frontend
🌌 Vue based front-end.
Stars: ✭ 121 (-3.97%)
Mutual labels:  ux
Smart Webcomponents
Web Components & Custom Elements for Professional Web Applications
Stars: ✭ 110 (-12.7%)
Mutual labels:  ux
Swifty360player
iOS 360-degree video player streaming from an AVPlayer.
Stars: ✭ 118 (-6.35%)
Mutual labels:  carthage
Fierycrucible
A minimalist type safe Swift dependency injection library
Stars: ✭ 112 (-11.11%)
Mutual labels:  carthage
Sqift
Powerful Swift wrapper for SQLite
Stars: ✭ 119 (-5.56%)
Mutual labels:  carthage
Mmdb Swift
A tiny wrapper for libmaxminddb which allows you to lookup Geo data by IP address.
Stars: ✭ 111 (-11.9%)
Mutual labels:  carthage
Ui Ux
📝 Curated list for UI/UX Designers
Stars: ✭ 125 (-0.79%)
Mutual labels:  ux
Bettersegmentedcontrol
An easy to use, customizable replacement for UISegmentedControl & UISwitch.
Stars: ✭ 1,782 (+1314.29%)
Mutual labels:  carthage
Easytransitions
A simple way to create custom interactive UIViewController transitions
Stars: ✭ 1,592 (+1163.49%)
Mutual labels:  ux
Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+8474.6%)
Mutual labels:  carthage
Overrideit Sketchplugin
Overrideit is sketch plugin that allow designers to search in overridelist and overrides dropdowns, and with many other features.
Stars: ✭ 113 (-10.32%)
Mutual labels:  ux
Sample Currency Converter
A sample currency conversion Progressive Web App
Stars: ✭ 119 (-5.56%)
Mutual labels:  ux
Microfeatures Example
📦📱 Example of iOS app built using the uFeatures architecture
Stars: ✭ 112 (-11.11%)
Mutual labels:  carthage
Adpuzzleanimation
Inspired by Fabric - Answers animation. Allows to "build" given view with pieces. Allows to "destroy" given view into pieces
Stars: ✭ 123 (-2.38%)
Mutual labels:  carthage
Doormat
Let's take a scroll!
Stars: ✭ 111 (-11.9%)
Mutual labels:  ux
Sketchmine
Tools to validate, generate and analyse sketch files from web pages
Stars: ✭ 114 (-9.52%)
Mutual labels:  ux
Pixelwave
Fully customizable pixel wave animation for seamless page transitions.
Stars: ✭ 119 (-5.56%)
Mutual labels:  ux
Awesome Product Design
A collection of bookmarks, resources, articles for product designers.
Stars: ✭ 1,679 (+1232.54%)
Mutual labels:  ux
Croc
Swift emoji string parsing library
Stars: ✭ 124 (-1.59%)
Mutual labels:  carthage

Platform Carthage compatible Awesome Language GitHub license

SYBlinkAnimationKit is a blink effect animation framework for iOS, written in Swift

👀 Demo

There are 5 types of animation for component.

border

borderWithShadow

background

ripple

text

Features

  • Animation like blink effect for UIKit

  • The 5 types of animation : border, borderWithShadow, background, ripple, text

  • Easily usable 😝

  • Customizable in any properties for animation

  • [x] Support Swift 3.0 🎉

  • [x] Support @IBDesignable and @IBInspectable. you can change properties in Interface Builder(IB) inspector. then IB update your custom objects automatically.

  • [x] Compatible with Carthage

  • [x] SYButton

  • [x] SYLabel

  • [x] SYTextField

  • [x] SYView

  • [x] SYTableViewCell

  • [x] SYCollectionViewCell

Coming Soon

  • [ ] SYTextView
  • [ ] SYImageView

Demo App

Open Example/SYBlinkAnimationKit.xcworkspace and run SYBlinkAnimationKit-Example to see a simple demonstration.

To run the example project, run pod install from the Example directory first.

🔶 Usage

First, Import SYBlinkAnimationKit in class.

   import SYBlinkAnimationKit

SYBlinkAnimationKit is designed to be easy to use.

  1. Call the SYClass. for example,SYButton, SYLabel, SYTextField, etc.
  2. If you use custom animation, call animation method startAnimating(), stopAnimating()

SYButton

   let button = SYButton(frame: CGRect(x: 40, y: 50, width: 300, height: 50 ))
   button.setTitle("Border Animation", forState: .normal)
   button.animationType = .border
   view.addSubview(button)

  //Run Animation
  syButton.startAnimating()
  //End Animation
  syButton.stopAnimating()

Text Animation

Available Text Animation because of handleable text.

If you change text font size, name, you are supposed to call the `setFont()

    button
        .setFont(name: "ArialHebew", ofSize: 21)
        .startAnimating()

SYLabel

   let label = SYLabel(frame: CGRect(x: 40, y: 50, width: 300, height: 50 ))
   label.text = "Text Animation"
   label.labelTextColor =  .darkGray
   label.animationType = .text
   view.addSubview(label)

Text Animation

SYLabel Available Text Animation because of handleable text.

If you set text color, you are supposed to set the labelTextColor property. To change text font, use font method as with SYButton.

    label
        .setFont(name: "ArialHebew", ofSize: 21)
        .startAnimating()

SYTableViewCell

Inherit SYTableViewCell. customize your TableViewCell in UITableViewDataSource.

class YourCell: SYTableViewCell {
    ...
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("YourCell", forIndexPath: indexPath) as! YourCell
        cell.animationType = .background
        cell.startAnimating()
        return cell
    }

SYCollectionViewCell

Inherit SYCollectionViewCell. customize your CollectionViewCell in UICollectionViewDataSource.

class YourCell: SYCollectionViewCell {
    ...
func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
        let cell = collectionView.dequeueReusableCellWithReuseIdentifier("YourCell", forIndexPath: indexPath) as! YourCell
        cell.animationType = .background
        cell.startAnimating()
        return cell
    }

SYTextField

SYTextField stop animation. when a touch. but you can control this behavior.

   //The animation stop. when a touch. default is true
   syTextField.stopAnimationWithTouch = true

🔧 Customize animation properties

Animation Type

If you just want to change the types of animation, you can customize animationType.

   // default is border
   var animationType: AnimationType

   // Support 5 types of animation
   enum AnimationType: Int {
        case border
        case borderWithShadow
        case background
        case ripple
        case text
    }

inspectable

Set animationAdapter (with Integer) in place of animationType in IB.

  • border: 0
  • borderWithShadow: 1
  • background: 2
  • ripple: 3
  • text: 4

Animation Color

You can customize the properties of the color. These properties are inspectable.

   var animationBorderColor: UIColor
   var animationBackgroundColor: UIColor
   var animationTextColor: UIColor
   var animationRippleColor: UIColor

Animation Duration, Timing

You can customize animationTimingFunction, animationDuration.

   //default is linear
   var animationTimingFunction: SYMediaTimingFunction

   enum SYMediaTimingFunction: Int {
        case linear
        case easeIn
        case easeOut
        case easeInEaseOut
   }

   //default is 1.5
   public var animationDuration: CGFloat

inspectable

Set animationTimingAdapter (with Integer) in place of animationTimingFunction in IB.

  • linear: 0
  • easeIn: 1
  • easeOut: 2
  • easeInEaseOut: 3

Customize Animatable Text

You can customize Animatable Text alignment. Support 9 types of alignment. Available SYButton, SYLabel now.

    var textAlignmentMode: TextAlignmentMode

    enum TextAlignmentMode {
        case topLeft, topCenter, topRight
        case left, center, right
        case bottomLeft, bottomCenter, bottomRight
    }

Whether animating or not

If SYClass is in middle of animation, this property is true

   public var isAnimating: Bool

💻 Installation

CocoaPods

SYBlinkAnimationKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "SYBlinkAnimationKit"

Carthage

Add the following line to your Cartfile:

github "shoheiyokoyama/SYBlinkAnimationKit"

📝 Requirements

  • iOS 8.3+
  • Xcode 9.0+
  • Swift 3.2+

☕️ Author

Shohei Yokoyama, [email protected]

🔓 License

SYBlinkAnimationKit is available under the MIT license. See the LICENSE file for more info.

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].