insidegui / KeyframesPlayer

A simple macOS app to preview animations created with Facebook's keyframes framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keyframes Player

A simple app to preview animations created with Facebook's keyframes framework and export them to Core Animation archives.

⬇️ DOWNLOAD LATEST RELEASE ⬇️

Using the export option

Render After Effects animations in your app without external dependencies

CAAR, or Core Animation archives, are files that hold trees of CALayers encoded using NSKeyedArchiver. Since Keyframes uses Core Animation to reconstruct animations created in After Effects, it's possible to export the animations as files that can be read in AppKit or UIKit apps later, without the need to include the Keyframes framework in the shipping app.

After exporting the .caar file, add it to your app's resources and use this code snippet (ObjC) or this one (Swift) to read the animation in your app. To check if the export worked, you can use CAAR Player on macOS to open the archive file. Not all features will work with this method, but I've found this to work with the most common shape and transform animations.

screenshot

About

A simple macOS app to preview animations created with Facebook's keyframes framework

License:BSD 2-Clause "Simplified" License


Languages

Language:Swift 70.7%Language:Objective-C 15.2%Language:Ruby 14.0%