Models 44

Nemotron 3.5 Lightning (free)

by NVIDIAReasoningClean
Open in new window

Running live in a sandboxed frame. Click inside it before using the keyboard.

How it went

Total time
32.1 s
Cost
$0
Output tokens
2,284
Spent thinking
0 tokens
Speed
71.8 tok/s
Console errors
0
First token after
298 ms
First visible text after
298 ms
Prompt tokens
524
Code size
6.6 KB
Finish reason
stop
Served by
Nvidia
Model id
nvidia/nemotron-3.5-lightning:free
Reasoning sent
{"effort":"none"}
Max output
32,000 tokens
Generated
Nov 9, 2026

What it was asked

The prompt
Create a set of four animated weather cards (sunny, rainy, snowy, stormy), made with HTML and CSS only. Requirements: - Absolutely no JavaScript: the file must not contain any <script> tag or inline event handler. - No images, no SVG, no icon fonts: every weather icon is built from HTML elements and pseudo-elements styled with CSS. - Each card shows an animated icon (rotating sun rays, falling rain drops, drifting snowflakes, flashing lightning), a city name, a temperature and a short description. - Each card has its own background gradient matching the weather. - The cards are displayed in a responsive grid (4 per row on desktop, stacked on mobile) and lift up on hover. - Smooth infinite animations using @keyframes, and respect prefers-reduced-motion.
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 · 304 lines

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Animated Weather Cards</title>
  <style>
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

    :root {
      --gap: 16px;
      --card-width: calc((100% - 3 * var(--gap)) / 4);
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', system-ui, sans-serif;
      background: #1a1a2e;
      color: #fff;
      margin: 0;
      padding: 40px var(--gap);
      min-height: 100vh;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(var(--card-width), 1fr));
      gap: var(--gap);
    }

    @media (max-width: 768px) {
      body {
        padding: 20px var(--gap);
        gap: 12px;
      }
    }

    @media (max-width: 480px) {
      body {
        --gap: 12px;
        --card-width: calc((100% - 3 * var(--gap)) / 2);
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }
    }

    .card {
      position: relative;
      aspect-ratio: 3/4;
      background-size: cover;
      background-position: center;
      border-radius: 16px;
      overflow: hidden;
      cursor: default;
      transition: transform 0.3s ease;
    }

    .card:hover {
      transform: translateY(-8px);
    }

    .card__icon {
      position: absolute;
      inset: 20px auto auto;
      width: 80px;
      height: 80px;
      margin: auto;
    }

    .card__icon svg {
      width: 100%;
      height: 100%;
    }

    .card__content {
      position: absolute;
      inset: 0;
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%;
    }

    .card__city {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .card__temp {
      font-size: 2rem;
      font-weight: 600;
    }

    .card__desc {
      font-size: 0.875rem;
      opacity: 0.8;
    }

    /* ==== SUNNY ==== */
    .card--sunny {
      background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    }

    .card--sunny .card__icon {
      color: #f39c12;
    }

    .card--sunny .card__icon::before,
    .card--sunny .card__icon::after {
      content: '';
      position: absolute;
      background: currentColor;
      border-radius: 50%;
    }

    .card--sunny .card__icon::before {
      width: 48px;
      height: 48px;
      top: 8px;
      left: 16px;
      animation: sun-rays 2s infinite;
    }

    .card--sunny .card__icon::after {
      width: 24px;
      height: 24px;
      top: 32px;
      left: 28px;
      animation: sun-rays 2s infinite 0.5s;
    }

    @keyframes sun-rays {
      0%, 100% { transform: rotate(0deg); }
      50% { transform: rotate(180deg); }
    }

    /* ==== RAINY ==== */
    .card--rainy {
      background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    }

    .card--rainy .card__icon {
      color: #4a90e2;
    }

    .card--rainy .card__icon::before,
    .card--rainy .card__icon::after {
      content: '';
      position: absolute;
      background: currentColor;
      border-radius: 2px;
    }

    .card--rainy .card__icon::before {
      width: 4px;
      height: 20px;
      top: 24px;
      left: 50%;
      margin-left: -2px;
      animation: rain-drop 0.8s infinite;
    }

    .card--rainy .card__icon::after {
      width: 4px;
      height: 12px;
      top: 40px;
      left: 50%;
      margin-left: -2px;
      animation: rain-drop 0.8s infinite 0.2s;
    }

    @keyframes rain-drop {
      0% { opacity: 0; transform: translateY(-10px); }
      10% { opacity: 1; }
      90% { opacity: 1; }
      100% { opacity: 0; transform: translateY(20px); }
    }

    /* ==== SNOWY ==== */
    .card--snowy {
      background: linear-gradient(135deg, #e0e7ff 0%, #f5f7fa 100%);
    }

    .card--snowy .card__icon {
      color: #7f8c8d;
    }

    .card--snowy .card__icon::before {
      content: '';
      position: absolute;
      width: 6px;
      height: 6px;
      background: currentColor;
      border-radius: 50%;
      top: 20px;
      left: 50%;
      margin-left: -3px;
      animation: snow-flake 1s infinite;
    }

    .card--snowy .card__icon::after {
      content: '';
      position: absolute;
      width: 6px;
      height: 6px;
      background: currentColor;
      border-radius: 50%;
      top: 36px;
      left: 20px;
      animation: snow-flake 1s infinite 0.2s;
    }

    @keyframes snow-flake {
      0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0; }
      10% { opacity: 1; }
      90% { opacity: 1; }
      100% { transform: translateY(30px) rotate(360deg); opacity: 0; }
    }

    /* ==== STORMY ==== */
    .card--stormy {
      background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    }

    .card--stormy .card__icon {
      color: #e74c3c;
    }

    .card--stormy .card__icon::before,
    .card--stormy .card__icon::after {
      content: '';
      position: absolute;
      background: currentColor;
      border-radius: 2px;
    }

    .card--stormy .card__icon::before {
      width: 12px;
      height: 2px;
      top: 32px;
      left: 28px;
      animation: lightning 0.3s infinite;
    }

    .card--stormy .card__icon::after {
      width: 2px;
      height: 12px;
      top: 28px;
      left: 36px;
      animation: lightning 0.3s infinite 0.1s;
    }

    @keyframes lightning {
      0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
      50% { opacity: 1; transform: scaleX(1); }
    }
  </style>
</head>
<body>
  <div class="card card--sunny">
    <div class="card__icon"></div>
    <div class="card__content">
      <span class="card__city">Paris</span>
      <span class="card__temp">22°</span>
      <span class="card__desc">Sunny</span>
    </div>
  </div>

  <div class="card card--rainy">
    <div class="card__icon"></div>
    <div class="card__content">
      <span class="card__city">London</span>
      <span class="card__temp">15°</span>
      <span class="card__desc">Rainy</span>
    </div>
  </div>

  <div class="card card--snowy">
    <div class="card__icon"></div>
    <div class="card__content">
      <span class="card__city">Reykjavik</span>
      <span class="card__temp">-3°</span>
      <span class="card__desc">Snowy</span>
    </div>
  </div>

  <div class="card card--stormy">
    <div class="card__icon"></div>
    <div class="card__content">
      <span class="card__city">New York</span>
      <span class="card__temp">8°</span>
      <span class="card__desc">Stormy</span>
    </div>
  </div>
</body>
</html>