diff --git a/site/user/METADATA b/site/user/METADATA index 6dd6513164..a050835e83 100644 --- a/site/user/METADATA +++ b/site/user/METADATA @@ -1,4 +1,4 @@ { - "dirOrder": ["sample", "quick", "api", "special"], + "dirOrder": ["sample", "modules", "quick", "api", "special"], "fileOrder": ["download", "build"] } diff --git a/site/user/modules/index.md b/site/user/modules/index.md new file mode 100644 index 0000000000..8e9c5ebbf0 --- /dev/null +++ b/site/user/modules/index.md @@ -0,0 +1,2 @@ +Library Modules +=============== diff --git a/site/user/modules/skottie.md b/site/user/modules/skottie.md new file mode 100644 index 0000000000..7fb3f86e3e --- /dev/null +++ b/site/user/modules/skottie.md @@ -0,0 +1,86 @@ +Anmiation Player +================ + +Skia now offers a performant, secure native player for JSON animations derived +from the Bodymovin plugin for After Effects. It can be used on any platform +where you are using Skia, including Android & iOS. + +The player aims to build upon the Lottie player widely used for animations +today, improving on the performance, feature set, and platform cohesiveness for +our clients. We are big fans of the Bodymovin format and where possible, +contributing advancements back to Bodymovin/Lottie. + +
+ +Sample JSON animations +---------------------- + +Here are some test samples rendering with Skia's animation player: + + + + + + + + + + +*Sample animations courtesy of the lottiefiles.com community + +
+ +Test server +----------- + +Test your Lottie files in our player at https://skottie.skia.org + +
+ +The code +-------- +Skia's animation code entry point can be found here on +[Googlesource](https://skia.googlesource.com/skia/+/master/modules/skottie/include/Skottie.h) +and [GitHub](https://github.com/google/skia/blob/master/modules/skottie/include/Skottie.h). +The code is part of Skia's library but can also be made available as a separate +package. + +
+ +Embedding examples +------------------ +Sample C code for using the Skottie native player can be found +[here](https://github.com/google/skia/blob/master/modules/skottie/src/SkottieTool.cpp). + +Android app code for inspiration can be found +[here](https://github.com/google/skia/tree/master/platform_tools/android/apps/skottie). + +Example code embedding Skottie into our Viewer app is +[here](https://github.com/google/skia/blob/master/tools/viewer/SkottieSlide.cpp). + +The Viewer or Skottie Android apps can be built following [these](https://skia.org/user/sample/viewer) +instructions.