← Back to Guides

    Customizing Animation Colors & Properties

    Change animation colors to match your brand, adjust animation speed, and customize properties without re-exporting files.

    Updated: December 2024Read time: 7 minutes

    Why Customize Animations?

    Downloaded or pre-built animations rarely match your brand colors perfectly. Customizing animations allows you to maintain brand consistency while reusing quality animation assets. Whether you need to change colors, adjust timing, or modify properties, customization is essential for a polished final product.

    Color Customization Guide

    Understanding Color in Lottie Animations

    Lottie animations store colors as RGB or HSL values in the JSON file. Each element that has color—strokes, fills, shadows—can be independently modified. Understanding this structure helps you make targeted changes without affecting other elements.

    Method 1: Using LotifyAI's Color Editor

    LotifyAI provides an intuitive interface for changing animation colors:

    1. Upload your animation: Use LotifyAI's preview tool
    2. Access color editor: Look for the color customization options
    3. Select element to modify: Click on the part of the animation you want to change
    4. Choose new color: Use the color picker or enter hex codes
    5. Preview changes: See the result in real-time
    6. Download modified JSON: Save your customized version

    Method 2: Manual JSON Editing

    For advanced users comfortable with JSON, you can edit colors directly. JSON animations contain color data in this format:

    "c": {k": [1, 0, 0]} // Red in [R, G, B] format (0-1 scale)

    Use Find & Replace to change specific color values throughout the file. Always backup the original before making changes.

    Brand Color Matching

    Converting Your Brand Colors

    Your brand likely uses hex colors (like #3B82F6). Convert these to RGB for use in animation JSON:

    Hex to RGB Conversion

    #3B82F6 converts to:

    - Decimal: RGB(59, 130, 246)

    - Normalized (0-1): [0.231, 0.510, 0.965]

    Best Practices for Color Matching

    • Test on different backgrounds: Colors appear differently on white vs dark backgrounds
    • Maintain contrast: Ensure text/elements on colored backgrounds remain readable
    • Consider accessibility: Use color contrast checkers to ensure WCAG compliance
    • Use brand guidelines: Follow your brand's official color specifications
    • Test on device: Preview on actual screens where animations will be displayed

    Speed and Timing Adjustments

    Changing Animation Speed

    Animation speed significantly affects user experience. Too fast feels jarring, too slow feels sluggish. Lottie provides frame rate control and timing adjustments.

    Methods to Adjust Speed

    In Code (JavaScript)

    lottie.setSpeed(1.5); // Speed up by 50%

    Adjust playback speed at runtime without modifying the file.

    Modify Duration

    Change the "ip" (in point) and "op" (out point) values in JSON to shorten/lengthen animation.

    Adjust Frame Rate

    Change "fr" (frame rate) value in JSON. Higher = more frames = smoother but larger file size.

    Property Customization

    Common Properties You Can Modify

    • Opacity/Transparency: Make elements fade in/out or semi-transparent
    • Scale/Size: Enlarge or shrink animated elements
    • Stroke Width: Thicken or thin lines and strokes
    • Rotation: Rotate elements at different angles
    • Position: Move elements to different locations
    • Blur/Effects: Add or remove visual effects

    Advanced Customization Techniques

    Gradient Customization

    Some animations use gradients. Customize gradient colors to match your brand by modifying the gradient stop colors in the JSON. Each gradient has multiple color stops that can be individually adjusted.

    Layer Visibility

    If an animation has multiple layers, you can hide specific layers by setting their opacity to 0 or removing them from the JSON. This is useful when you want to reuse an animation but remove certain elements.

    Shape Morphing

    Advanced animations often include shape morphing effects. These are defined by path data in JSON. Careful modification of path values allows you to change which shapes appear during morphing.

    Workflow Best Practices

    ✓ Always Backup Original

    Keep the original unmodified animation file for reference and future adjustments.

    ✓ Preview Before Finalizing

    Always preview customized animations in their actual context (web, mobile, etc.) before deployment.

    ✓ Test Across Browsers

    Color rendering can vary slightly between browsers. Test on Chrome, Firefox, Safari, and Edge.

    ✓ Document Your Changes

    Keep notes on what you customized so you can replicate changes across multiple animations.

    ✓ Optimize After Customization

    Use LotifyAI to optimize your customized animations and ensure smallest file size.

    Conclusion

    Customizing animations to match your brand is a powerful way to maintain visual consistency while leveraging quality animation assets. Whether through simple color changes or advanced property modifications, LotifyAI makes the customization process fast and intuitive.

    Customize Your Animations

    Use LotifyAI's powerful customization tools to adjust colors, speed, and properties instantly.

    Start Customizing