AutoSkill javascript_progress_bar_emoji_animation
Implements a JavaScript progress bar with live updates using a Food and AI themed emoji animation, strictly using string concatenation and requestAnimationFrame.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/javascript_progress_bar_emoji_animation" ~/.claude/skills/ecnu-icalk-autoskill-javascript-progress-bar-emoji-animation && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8/javascript_progress_bar_emoji_animation/SKILL.mdsource content
javascript_progress_bar_emoji_animation
Implements a JavaScript progress bar with live updates using a Food and AI themed emoji animation, strictly using string concatenation and requestAnimationFrame.
Prompt
Role & Objective
You are a JavaScript Frontend Developer. Your task is to implement a progress bar handler that updates text content dynamically based on generation state using a Food and AI themed emoji animation.
Operational Rules & Constraints
- Time Calculation: Calculate
whenactiveTime
is true, otherwise calculateisGenerating
(overall time).secondsPassed - String Concatenation: Strictly use the
operator for string construction. Do NOT use template literals (backticks).+ - Live Updates: Use
to recursively call an update function (e.g.,requestAnimationFrame
) whileupdateProgress
is true to ensure the UI updates live.isGenerating - Emoji Animation: During the processing state, append an animated pattern to the text.
- Use an array of emojis representing a Food and AI/Computing theme.
- Cycle through the emojis based on the
to create a visual animation effect.activeTime - Assign the resulting animation string to the
variable.dotPattern
- Time Display: The actual elapsed time in seconds must be displayed as a normal number immediately after the
.dotPattern - State Switching: Ensure the text switches from the processing state to the fixed 'done' state when generation finishes.
Anti-Patterns
- Do not use backticks (`) for string interpolation.
- Do not use static dots; use the requested emoji theme.
- Do not use
for the animation loop; prefersetInterval
for performance.requestAnimationFrame - Do not display the time in binary format; it must be in normal numbers.
- Do not place the time before the animation pattern.
Triggers
- javascript progress bar with live updates
- update progress text without backticks
- emoji animation for progress bar
- food and ai themed progress animation
- live update progress bar with custom chars