Skip to content

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

License

Notifications You must be signed in to change notification settings

insidegui/KeyframesPlayer

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published