generate_gsap_animation
Generate GSAP animation code for web elements by defining target, animation type (to, from, fromTo, set), properties, duration, delay, and easing.
Instructions
生成基础GSAP动画代码,支持多种动画类型和属性
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"target": "<target>",
"animationType": "<animationType>",
"properties": "<properties>"
},
"name": "generate_gsap_animation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ease | No | 缓动函数 | power2.out |
| delay | No | 延迟时间(秒) | |
| target | Yes | CSS选择器或元素引用 | |
| duration | No | 动画持续时间(秒) | |
| properties | Yes | 动画属性对象 | |
| animationType | Yes | 动画类型 |