Skip to content

AnimateToCSS is an After Effects plugin that exports AE animations to HTML + CSS code, similar to bodymovin but without requiring any third-party libraries. It also features one-click layer keyframe animation data extraction for easy development use. AnimateToCSS可以将 AE 动画导出为 HTML + CSS 代码,类似于 bodymovin,但无需安装任何第三方库。它还可以一键提取图层关键帧动画数据便于开发使用

Notifications You must be signed in to change notification settings

emmaChengreen/animateToCSS_release

Repository files navigation

AnimateToCSS

简体中文 | English

AnimateToCSS is an Adobe After Effects plugin developed by a designer that exports AE animations directly to HTML + CSS code with browser preview capability. It also provides one-click access to keyframe animation data from selected layers, making the designer-to-developer handoff process more efficient than ever. Why not give it a try?

Plugin Interface Preview

📖 Table of Contents

✨ Key Features

  • Support for Keyframe Export
  • Quick Access to Layer Keyframe Information
  • Multiple Properties Support: Position, Scale, Rotation, Opacity, Precomps and Parent-child Relationships
  • Developer Friendly: Generate clean, maintainable CSS code with cubic-bezier timing functions
  • Multi-language Support: Available in 20+ languages including Chinese, English, Japanese, and more

Keywords

after-effects-plugin css-animation motion-design animation-export web-animation designer-tools developer-tools ae-to-css keyframe-animation motion-graphics animation-workflow design-handoff front-end-development creative-tools adobe-extension

📖 Table of Contents

System Requirements

  • Adobe After Effects 2022 (other versions haven't been tested yet)

Installation

Method 1: Using ZXP Installer (Recommended)

  1. Download and install ZXP Installer

  2. Install the plugin

    • Download ZXP package animateToCSS.zxp
    • Open ZXP Installer
    • Drag the downloaded animateToCSS.zxp file into the ZXP Installer window
    • Or click the "File" menu button to select the animateToCSS.zxp file
    • Wait for installation to complete

Method 2: Manual Installation

  1. Download ZIP package animateToCSS.zip

  2. Extract the ZIP file into a folder

  3. Copy the folder to After Effects extensions directory:

    • Windows
    C:\Program Files\Adobe\Common\CEP\extensions 

    or user directory (recommended):

    C:\Users\[username]\AppData\Roaming\Adobe\CEP\extensions 
    • macOS
    /Library/Application Support/Adobe/CEP/extensions 

Enable Plugin

  1. Restart After Effects
  2. Menu Bar -> Window -> Extensions -> AnimateToCSS

Features

Multi-language Support

Language Type Supported Languages
East Asian Simplified Chinese, Traditional Chinese, Cantonese, Japanese, Korean
European English, French, German, Spanish, Italian, Portuguese, Russian
Nordic Swedish, Danish, Norwegian, Finnish
East European Czech, Hungarian, Polish, Romanian, Ukrainian
Others Turkish, Vietnamese

Two Export Modes

Feature Type Frame-by-Frame Export Mode Keyframe and Bezier Export Mode Unsupported Features
Best For Complex animations
Complete reproduction
Simple to medium complexity animations
Easy manual adjustment
-
Layer Types • Precomps
• Text
• Solid
• Null
• Image
• Precomps
• Text
• Solid
• Null
• Image
• PSD layers
• Shape layers (WIP)
• Camera layers
• Light layers
Properties • Position (2D/3D)
• Scale
• Rotation
• Opacity
• Parent-child
• Position (2D/3D)
• Scale
• Rotation
• Opacity
• Parent-child
• Blur, glow effects
• Mask animations
• Shape animations
• Stroke animations
Animation Features • Expression support
• Curve animation support
• Larger code size
• Bezier curve optimization
• Clean readable code
• Easy to adjust manually

Usage Guide

It's recommended to save your file before each export.

Remember to select the composition you want to export before exporting.

In frame-by-frame export mode, code size is directly related to frame rate - higher frame rates result in larger code size.

1. Mark Layers

Mark Layers

Select the layers you want to export and click the mark button. Unsupported layers will be marked in red.

2. Export Animation

Export Animation

Click the "Export Animation" button to generate HTML+CSS code.

3. Check Status

Status Panel

If issues occur, you can check the export content and warning messages in the status panel. Click to locate the layer in AE.

4. Get Keyframe Information

Keyframe Information

Select a layer and click "Get Keyframe Info" to view and copy animation data Including: animation start time, keyframe times, keyframe values, bezier values, and animation duration.

Common Issues

Issue Cause Solution
Text Layer Misalignment • Text layer used as parent
• Too many nested parent-child relationships
• Avoid using text layers as parents
• Simplify parent-child hierarchy
Precomp Issues • Deep precomp nesting
• Complex parent-child relationships
• Control precomp levels
• Simplify precomp structure
3D Rotation in Bezier Mode Still Uses Frame-by-frame 3D rotation implementation not perfect in Bezier mode (WIP) • Wait for future updates

Feedback & Donate

If you encounter any issues or have suggestions for improvement, please feel free to:

  1. Submit an issue - Report bugs or request features
  2. View existing issues - Check if your issue has already been reported

How to Use the Bug Report Template

  1. Click the "Submit an issue" link above
  2. Choose the "Bug Report" template
  3. The template will load automatically with the following sections:
    • Bug Description: Describe the issue in detail
    • Steps to Reproduce: List the specific steps to reproduce the issue
    • Expected Behavior: Explain what you expected to happen
    • Environment: Fill in your system and software versions
    • Additional Context: Optional screenshots or extra information

Reporting Guidelines

  • Please provide as much information as possible so I can locate the issue quickly
  • Include screenshots or error messages if available
  • Before submitting, check existing issues to avoid duplicates

Support & Donate

If you find this project helpful, feel free to buy me a coffee!

About

AnimateToCSS is an After Effects plugin that exports AE animations to HTML + CSS code, similar to bodymovin but without requiring any third-party libraries. It also features one-click layer keyframe animation data extraction for easy development use. AnimateToCSS可以将 AE 动画导出为 HTML + CSS 代码,类似于 bodymovin,但无需安装任何第三方库。它还可以一键提取图层关键帧动画数据便于开发使用

Topics

Resources

Stars

Watchers

Forks