Skip to content

rbtech/fuse-lottie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuse-Lottie

Requirements

Fuse 1.10+

Install

  1. Add this source as a project of your fuse project e.g. MyApp/Projects/Fuse-Lottie.
  2. Add the following lines to your .unoproj, taking into account your project directory.
  "Projects": [
    "Projects/Fuse-Cocoapods/cocoapods_include.unoproj",
    "Projects/Fuse-Lottie/Lottie.unoproj"
  ]
  1. Install this version of BodyMovin for use with Lottie v2.5.3

Usage

  1. Copy your .json animations into a folder such as MyApp/Assets/Animations
  2. Add the following to your .unoproj to bundle the animations
"Includes": [
  "Assets/Animations/*.json:Bundle"
]
  1. Add the component to your UX markup (note: it will work on the device)
<NativeViewHost Width="100%" Height="320">
	<RBT.Animation.Lottie ux:Name="myPlayer" File="{urlToJSON}" ContentMode="{contentMode}" LoopAnimation="{loopAnimation}" Play="{play}" Pause="{pause}" Stop="{stop}" Progress="{progress}" AutoReverseAnimation="{autoReverseAnimation}" AnimationCompleted="{animationCompleted}" />
</NativeViewHost>

See Full Example App for available options.

Some Lottie Animation Notes