lottiefiles
field formatter
field formatter preview

This project is not covered by Drupal’s security advisory policy.

This module simplifies the integration of Lottiefiles animation into your Drupal website by providing field formatter for File and Link field. With this module, you can seamlessly render uploaded Lottiefiles or links to lottiefiles as lottie animations, enhancing your website with dynamic and engaging visual content.

Lottiefiles, is a platform offering lightweight and scalable animations, perfect for enhancing your website's visual content, advertisements, and user engagement. By using Lottie files, you're able to add quick, clean, vector animations to your website without slowing down your site with heavy GIFs or large video assets. This means you can enrich your web content with dynamic visual elements while keeping your website's performance optimal.

Post-Installation

  1. Using lottiefiles using File: If you have a lottiefiles json file that you'd like to use, follow these steps:

    • Create a Drupal File Field: Set up a Drupal file field where you'll upload your Lottie JSON file.
    • Configure Manage Display: In the content type's Manage Display settings, locate the file field that you've created. Then, choose "Lottiefiles File Field Formatter" as the format option.
  2. Using a url to lottiefiles json file: If you are using a link to a Lottie JSON file, here's what you need to do:

    • Create a Drupal Link Field: Create a Drupal link field where you'll provide the URL to the Lottie JSON file.
    • Configure Manage Display: In the content type's Manage Display settings, find the link field you've added. Select "Lottiefiles Link Field Formatter" as the format option.
  3. Adjust Settings (Optional)
  4. Enjoy the Lottiefiles Animation

Similar projects

There are two similar modules:

  1. Lottifiles field: Provides a new drupal field for uploading the lottiefiles
  2. Media entity Lottie This module is intended to be used with core Media entity that will ship with 8.4.0.

This module is a lightweight solution that provides field formatters for Drupal core file and link fields.

Project information

Releases