Codefluss Logo

Projekt erstellen

Erstellt eine neue CSS-Animation im Design-System eines Projekts.

Tool Name

create_animation

Beschreibung

Dieses Tool erstellt eine neue CSS-Keyframe-Animation im Design-System. Animationen ermöglichen komplexe, mehrstufige BewegungsablĂ€ufe fĂŒr UI-Elemente. Die Animation wird zunĂ€chst als Draft gespeichert und durchlĂ€uft einen Review-Workflow, bevor sie in der Produktion verfĂŒgbar ist.

Parameter

ParameterTypRequiredBeschreibung
namestringJaEindeutiger Name der Animation (z.B. "fadeIn", "slideUp")
keyframesstringJaCSS-Keyframes-Definition
durationstringJaAnimationsdauer (z.B. "300ms", "0.5s")
timingFunctionstringNeinTiming-Funktion (z.B. "ease", "linear", "cubic-bezier(...)")
projectIdstringJaID des Projekts, zu dem die Animation gehört

Beispiel Request

{ "name": "fadeIn", "keyframes": "from { opacity: 0 } to { opacity: 1 }", "duration": "300ms", "timingFunction": "ease-out", "projectId": "proj_abc123" }

Beispiel Response

{ "success": true, "data": { "id": "animation_xyz789", "name": "fadeIn", "keyframes": "from { opacity: 0 } to { opacity: 1 }", "duration": "300ms", "timingFunction": "ease-out", "projectId": "proj_abc123", "status": "draft", "createdAt": "2026-02-04T10:30:00Z", "createdBy": "user_123" } }

Hinweise

  • Animationen werden als Draft gespeichert und erfordern Review vor Aktivierung
  • Audit-Log wird erstellt mit source: "mcp"
  • Keyframes werden auf valide CSS-Syntax geprĂŒft
  • Doppelte Namen innerhalb eines Projekts sind nicht erlaubt

Verwandte Tools