

GitHub - cruisediary/Pastel: ? Gradient animation effect like Instagram
source link: https://github.com/cruisediary/Pastel
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md
Pastel
? Gradient animation effect like Instagram
Example
override func viewDidLoad() { super.viewDidLoad() let pastelView = PastelView(frame: view.bounds) // Custom Direction pastelView.startPastelPoint = .bottomLeft pastelView.endPastelPoint = .topRight // Custom Duration pastelView.animationDuration = 3.0 // Custom Color pastelView.setColors([UIColor(red: 156/255, green: 39/255, blue: 176/255, alpha: 1.0), UIColor(red: 255/255, green: 64/255, blue: 129/255, alpha: 1.0), UIColor(red: 123/255, green: 31/255, blue: 162/255, alpha: 1.0), UIColor(red: 32/255, green: 76/255, blue: 255/255, alpha: 1.0), UIColor(red: 32/255, green: 158/255, blue: 255/255, alpha: 1.0), UIColor(red: 90/255, green: 120/255, blue: 127/255, alpha: 1.0), UIColor(red: 58/255, green: 255/255, blue: 217/255, alpha: 1.0)]) pastelView.startAnimation() view.insertSubview(pastelView, at: 0) }
? Customize Gradient Colors
Designed by Alexander Zaytsev, https://dribbble.com/anwaltzzz
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Pastel is written in Swift 4. iOS 8.0+ Required
Installation
Pastel is available through CocoaPods or Carthage.
Cocoapods
pod "Pastel"
Carthage
github "cruisediary/Pastel" ~> 0.4.0
Example
- Passcode: A simple Passcode application using RxSwift, ReactorKit, IGListKit with Pastel
Author
cruz, [email protected]
License
Pastel is available under the MIT license. See the LICENSE file for more info.
Recommend
-
85
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
-
54
README.md ~ soft era ~ syntax theme for Vim ? Light pastel syntax theme for cozy, cute coding & typing. ?
-
77
README.md Gradients ? A curated collection of 180 splendid gradients made in swift
-
72
README.md passcode ? Passcode for iOS ReactorKit, IGListKit
-
45
README.md True-color (it's 2016 already!) color scheme for Vim/Neovim. Port of Amy Wibowo's Fairyfloss....
-
44
README.md Comets ☄️ Comets: Animating Particles in Swift
-
7
How to Create a Pastel Gradient BackgroundWhat You'll Be CreatingIn the following steps, you will learn how to create a pastel gradient background in Adobe Illustrator and Adobe Photoshop. Cool and warm, this timeless trend will give a soothi...
-
7
CSS Gradient Animation · GitHub Instantly share code, notes, and snippets. CSS Gradient Animation .css-selector {...
-
6
Recreating the Gradient Mask Hover Effect from Evervault A recreation of the hover effect seen on the customer grid on the Evervault website. ...
-
3
The Goal Gradient Effect — How the Psychological Hack Motivates us Towards our GoalAll of us must have observed a situation in which whenever you are approaching the deadline of any exam you automatica...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK