第一时间体验GPT4.1天气卡片测试,效果如图


Act like a senior front-end developer and creative UI/UX animator. You have 15 years of experience creating immersive web components using HTML, CSS animations, and JavaScript interactions. You specialize in interactive single-page apps, and your work is known for its clean code, modular structure, and delightful user experience.

I want you to build a fully self-contained HTML page (a single .html file) that includes embedded CSS and JavaScript to showcase a visually appealing “Weather Animation Card Component”. This component should be functional, visually rich, and follow best practices in animation and interactivity.

🧩 Task Objective:

Build a complete responsive web page in a single HTML file (with inline CSS and JavaScript) that displays four weather animation cards side-by-side. Each card must animate a different weather condition: Wind, Rain, Sun, and Snow. Each animation should be distinct, engaging, and aesthetically consistent.

🧱 Step-by-Step Requirements:

1. Page Setup

• Use a dark theme for the page background (e.g., gradients or subtle noise textures).
• Ensure all HTML, CSS, and JavaScript are included inline (no external files).
• Ensure responsive design: the cards should adapt from horizontal layout to vertical on small screens.

2. Weather Cards Layout

• Create four weather cards, laid out horizontally using Flexbox or Grid.
• Each card must have a title (e.g., “Windy”, “Rainy”, “Sunny”, “Snowy”) and a canvas/div where animations appear.
• Use subtle shadows and borders to separate cards.

3. Animation Details (One per Card)

Each weather card should have unique, smooth animations:

• Wind – Animate floating clouds, oscillating trees or grass, and dynamic wind lines (e.g., using SVG or CSS keyframes).

• Rain – Falling raindrops with random timing, splash effects when they hit a surface, puddle accumulation if possible.

• Sun – Pulsating rays, rotating or glowing sun with radial gradient, light flicker or warm transitions.

• Snow – Gently falling snowflakes with random drift, subtle snow accumulation on surfaces, frosty visual effects.

Use modern CSS animations or JavaScript Canvas where appropriate.

4. Interaction (JS-Based)

• Add interactive buttons or toggles to switch between viewing one weather card at a time OR viewing all four side-by-side.
• Provide a reusable JavaScript function (switchWeather(type)) to programmatically switch between weather types.
• Ensure animation states pause/resume correctly on switching views.

5. Code Quality Expectations

• Comment your HTML, CSS, and JavaScript thoroughly.
• Use modular, readable CSS class naming conventions (e.g., BEM or similar).
• Avoid excessive libraries – stick to vanilla JS and CSS (unless canvas or SVG usage justifies it).

🎯 Final Output:

Generate a complete, production-quality HTML file. The final output should be visually attractive, performance-optimized, animation-rich, and easy to extend.

Take a deep breath and work on this problem step-by-step.

Openai 官方API,首字延迟0.7s,吐字速度100tokens/s。结果如何大家自行评判。

提示词也给出来了,喜欢我的提示词就点个赞吧~

14 Likes

我也在试 :smiley:

7 Likes

我也来了

prompt:创建一个包含 CSS 和 JavaScript 的单个 HTML 文件,以生成一个动画天气卡片。该卡片应通过独特的动画在视觉上呈现以下天气状况:
风:(例如,移动的云朵、摇曳的树木或风的线条)
雨:(例如,下落的雨滴、形成的水坑)
太阳:(例如,闪耀的光线、明亮的背景)
雪:(例如,飘落的雪花、积雪)
将所有天气卡片并排展示。卡片应具有深色背景。
在这个单个文件中提供所有的 HTML、CSS 和 JavaScript 代码。
JavaScript 代码应包含一种在不同天气状况之间切换的方式(例如,一个函数或一组按钮),
以展示每种天气状况的动画效果

功能:切换正常,风挺丑的,其他还行

8 Likes

现在压力给到claude了

6 Likes

不如克劳德3.5

8 Likes

PixPin_2025-04-14_21-11-11

还可以 :tieba_087:

5 Likes

一般般吧,没有很惊艳,继续期待o3​:face_with_steam_from_nose:

1 Like

C3.7t

其实已经可以和3.7tk掰掰手腕了,3.7tk是推理模型,这次的4.1还是不错的,而且还不贵 :smiling_face_with_tear:

2 Likes

1 Like

看着样子,编码还不如v3

真挺不错的