Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creator Plugin Examples

Example plugins for LottieFiles Creator.

Getting Started

These plugins are written using TypeScript. Creator provides TypeScript types for the Plugin API. This means that if you're writing plugin with TypeScript, you'll get helpful code hints, and will be able to catch errors early.

To preview these plugins in Creator, you'll need to compile the code into HTML and JavaScript or create a local development URL. Here's how:

Install dependencies

npm install

Compile an example

To compile an HTML plugin:

cd basic-plugin-html
npx tsc

To compile a React plugin:

cd basic-plugin-react
npm build

Or create a local development URL for React plugins:

cd basic-plugin-react
npm run dev

Load in Creator

  1. Open LottieFiles Creator
  2. Click Plugins in the left sidebar
  3. Click DevelopNew plugin
  4. Serve the example folder locally and enter the URL, or zip the distribution files (manifest.json, plugin.js, ui.html) and upload it

Examples

Getting started

Example Description
basic-plugin-html Minimal HTML/JS plugin
basic-plugin-react Minimal React + Vite plugin
basic-plugin-react-with-ui-lib React + Vite plugin using the Creator Plugins UI library and Tailwind

Shapes and styling

Example Description
creating-shapes Create rectangles, ellipses, polygons, stars, and paths
grouping-shapes Group shapes together
styling-nodes Add fills, gradients, and strokes

Animation

Example Description
animating-transforms Animate position, rotation, scale, opacity
animating-shape-properties Animate shape-specific properties
animation-easing Apply easing curves to keyframes
updating-animation Read and modify existing keyframes

Assets and data

Example Description
importing-assets Import Lottie, SVG, and images
storing-data Persist data with clientStorage and node.data
network-requests Fetch data from external APIs

External libraries

Example Description
external-libs-html Use CDN libraries in HTML plugins
external-libs-react Use npm packages in React plugins

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages