Exploding like buttonOne-line
Nemotron 3 Super
by NVIDIAreasoning defaultClean
Running live in a sandboxed frame. Click inside it before using the keyboard.
How it went
- Total time
- 13.5 s
- Cost
- $0.0008
- Output tokens
- 2,011
- Spent thinking
- 1,311 tokens
- Speed
- 158.2 tok/s
- Console errors
- 0
- First token after
- 759 ms
- First visible text after
- 10.6 s
- Prompt tokens
- 375
- Code size
- 2.0 KB
- Finish reason
- stop
- Served by
- DeepInfra
- Model id
nvidia/nemotron-3-super-120b-a12b- Reasoning sent
model default- Max output
- 16,384 tokens
- Generated
- Nov 13, 2026
What it was asked
The prompt
“a "like" button in pure CSS, no JavaScript, that does a crazy animation when you click it”
System prompt, sent with every prompt
You are generating a self-contained web demo. It will be rendered automatically in a sandboxed iframe and compared side by side with the output of other AI models given the exact same task. Output rules: - Reply with exactly ONE fenced code block containing the complete file: ```html (or ```svg when the task asks for an SVG). No text before or after the code block. - Everything must be inline: CSS in <style>, JavaScript in <script>. No external files, images, fonts or network requests, except the CDN URLs explicitly allowed by the task. - Do not use localStorage, sessionStorage, cookies, IndexedDB, alert(), confirm(), prompt() or window.open(): they are blocked in the sandbox and will throw. - The page must look right in a 1280×800 viewport and adapt gracefully down to 375px wide. No horizontal scrollbar. - Something meaningful must be visible on first paint: a screenshot is taken automatically about 3 seconds after load, without any interaction. - Everything that makes the demo interesting must be visible within the first seconds: nothing hidden behind a high score, a later level or a long play session. - Games must start in a self-playing demo mode (a simple AI plays) behind a "Click or press a key to start" message, so the game can be judged in action without playing. - The iframe only receives keyboard events after the user clicks it: if the demo uses the keyboard, display a clear "Click or press a key to start" message. - The code must run with zero errors in the console of the latest Chrome.
Code run-1.html · 76 lines
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Crazy Like Button</title>
<style>
body {
display: flex;
height: 100vh;
margin: 0;
align-items: center;
justify-content: center;
background: #fafafa;
font-family: system-ui, sans-serif;
}
#like-toggle {
position: absolute;
opacity: 0;
pointer-events: none;
}
.like-btn {
display: inline-block;
padding: 14px 28px;
font-size: 1.2rem;
color: #fff;
background: linear-gradient(135deg, #ff416c, #ff4b2b);
border: none;
border-radius: 50px;
cursor: pointer;
user-select: none;
transition: transform 0.1s;
position: relative;
overflow: hidden;
}
.like-btn:active {
transform: scale(0.95);
}
.like-btn::after {
content: "♥";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) scale(0);
opacity: 0;
font-size: 2rem;
pointer-events: none;
transition: transform 0.3s, opacity 0.3s;
}
#like-toggle:checked + .like-btn {
animation: crazyLike 0.9s ease-out forwards;
}
#like-toggle:checked + .like-btn::after {
opacity: 1;
transform: translate(-50%, -50%) scale(1.2);
animation: popHeart 0.6s ease-out forwards;
}
@keyframes crazyLike {
0% { transform: scale(1) rotate(0deg); background-position: 0 0; }
20% { transform: scale(1.25) rotate(-10deg); }
40% { transform: scale(0.9) rotate(10deg); }
60% { transform: scale(1.1) rotate(-5deg); }
80% { transform: scale(1) rotate(5deg); }
100% { transform: scale(1) rotate(0deg); background: #ff6b6b; }
}
@keyframes popHeart {
0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
30% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
</style>
</head>
<body>
<input type="checkbox" id="like-toggle" aria-label="Like">
<label for="like-toggle" class="like-btn">Like</label>
</body>
</html>Reasoning trace (1,311 tokens)
We need to output a self-contained HTML file with CSS and possibly using :checked pseudo-class to simulate a button toggle, with animation on click without JS. Use a hidden checkbox that toggles state on click via label. The animation should be crazy. Use CSS keyframes.
We must ensure no JS. We'll put the checkbox input type=checkbox, hidden via opacity or position: absolute, and label as button. When checkbox is checked, apply animation to label (or pseudo-element). Use :checked + label . Like:
<input type="checkbox" id="like">
<label for="like" class="like-btn">Like</label>
On checked state, animate maybe via animation property using animation: shake 0.5s infinite? Or a single animation on click.
But we need animation when you click it, not on hover. Using :active pseudo-class may not persist after click. Use :checked to trigger after click, then animate once using animation with animation-fill-mode: forwards and maybe animation-duration.
We can use a keyframe that does a crazy effect like scaling, rotating, color change.
We'll have:
.like-btn {
display: inline-block;
padding: 12px 24px;
background: #e0245e;
color: #fff;
border: none;
border-radius: 30px;
font-size: 1.2rem;
cursor: pointer;
transition: transform 0.2s;
}
.like-btn:active {
transform: scale(0.9);
}
#like:checked + .like-btn {
animation: crazy 0.8s ease-out forwards;
}
Define @keyframes crazy { 0% { transform: scale(1) rotate(0deg); } 20% { transform: scale(1.3) rotate(-10deg); } 40% { transform: scale(0.9) rotate(10deg); } 60% { transform: scale(1.1) rotate(-5deg); } 80% { transform: scale(1) rotate(5deg); } 100% { transform: scale(1) rotate(0deg); background: #ff6b6b; } }
Also maybe add a pseudo-element for heart icon that appears.
We can add ::after content: "♥"; but after click we change to filled heart.
Simplify: Use Unicode heart.
We need no external resources. All inline.
Make page responsive.
We'll wrap in <body> with some center.
Full HTML:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Crazy Like Button</title>
<style>
body {
display: flex;
height: 100vh;
margin: 0;
align-items: center;
justify-content: center;
background: #fafafa;
font-family: system-ui, sans-serif;
}
#like-toggle {
position: absolute;
opacity: 0;
pointer-events: none;
}
.like-btn {
display: inline-block;
padding: 14px 28px;
font-size: 1.2rem;
color: #fff;
background: linear-gradient(135deg, #ff416c, #ff4b2b);
border: none;
border-radius: 50px;
cursor: pointer;
user-select: none;
transition: transform 0.1s;
position: relative;
overflow: hidden;
}
.like-btn:active {
transform: scale(0.95);
}
.like-btn::after {
content: "♥";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%) scale(0);
opacity: 0;
font-size: 2rem;
pointer-events: none;
transition: transform 0.3s, opacity 0.3s;
}
#like-toggle:checked + .like-btn {
animation: crazyLike 0.9s ease-out forwards;
}
#like-toggle:checked + .like-btn::after {
opacity: 1;
transform: translate(-50%, -50%) scale(1.2);
animation: popHeart 0.6s ease-out forwards;
}
@keyframes crazyLike {
0% { transform: scale(1) rotate(0deg); background-position: 0 0; }
20% { transform: scale(1.25) rotate(-10deg); }
40% { transform: scale(0.9) rotate(10deg); }
60% { transform: scale(1.1) rotate(-5deg); }
80% { transform: scale(1) rotate(5deg); }
100% { transform: scale(1) rotate(0deg); background: #ff6b6b; }
}
@keyframes popHeart {
0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
30% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
</style>
</head>
<body>
<input type="checkbox" id="like-toggle" aria-label="Like">
<label for="like-toggle" class="like-btn">Like</label>
</body>
</html>
```
Check: No JS, pure CSS. Works on click (checkbox toggles). The animation runs when checked. On uncheck (click again) it goes back? The animation only applies when checked; if unchecked, it returns instantly (no animation). That's okay.
Make sure no horizontal scrollbar. Should be fine.
Return exactly one fenced code block with ```html.