Flux Product Docs
  • What is Flux?
  • Guides
    • Creating a Premium Video
    • Creating Your First Site
    • Creating a Countdown
    • Creating a Navigation Bar
    • Creating a Group
    • Custom 404 Page
    • Adding a Favicon to Your Site
    • Adding Videos to Your Site
    • Managing Your Guest List
    • Asset Management
    • Creating Sites from Site Templates
    • Publishing Site Versions
    • Advanced Debugging
  • Fundamentals
    • Key Concepts
    • Sites
    • Guests
    • Environments
      • Show Variables
    • Flows
      • Anatomy of a Node
      • Connecting Nodes and Building Flows
      • Passing Data
      • Scope
      • Interpolation
    • Keyboard Shortcuts
      • Keyboard Shortcuts - Page Editor
    • Animation States
    • Local Variables
    • Groups
  • Use Cases
    • For Designers
    • For Engineers
      • Custom CSS
      • Custom Modules
    • For Event Manager
      • Intercom Integration
  • Documentation
    • FAQ
    • Glossary
    • 🚀Show Controller
      • Modes
    • Domains and Subdomains
      • Hover
      • AWS Route 53
    • Premium Live Channels
    • Basic Video
    • Premium Video
      • AI Generated Subtitles
      • Supported Input Codecs and Containers
      • Supported Language Labels
      • Serverside Forensic Watermarking
    • Flow Nodes
      • Middleware
  • Modules
    • Access Code
    • Audio
    • Button
    • Carousel
    • Chat
    • Checkbox
    • Container
    • Countdown
    • Date
    • Embed
    • Image
    • Intercom
    • Link
    • Lottie
    • Page
    • Meter
    • Modal
    • Photobooth Gallery
    • Open Login
    • QR Code
    • Radio
    • Rich Text
    • Stack
    • Style
    • Spline
    • Switch
    • Text Input
    • Video
  • Template Guides
    • NatGeo FYC
      • Adding a Panel
    • Meow Wolf All Shrimps
  • 🚀Change Logs
    • July 12, 2024
    • June 08, 2024
    • April 26, 2024
    • April 12, 2024
    • March 29, 2024
    • March 15, 2024
    • March 1, 2024
    • September 2022
    • August 2022
    • July 2022
    • June 2022
Powered by GitBook
On this page
  • Overview
  • What is a Lottie File?
  • Properties
  • Source
  • Autoplay
  • Loop
  • Playback Direction
  • Broadcasters
  • On Frame
  • On Complete
  • Listeners
  • Play
  • Pause
  • Toggle
  • Restart
  • Go To Frame
  • Set Progress
  • Set Playback Direction

Was this helpful?

  1. Modules

Lottie

Last updated 1 year ago

Was this helpful?

Overview

The Lottie module enables the playback of Lottie animation in Flux sites.

What is a Lottie File?

A Lottie is an animation file format that allows you to ship animations on any platform as easily as shipping static assets. They are small files that work on any device and can scale up or down without pixelation. LottieFiles lets you create, edit, test, collaborate on and ship a Lottie in the easiest way possible.

Properties

Source

Default: Animation Above

The Lottie file containing the animation.

Only .json files are supported currently.

Autoplay

Default: True

Whether the animation should start playing when the Module is first displayed. If disabled, the first frame of the animation will be shown when the Module loads.

Loop

Default: True

Whether the animation should loop when it reaches the end of the animation. If disabled, the final frame will be shown when the animation completes.

Playback Direction

Default: Forwards

Whether the animation should play forwards or reversed.

Broadcasters

On Frame

Fires when the animations moves to a new frame.


On Complete

Fires when the animation completes. If Loop is enabled, this will not fire.


Listeners

Play

When triggered, plays the animation. If the animation is already playing, nothing happens.


Pause

When triggered, pauses the animation. If the animation is already paused, nothing happens.


Toggle

When triggered, toggles playback of the animation. If paused, starts playing. If playing, pauses.


Restart

When triggered, restarts playback of the animation from the first frame. If the animation was paused, it will automatically begin playing.


Go To Frame

Parameter
Type
Description

Frame

Number

The frame number to jump to

When triggered, jumps the animation the specified frame. The animation will retain it's current playback status - if playing, will play from the new frame - if paused, will pause at the new frame.

If the target frame is greater than the number of frames in the animation, it will jump to the last frame. If the target frame is less than 0, it will jump to the first frame.


Set Progress

Parameter
Type
Description

Process

Number

The percentage of the animation to jump to.

When triggered, jumps the animation to the specified percentage. The animation will retain it's current playback status - if playing, will play from the new frame - if paused, will pause at the new frame.

For example - if an animation is 120 frames long, 50% would jump to frame 60.

If the specified percentage is greater than 100%, it will advance to the last frame. If the specified percentage is less than 0%, it will set the animation to the first frame.


Set Playback Direction

Parameter
Type
Description

Direction

"forward" | "reverse"

The direction to playback the animation

When triggered, sets the playback direction of the animation to the specified direction. Playback status is retained - if playing, will continue playing in the specified direction, if paused, will remain paused.

From Lottie Themselves