你能否教我如何利用 CSS 关键帧动画和 JavaScript 交互为网站添加生动的过渡动画和视觉微动效?
程序员与代码开发Can you add animations and effects to your website using CSS and JavaScript?
标准定位职业:程序员与代码开发
•
落地应用场景:Can you add animations and effects to your website using CSS and JavaScript?
指令参数定制变量
修改下方变量,右侧的实时生成结果预览(Live Output)将同步进行中英文精准文本插值替换。
本指令调优最佳实践
- 01.如何结合 CSS Transform 与 Motion / GSAP 库为卡片悬浮与页面滚动添加丝滑平滑的微交互动画?
- 02.How to add animations and effects to your website using CSS and JavaScript.
实时生成结果预览 (Live Output)
变量插值 · 可直接复制
中文定制提示词 (Chinese Prompt)
如何借助 [开发库/原生技术] 为页面无缝集成 [交互特效/动态功能]?
英文对等提示词 (English Prompt)
How to add [Feature] using [Tools]?
一键直达 AI 平台测试
自动复制并打开
💡 使用技巧:将复制的内容直接粘贴给 ChatGPT、Claude 或 Gemini,即可获得高度结构化、切中业务要害的高质量解答。
中英对照 · Original EN
Can you add animations and effects to your website using CSS and JavaScript?
公式模板 · 示例
Formula (ZH)
如何借助 [开发库/原生技术] 为页面无缝集成 [交互特效/动态功能]?
Formula (EN)
How to add [Feature] using [Tools]?
示例 Example (ZH)
如何结合 CSS Transform 与 Motion / GSAP 库为卡片悬浮与页面滚动添加丝滑平滑的微交互动画?
示例 Example (EN)
How to add animations and effects to your website using CSS and JavaScript.
后台 API 调用与 SDK 极速联调示例
import { GoogleGenAI } from "@google/genai";
// 初始化 Google GenAI SDK (服务器端)
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
const response = await ai.models.generateContent({
model: "gemini-2.5-pro",
contents: ["你能否教我如何利用 CSS 关键帧动画和 JavaScript 交互为网站添加生动的过渡动画和视觉微动效?"],
config: {
systemInstruction: "如何借助 [开发库/原生技术] 为页面无缝集成 [交互特效/动态功能]?",
temperature: 0.1
}
});
console.log(response.text);
import { GoogleGenAI } from "@google/genai";
// 初始化 Google GenAI SDK (服务器端)
const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });
const response = await ai.models.generateContent({
model: "gemini-2.5-pro",
contents: ["你能否教我如何利用 CSS 关键帧动画和 JavaScript 交互为网站添加生动的过渡动画和视觉微动效?"],
config: {
systemInstruction: "如何借助 [开发库/原生技术] 为页面无缝集成 [交互特效/动态功能]?",
temperature: 0.1
}
});
console.log(response.text);
import OpenAI from "openai";
// 初始化 OpenAI 客户端
const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY });
const response = await client.chat.completions.create({
model: "gpt-4o",
messages: [
{ role: "system", content: "如何借助 [开发库/原生技术] 为页面无缝集成 [交互特效/动态功能]?" },
{ role: "user", content: "你能否教我如何利用 CSS 关键帧动画和 JavaScript 交互为网站添加生动的过渡动画和视觉微动效?" }
],
temperature: 0.2
});
console.log(response.choices[0].message.content);
import os
from google import genai
from google.genai import types
# 初始化 Google GenAI Python 客户端
client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
response = client.models.generate_content(
model="gemini-2.5-pro",
contents="你能否教我如何利用 CSS 关键帧动画和 JavaScript 交互为网站添加生动的过渡动画和视觉微动效?",
config=types.GenerateContentConfig(
system_instruction="如何借助 [开发库/原生技术] 为页面无缝集成 [交互特效/动态功能]?",
temperature=0.1,
),
)
print(response.text)
Prompt 场景全景生态协同矩阵
智能联动调优基座、高阶效能工具链与权威工程资讯百科
推荐调优基座模型
浏览全部模型
→
场景配套 AI 工具链
发现更多 AI 工具
→