|
| 1 | +# AnimateToCSS |
| 2 | + |
| 3 | +[简体中文](README.zh.md) | English |
| 4 | + |
| 5 | +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? |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +## 📖 Table of Contents |
| 10 | + |
| 11 | +- [Key Features](#-key-features) |
| 12 | +- [System Requirements](#system-requirements) |
| 13 | +- [Installation](#installation) |
| 14 | + - [Method 1: Using ZXP Installer](#method-1-using-zxp-installer-recommended) |
| 15 | + - [Method 2: Manual Installation](#method-2-manual-installation) |
| 16 | + - [Enable Plugin](#enable-plugin) |
| 17 | +- [Features](#features) |
| 18 | + - [Two Export Modes](#two-export-modes) |
| 19 | + - [Multi-language Support](#multi-language-support) |
| 20 | +- [Usage Guide](#usage-guide) |
| 21 | + - [1. Mark Layers](#1-mark-layers) |
| 22 | + - [2. Export Animation](#2-export-animation) |
| 23 | + - [3. Check Status](#3-check-status) |
| 24 | + - [4. Get Keyframe Information](#4-get-keyframe-information) |
| 25 | +- [Common Issues](#common-issues) |
| 26 | +- [Feedback & Donate](#feedback--donate) |
| 27 | + |
| 28 | +## ✨ Key Features |
| 29 | + |
| 30 | +- **Support for Keyframe Export** |
| 31 | +- **Quick Access to Layer Keyframe Information** |
| 32 | +- **Multiple Properties Support**: Position, Scale, Rotation, Opacity, Precomps and Parent-child Relationships |
| 33 | +- **Developer Friendly**: Generate clean, maintainable CSS code with cubic-bezier timing functions |
| 34 | +- **Multi-language Support**: Available in 20+ languages including Chinese, English, Japanese, and more |
| 35 | + |
| 36 | +### Keywords |
| 37 | +`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` |
| 38 | + |
| 39 | +## 📖 Table of Contents |
| 40 | + |
| 41 | +- [Key Features](#-key-features) |
| 42 | +- [System Requirements](#system-requirements) |
| 43 | +- [Installation](#installation) |
| 44 | + - [Method 1: Using ZXP Installer](#method-1-using-zxp-installer-recommended) |
| 45 | + - [Method 2: Manual Installation](#method-2-manual-installation) |
| 46 | + - [Enable Plugin](#enable-plugin) |
| 47 | +- [Features](#features) |
| 48 | + - [Two Export Modes](#two-export-modes) |
| 49 | + - [Multi-language Support](#multi-language-support) |
| 50 | +- [Usage Guide](#usage-guide) |
| 51 | + - [1. Mark Layers](#1-mark-layers) |
| 52 | + - [2. Export Animation](#2-export-animation) |
| 53 | + - [3. Check Status](#3-check-status) |
| 54 | + - [4. Get Keyframe Information](#4-get-keyframe-information) |
| 55 | +- [Common Issues](#common-issues) |
| 56 | +- [Feedback & Support](#feedback--support) |
| 57 | + |
| 58 | +## System Requirements |
| 59 | + |
| 60 | +- Adobe After Effects 2022 (other versions haven't been tested yet) |
| 61 | + |
| 62 | +## Installation |
| 63 | + |
| 64 | +### Method 1: Using ZXP Installer (Recommended) |
| 65 | + |
| 66 | +1. Download and install [ZXP Installer](https://aescripts.com/learn/zxp-installer/) |
| 67 | + |
| 68 | +2. Install the plugin |
| 69 | + - [Download ZXP package](https://github.com/emmaChengreen/animateToCSS_release/releases/latest) `animateToCSS.zxp` |
| 70 | + - Open ZXP Installer |
| 71 | + - Drag the downloaded `animateToCSS.zxp` file into the ZXP Installer window |
| 72 | + - Or click the "File" menu button to select the `animateToCSS.zxp` file |
| 73 | + - Wait for installation to complete |
| 74 | + |
| 75 | +### Method 2: Manual Installation |
| 76 | + |
| 77 | +1. [Download ZIP package](https://github.com/emmaChengreen/animateToCSS_release/releases/latest) `animateToCSS.zip` |
| 78 | +2. Extract the ZIP file into a folder |
| 79 | +3. Copy the folder to After Effects extensions directory: |
| 80 | + |
| 81 | + - Windows |
| 82 | + ``` |
| 83 | + C:\Program Files\Adobe\Common\CEP\extensions |
| 84 | + ``` |
| 85 | + or user directory (recommended): |
| 86 | + ``` |
| 87 | + C:\Users\[username]\AppData\Roaming\Adobe\CEP\extensions |
| 88 | + ``` |
| 89 | + |
| 90 | + - macOS |
| 91 | + ``` |
| 92 | + /Library/Application Support/Adobe/CEP/extensions |
| 93 | + ``` |
| 94 | + |
| 95 | +### Enable Plugin |
| 96 | + |
| 97 | +1. Restart After Effects |
| 98 | +2. Menu Bar -> Window -> Extensions -> AnimateToCSS |
| 99 | + |
| 100 | +## Features |
| 101 | + |
| 102 | +### Multi-language Support |
| 103 | + |
| 104 | +| Language Type | Supported Languages | |
| 105 | +| ------------- | ------------------------------------------------------------- | |
| 106 | +| East Asian | Simplified Chinese, Traditional Chinese, Cantonese, Japanese, Korean | |
| 107 | +| European | English, French, German, Spanish, Italian, Portuguese, Russian | |
| 108 | +| Nordic | Swedish, Danish, Norwegian, Finnish | |
| 109 | +| East European | Czech, Hungarian, Polish, Romanian, Ukrainian | |
| 110 | +| Others | Turkish, Vietnamese | |
| 111 | + |
| 112 | +### Two Export Modes |
| 113 | + |
| 114 | +| Feature Type | Frame-by-Frame Export Mode | Keyframe and Bezier Export Mode | Unsupported Features | |
| 115 | +| ------------ | ------------------------- | ------------------------------- | ------------------- | |
| 116 | +| Best For | Complex animations<br>Complete reproduction | Simple to medium complexity animations<br>Easy manual adjustment | - | |
| 117 | +| Layer Types | • Precomps<br>• Text<br>• Solid<br>• Null<br>• Image | • Precomps<br>• Text<br>• Solid<br>• Null<br>• Image | • PSD layers<br>• Shape layers (WIP)<br>• Camera layers<br>• Light layers | |
| 118 | +| Properties | • Position (2D/3D)<br>• Scale<br>• Rotation<br>• Opacity<br>• Parent-child | • Position (2D/3D)<br>• Scale<br>• Rotation<br>• Opacity<br>• Parent-child | • Blur, glow effects<br>• Mask animations<br>• Shape animations<br>• Stroke animations | |
| 119 | +| Animation Features | • Expression support<br>• Curve animation support<br>• Larger code size | • Bezier curve optimization<br>• Clean readable code<br>• Easy to adjust manually | | |
| 120 | + |
| 121 | +## Usage Guide |
| 122 | + |
| 123 | +### It's recommended to save your file before each export. |
| 124 | +### Remember to select the composition you want to export before exporting. |
| 125 | +### In frame-by-frame export mode, code size is directly related to frame rate - higher frame rates result in larger code size. |
| 126 | + |
| 127 | +### 1. Mark Layers |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | +Select the layers you want to export and click the mark button. Unsupported layers will be marked in red. |
| 132 | + |
| 133 | +### 2. Export Animation |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | +Click the "Export Animation" button to generate HTML+CSS code. |
| 138 | + |
| 139 | +### 3. Check Status |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | +If issues occur, you can check the export content and warning messages in the status panel. Click to locate the layer in AE. |
| 144 | + |
| 145 | +### 4. Get Keyframe Information |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | +Select a layer and click "Get Keyframe Info" to view and copy animation data |
| 150 | +Including: animation start time, keyframe times, keyframe values, bezier values, and animation duration. |
| 151 | + |
| 152 | +## Common Issues |
| 153 | + |
| 154 | +| Issue | Cause | Solution | |
| 155 | +| ----- | ----- | -------- | |
| 156 | +| Text Layer Misalignment | • Text layer used as parent<br>• Too many nested parent-child relationships | • Avoid using text layers as parents<br>• Simplify parent-child hierarchy | |
| 157 | +| Precomp Issues | • Deep precomp nesting<br>• Complex parent-child relationships | • Control precomp levels<br>• Simplify precomp structure | |
| 158 | +| 3D Rotation in Bezier Mode Still Uses Frame-by-frame | 3D rotation implementation not perfect in Bezier mode (WIP) | • Wait for future updates | |
| 159 | + |
| 160 | +## Feedback & Donate |
| 161 | + |
| 162 | +If you encounter any issues or have suggestions for improvement, please feel free to: |
| 163 | + |
| 164 | +1. [Submit an issue](https://github.com/emmaChengreen/animateToCSS_release/issues/new?template=bug_report_en.md) - Report bugs or request features |
| 165 | +2. [View existing issues](https://github.com/emmaChengreen/animateToCSS_release/issues) - Check if your issue has already been reported |
| 166 | + |
| 167 | +### How to Use the Bug Report Template |
| 168 | + |
| 169 | +1. Click the "Submit an issue" link above |
| 170 | +2. Choose the "Bug Report" template |
| 171 | +3. The template will load automatically with the following sections: |
| 172 | + - Bug Description: Describe the issue in detail |
| 173 | + - Steps to Reproduce: List the specific steps to reproduce the issue |
| 174 | + - Expected Behavior: Explain what you expected to happen |
| 175 | + - Environment: Fill in your system and software versions |
| 176 | + - Additional Context: Optional screenshots or extra information |
| 177 | + |
| 178 | +### Reporting Guidelines |
| 179 | + |
| 180 | +- Please provide as much information as possible so I can locate the issue quickly |
| 181 | +- Include screenshots or error messages if available |
| 182 | +- Before submitting, check existing issues to avoid duplicates |
| 183 | + |
| 184 | +### Support & Donate |
| 185 | + |
| 186 | +If you find this project helpful, feel free to buy me a coffee! |
| 187 | + |
| 188 | +<div align="center"> |
| 189 | + <table> |
| 190 | + <tr> |
| 191 | + <td align="center"> |
| 192 | + <a href="https://www.paypal.com/paypalme/emmaChengreen/10"> |
| 193 | + <img src="./readmeImg/donate_paypal_10.png" alt="PayPal $10" width="200"/> |
| 194 | + </a> |
| 195 | + </td> |
| 196 | + <td align="center"> |
| 197 | + <a href="https://www.paypal.com/paypalme/emmaChengreen/5"> |
| 198 | + <img src="./readmeImg/donate_paypal_5.png" alt="PayPal $5" width="200"/> |
| 199 | + </a> |
| 200 | + </td> |
| 201 | + <td align="center"> |
| 202 | + <img src="./readmeImg/donate_wechat_888.png" alt="WeChat Pay" width="200"/> |
| 203 | + </td> |
| 204 | + <td align="center"> |
| 205 | + <img src="./readmeImg/donate_alipay_888.png" alt="Alipay" width="200"/> |
| 206 | + </td> |
| 207 | + </tr> |
| 208 | + </table> |
| 209 | +</div> |
0 commit comments