• Stars
    star
    136
  • Rank 266,678 (Top 6 %)
  • Language
    Swift
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A GPU accelerated transition library makes use of displacement maps to create distortion effects.

YUDisplacementTransition

Version License Platform

A GPU accelerated transition library which makes use of displacement maps to create distortion effects.

Inspired by hover-effect.

Built with MetalPetal.

Example

example 1 example 2

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

Usage

Displacement Map

A displacement map is a image file used to create distortion effects for the transition.

YUDisplacementTransition.Options

displacementIntensity Intensity of the distortion effect.

duration Transition duration.

timingFunction Timing function for the transition. Defaults: CubicEaseOut. More timing functions can be found at AHEasing.

angle The angle applied to the distortion effect, in radian.

YUViewControllerDisplacementTransition

Conforms to UIViewControllerAnimatedTransitioning protocol, can be used in view controller transitions.

YUCGImageDisplacementTransition

Can be used to transition between two CGImages.

YUDisplacementTransition

Can be used to transition between two MTIImages.

Installation

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

pod 'YUDisplacementTransition'

Credits

Robin Dela for the javascript library hover-effect.

Photos from Unsplash.

Live demo by Codrops.

License

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

More Repositories

1

YUCIHighPassSkinSmoothing

An implementation of High Pass Skin Smoothing using Apple's Core Image Framework
Objective-C
1,232
star
2

Vivid

Filters and Utilities for Core Image
Objective-C
478
star
3

WUEmoticonsKeyboard

Customizable emotion icons keyboard for iOS.
Objective-C
339
star
4

YUGLTransition

OpenGL based transition for iOS.
Objective-C
201
star
5

YUGPUImageHighPassSkinSmoothing

An implementation of High Pass Skin Smoothing using GPUImage
Objective-C
136
star
6

MetalLibraryArchive

Extract Metal functions from .metallib files.
Swift
114
star
7

WUTextSuggestion

A text suggestion toolkit for iOS.
Objective-C
81
star
8

WAAccountStore

A universal and extensible account system
Objective-C
53
star
9

HexagonalBokehBlur

An implementation note for "Hexagonal Bokeh Blur Filter" in MetalPetal.
49
star
10

Accelerated-CLAHE

Accelerated Contrast Limited Adaptive Histogram Equalization
40
star
11

YUCIImageView

An image view for rendering CIImage with Metal/OpenGL/CoreGraphics. Available on iOS and OS X.
Objective-C
37
star
12

YUGPUImageCVPixelBufferInput

CVPixelBuffer input for GPUImage, iOS
Objective-C
31
star
13

TDWatchInterfaceMenu

Add menu item with a block as it's action handler to `WKInterfaceController`
Objective-C
31
star
14

UIControl-Sound

A simple UIControl category for adding sounds to UI controls such as UIButton, UISwitch, UISegmentedControl, UITextField, etc.
Objective-C
30
star
15

IdentityCLUTImageGenerator

Generate 2D identity color lookup table images.
Swift
18
star
16

MetalLibraryExplorer

Parse and disassemble .metallib files in browser
JavaScript
18
star
17

MDSOfferView

A view that imitates the download/offer button in the App Store app.
Objective-C
16
star
18

NSTimer-WeakTarget

A NSTimer category which adds the support of weak target for NSTimer.
Objective-C
15
star
19

Motivate-Desktop

Motivate Desktop for WordsMotivate.me
C#
12
star
20

LogDispatcher.Swift

A more powerful println(_:)
Swift
11
star
21

ColorLookupTable2Cube

Convert color lookup table images to Adobe Cube LUT files (.cube)
Swift
10
star
22

YUSCNSceneCIRenderExtension

Render a SCNScene to CIImages.
Objective-C
6
star
23

WAKeyValuePersistenceStore

A file based Key-Value persistence store for iOS and OS X.
Objective-C
6
star
24

AudioAlignment

Estimation of audio alignment relative to a given reference.
Swift
4
star
25

ThinPlateSplineTransform

TPS for Apple platforms.
Swift
3
star
26

AudioPrism

AudioPrism implements the `AnalyserNode` functionality defined in the Web Audio API.
Swift
3
star
27

llvm-wasm

Workflows that complie LLVM to WebAssembly using emscripten
2
star
28

BRAVIATVRemoteGuide

2
star
29

TuriObjectDetectionDataAnnotator

An Object Detection Data Annotator for Turi Create
Swift
2
star
30

UserDefaultsBacked

Swift
2
star