• Updated 19 Nov, 14:26 UTC
  • Next run 20 Nov, 05:17 UTCNext 20 Nov 05:17
  • Last 7 days: 9 new models · 69 runs7 d: 9 models · 69 runs
Wristwatch that shows the current time

ERNIE-Light-DT-1.0Baidu

Network offOpen alone (new tab)

Run details

Model
baidu/ernie-light-dt-1.0-intl
Route
OpenRouter API, one user message
Served by
Baidu
Effort
max, OpenRouter's default for this model
Limits
60 min · 131,072 output tokens (the model's limit)
Date
17 Nov 2026
Time
7 min 55 s
Size
19 kB
Tokens
87 in, 40,188 out (32,996 of them thinking)
List price
$0.16 at today's price ($1.13 in / $3.94 out per M)
Paid
$0.16

Raw files: output · meta.json

Exact prompt

Draw a mechanical wristwatch that shows the current local time, with a sweeping seconds hand and a date window. Make it look expensive.

It must be one complete, self-contained HTML file: inline all CSS and JavaScript, and make no network requests of any kind (no CDNs, web fonts or remote images). Reply with the file in a single ```html code block.

Source

19 kB 388 lines Raw

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Meridian Calibre 901 — Automatic</title>
<style>
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    background:
      radial-gradient(1100px 700px at 50% 28%, #171b22 0%, #0a0c10 55%, #050607 100%);
    font-family: Georgia, 'Times New Roman', serif;
    -webkit-font-smoothing: antialiased;
    user-select: none;
  }
  .stage {
    width: min(88vw, 62vh);
    transform-style: preserve-3d;
    will-change: transform;
  }
  .stage svg { display: block; width: 100%; height: auto; }
</style>
</head>
<body>
<main class="stage" id="stage">
<svg id="watch" viewBox="0 0 480 780" role="img" aria-label="Analog watch showing the current local time" text-rendering="optimizeLegibility">
  <defs>
    <linearGradient id="leather" x1="0" y1="0" x2="1" y2="0">
      <stop offset="0" stop-color="#241307"/>
      <stop offset=".12" stop-color="#57321f"/>
      <stop offset=".5" stop-color="#7a4b2e"/>
      <stop offset=".88" stop-color="#53301c"/>
      <stop offset="1" stop-color="#221206"/>
    </linearGradient>
    <linearGradient id="strapSheen" x1="0" y1="0" x2="1" y2="0">
      <stop offset="0" stop-color="#ffffff" stop-opacity="0"/>
      <stop offset=".45" stop-color="#ffffff" stop-opacity=".09"/>
      <stop offset=".55" stop-color="#ffffff" stop-opacity=".09"/>
      <stop offset="1" stop-color="#ffffff" stop-opacity="0"/>
    </linearGradient>
    <linearGradient id="strapShadowTop" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#000000" stop-opacity="0"/>
      <stop offset="1" stop-color="#000000" stop-opacity=".6"/>
    </linearGradient>
    <linearGradient id="strapShadowBottom" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#000000" stop-opacity=".6"/>
      <stop offset="1" stop-color="#000000" stop-opacity="0"/>
    </linearGradient>
    <radialGradient id="caseMetal" cx="38%" cy="30%" r="85%">
      <stop offset="0" stop-color="#f6dfae"/>
      <stop offset=".45" stop-color="#c69a5c"/>
      <stop offset=".8" stop-color="#8a5f2d"/>
      <stop offset="1" stop-color="#5e3d19"/>
    </radialGradient>
    <linearGradient id="bezelFace" x1="0" y1="0" x2="1" y2="1">
      <stop offset="0" stop-color="#f4dda6"/>
      <stop offset=".18" stop-color="#cf9f5d"/>
      <stop offset=".42" stop-color="#93662f"/>
      <stop offset=".68" stop-color="#e4c087"/>
      <stop offset="1" stop-color="#7a5324"/>
    </linearGradient>
    <radialGradient id="dial" cx="42%" cy="34%" r="78%">
      <stop offset="0" stop-color="#2b5b92"/>
      <stop offset=".28" stop-color="#1c3d6d"/>
      <stop offset=".6" stop-color="#12294c"/>
      <stop offset="1" stop-color="#071324"/>
    </radialGradient>
    <radialGradient id="rehaut" cx="50%" cy="50%" r="50%">
      <stop offset="0" stop-color="#0d1a32"/>
      <stop offset=".9" stop-color="#0a1428"/>
      <stop offset="1" stop-color="#1b3054"/>
    </radialGradient>
    <radialGradient id="dialSheen" cx="40%" cy="30%" r="75%">
      <stop offset="0" stop-color="#7fb0ff" stop-opacity=".18"/>
      <stop offset=".4" stop-color="#33518c" stop-opacity=".07"/>
      <stop offset="1" stop-color="#000000" stop-opacity=".28"/>
    </radialGradient>
    <radialGradient id="glassSheen" cx="36%" cy="28%" r="65%">
      <stop offset="0" stop-color="#ffffff" stop-opacity=".15"/>
      <stop offset=".5" stop-color="#bcd4ff" stop-opacity=".05"/>
      <stop offset="1" stop-color="#ffffff" stop-opacity="0"/>
    </radialGradient>
    <linearGradient id="indexGold" x1="0" y1="0" x2="1" y2="1">
      <stop offset="0" stop-color="#f7e9b8"/>
      <stop offset=".3" stop-color="#d7a75e"/>
      <stop offset=".62" stop-color="#a6763a"/>
      <stop offset="1" stop-color="#efd096"/>
    </linearGradient>
    <linearGradient id="goldHand" x1="0" y1="0" x2="1" y2="0">
      <stop offset="0" stop-color="#7a5323"/>
      <stop offset=".25" stop-color="#e6c584"/>
      <stop offset=".5" stop-color="#fbeec0"/>
      <stop offset=".75" stop-color="#d9a85f"/>
      <stop offset="1" stop-color="#6f4a20"/>
    </linearGradient>
    <linearGradient id="steelHand" x1="0" y1="0" x2="1" y2="0">
      <stop offset="0" stop-color="#8b99b0"/>
      <stop offset=".5" stop-color="#f4f8ff"/>
      <stop offset="1" stop-color="#98a6bd"/>
    </linearGradient>
    <radialGradient id="capGold" cx="35%" cy="30%" r="80%">
      <stop offset="0" stop-color="#ffeec2"/>
      <stop offset=".55" stop-color="#d9a85f"/>
      <stop offset="1" stop-color="#7a5426"/>
    </radialGradient>
    <radialGradient id="steelHub" cx="38%" cy="32%" r="75%">
      <stop offset="0" stop-color="#e9eef8"/>
      <stop offset=".55" stop-color="#9fb0c8"/>
      <stop offset="1" stop-color="#556179"/>
    </radialGradient>
    <radialGradient id="dateDisc" cx="50%" cy="38%" r="75%">
      <stop offset="0" stop-color="#1b2740"/>
      <stop offset=".65" stop-color="#101a30"/>
      <stop offset="1" stop-color="#05080f"/>
    </radialGradient>
    <linearGradient id="dateShade" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#000000" stop-opacity=".55"/>
      <stop offset=".3" stop-color="#000000" stop-opacity="0"/>
      <stop offset=".85" stop-color="#ffffff" stop-opacity=".05"/>
      <stop offset="1" stop-color="#ffffff" stop-opacity=".16"/>
    </linearGradient>
    <linearGradient id="crownGrad" x1="0" y1="0" x2="1" y2="0">
      <stop offset="0" stop-color="#7a5323"/>
      <stop offset=".3" stop-color="#f0d59e"/>
      <stop offset=".55" stop-color="#b98544"/>
      <stop offset=".8" stop-color="#f0d59e"/>
      <stop offset="1" stop-color="#6b461f"/>
    </linearGradient>
    <linearGradient id="glareStroke" gradientUnits="userSpaceOnUse" x1="90" y1="400" x2="360" y2="300">
      <stop offset="0" stop-color="#ffffff" stop-opacity="0"/>
      <stop offset=".5" stop-color="#ffffff" stop-opacity=".85"/>
      <stop offset="1" stop-color="#ffffff" stop-opacity="0"/>
    </linearGradient>
    <filter id="softBlur" x="-40%" y="-40%" width="180%" height="180%">
      <feGaussianBlur stdDeviation="2.4"/>
    </filter>
    <filter id="grain" x="0%" y="0%" width="100%" height="100%">
      <feTurbulence type="fractalNoise" baseFrequency="0.62 0.85" numOctaves="2" seed="9" result="noise"/>
      <feColorMatrix in="noise" type="matrix" values="0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.4 0" result="grain"/>
      <feComposite in="grain" in2="SourceGraphic" operator="in"/>
    </filter>
    <clipPath id="dialClip"><circle cx="240" cy="390" r="141.5"/></clipPath>
  </defs>

  <!-- ambient shadow -->
  <ellipse cx="240" cy="402" rx="212" ry="292" fill="#000000" opacity="0.55" filter="url(#softBlur)"/>

  <!-- leather strap -->
  <g id="strap">
    <path d="M 172 270 L 183 -34 Q 184 -48 199 -48 L 281 -48 Q 296 -48 297 -34 L 308 270 Z" fill="url(#leather)" stroke="#140b05" stroke-width="2"/>
    <path d="M 172 510 L 183 814 Q 184 828 199 828 L 281 828 Q 296 828 297 814 L 308 510 Z" fill="url(#leather)" stroke="#140b05" stroke-width="2"/>
    <rect x="198" y="-48" width="36" height="318" fill="url(#strapSheen)" opacity=".8"/>
    <rect x="198" y="510" width="36" height="318" fill="url(#strapSheen)" opacity=".8"/>
    <path d="M 172 270 L 183 -34 Q 184 -48 199 -48 L 281 -48 Q 296 -48 297 -34 L 308 270 Z" fill="#000000" filter="url(#grain)" opacity=".4"/>
    <path d="M 172 510 L 183 814 Q 184 828 199 828 L 281 828 Q 296 828 297 814 L 308 510 Z" fill="#000000" filter="url(#grain)" opacity=".4"/>
    <rect x="182" y="192" width="116" height="78" fill="url(#strapShadowTop)" opacity=".5"/>
    <rect x="182" y="508" width="116" height="78" fill="url(#strapShadowBottom)" opacity=".5"/>
    <path d="M 186 262 L 196 -30" stroke="#d9b98c" stroke-width="1.6" stroke-dasharray="7 5" stroke-linecap="round" opacity=".7" fill="none"/>
    <path d="M 294 262 L 284 -30" stroke="#d9b98c" stroke-width="1.6" stroke-dasharray="7 5" stroke-linecap="round" opacity=".7" fill="none"/>
    <path d="M 186 518 L 196 810" stroke="#d9b98c" stroke-width="1.6" stroke-dasharray="7 5" stroke-linecap="round" opacity=".7" fill="none"/>
    <path d="M 294 518 L 284 810" stroke="#d9b98c" stroke-width="1.6" stroke-dasharray="7 5" stroke-linecap="round" opacity=".7" fill="none"/>
  </g>

  <!-- lugs -->
  <g fill="url(#caseMetal)" stroke="#2b190b" stroke-width="1.4">
    <rect x="182" y="194" width="34" height="76" rx="15" transform="rotate(-7 199 232)"/>
    <rect x="264" y="194" width="34" height="76" rx="15" transform="rotate(7 281 232)"/>
    <rect x="182" y="510" width="34" height="76" rx="15" transform="rotate(7 199 548)"/>
    <rect x="264" y="510" width="34" height="76" rx="15" transform="rotate(-7 281 548)"/>
  </g>

  <!-- crown -->
  <g id="crown">
    <rect x="406" y="373" width="36" height="34" rx="10" fill="url(#crownGrad)" stroke="#241304" stroke-width="1.2"/>
    <g stroke="#5a3a16" stroke-width="1.3" opacity=".85">
      <line x1="413" y1="377" x2="413" y2="403"/>
      <line x1="418" y1="375.5" x2="418" y2="404.5"/>
      <line x1="423" y1="375.5" x2="423" y2="404.5"/>
      <line x1="428" y1="377" x2="428" y2="403"/>
    </g>
    <rect x="428" y="377" width="13" height="26" rx="6.5" fill="url(#indexGold)" stroke="#241304" stroke-width="1"/>
  </g>

  <!-- case, fluted bezel, dial -->
  <g id="case">
    <circle cx="240" cy="390" r="178" fill="url(#caseMetal)" stroke="#1e1208" stroke-width="1.5"/>
    <circle cx="240" cy="390" r="171" fill="none" stroke="#4c2f12" stroke-width="15"/>
    <circle cx="240" cy="390" r="171" fill="none" stroke="#d9ab63" stroke-width="11" stroke-dasharray="2.3 2.1"/>
    <circle cx="240" cy="390" r="176.5" fill="none" stroke="rgba(255,238,206,0.32)" stroke-width="1"/>
    <circle cx="240" cy="390" r="160.5" fill="url(#bezelFace)" stroke="#6b4720" stroke-width="1"/>
    <circle cx="240" cy="390" r="159" fill="none" stroke="rgba(255,245,220,0.45)" stroke-width="1"/>
    <circle cx="240" cy="390" r="152.5" fill="#0b1322"/>
    <circle cx="240" cy="390" r="152.5" fill="none" stroke="#33200e" stroke-width="1.3"/>
    <circle cx="240" cy="390" r="147" fill="url(#rehaut)"/>
    <circle cx="240" cy="390" r="142" fill="url(#dial)"/>
    <circle cx="240" cy="390" r="141" fill="none" stroke="#000000" stroke-opacity=".4" stroke-width="4" filter="url(#softBlur)"/>
  </g>

  <!-- dial decoration -->
  <g id="sunburst"></g>
  <g id="rings"></g>
  <circle cx="240" cy="390" r="142" fill="url(#dialSheen)"/>
  <circle cx="240" cy="390" r="139.5" fill="none" stroke="rgba(160,185,225,0.16)" stroke-width=".8"/>
  <g id="minuteTrack"></g>
  <g id="indices" style="filter: drop-shadow(0.6px 1.4px 0.8px rgba(0,0,0,.6))"></g>

  <!-- date window -->
  <g id="dateWindow" style="filter: drop-shadow(0.8px 1.5px 1px rgba(0,0,0,.5))">
    <rect x="324" y="373" width="44" height="34" rx="5" fill="url(#indexGold)" stroke="#33200a" stroke-width=".9"/>
    <rect x="328.5" y="377.5" width="35" height="27" rx="2.5" fill="url(#dateDisc)" stroke="#04070d" stroke-width="1"/>
    <rect x="328.5" y="377.5" width="35" height="27" rx="2.5" fill="url(#dateShade)"/>
    <path d="M 330 378.7 L 362 378.7" stroke="#ffffff" stroke-opacity=".14" stroke-width="1"/>
    <text id="dateText" x="346" y="395" text-anchor="middle" font-family="'Times New Roman', Georgia, serif" font-size="17" letter-spacing=".5" fill="#ece7db">--</text>
  </g>

  <!-- dial text -->
  <g id="dialText" style="filter: drop-shadow(0 1px 1px rgba(0,0,0,.55))">
    <text x="242.5" y="310" text-anchor="middle" font-family="'Didot','Bodoni MT','Playfair Display',Georgia,serif" font-size="20" letter-spacing="5.5" fill="#f0e6d2">MERIDIAN</text>
    <text x="241.8" y="329" text-anchor="middle" font-family="Georgia,serif" font-size="7.5" letter-spacing="3.5" fill="#9fb2d0">GENÈVE</text>
    <text x="241.5" y="457" text-anchor="middle" font-family="Georgia,serif" font-size="9" letter-spacing="3" fill="#b8c6dd">AUTOMATIC</text>
    <text x="229" y="515" text-anchor="end" font-family="Georgia,serif" font-size="6.3" letter-spacing="1.4" fill="#879cbf">SWISS</text>
    <text x="251" y="515" text-anchor="start" font-family="Georgia,serif" font-size="6.3" letter-spacing="1.4" fill="#879cbf">MADE</text>
  </g>

  <!-- hands -->
  <g id="handsHM" style="filter: drop-shadow(2px 4px 3px rgba(0,0,0,.45))">
    <g id="hourHand">
      <path d="M 240 404 L 233.2 390 L 240 298 L 246.8 390 Z" fill="url(#goldHand)" stroke="#3a2508" stroke-width=".7" stroke-linejoin="round"/>
      <path d="M 238.4 396 L 238.4 312" stroke="#fff3d6" stroke-width="1" opacity=".5"/>
    </g>
    <g id="minuteHand">
      <path d="M 240 407 L 234.6 390 L 240 258 L 245.4 390 Z" fill="url(#goldHand)" stroke="#3a2508" stroke-width=".7" stroke-linejoin="round"/>
      <path d="M 238.7 398 L 238.7 272" stroke="#fff3d6" stroke-width=".9" opacity=".5"/>
    </g>
  </g>
  <circle cx="240" cy="390" r="8.6" fill="url(#capGold)" stroke="#3a2508" stroke-width=".8"/>
  <g id="secondHand" style="filter: drop-shadow(1.5px 2.5px 2px rgba(0,0,0,.4))">
    <line x1="240" y1="420" x2="240" y2="250" stroke="url(#steelHand)" stroke-width="2.3" stroke-linecap="round"/>
    <line x1="240" y1="250" x2="240" y2="420" stroke="#3f4c60" stroke-width=".6" stroke-linecap="round" opacity=".55"/>
    <circle cx="240" cy="424" r="6.6" fill="url(#steelHub)" stroke="#3f4c60" stroke-width="1"/>
    <circle cx="240" cy="250" r="1.6" fill="#e9eef7"/>
    <circle cx="240" cy="390" r="3.4" fill="url(#steelHub)" stroke="#3f4c60" stroke-width=".8"/>
  </g>
  <circle cx="238.8" cy="388.4" r=".9" fill="#cdddff" opacity=".8"/>

  <!-- sapphire crystal reflections -->
  <g clip-path="url(#dialClip)">
    <g id="glare">
      <circle cx="240" cy="390" r="141.5" fill="url(#glassSheen)"/>
      <path d="M 92 472 Q 170 302 330 286" fill="none" stroke="url(#glareStroke)" stroke-width="30" stroke-linecap="round" opacity=".09"/>
      <path d="M 132 522 Q 212 352 360 332" fill="none" stroke="url(#glareStroke)" stroke-width="9" stroke-linecap="round" opacity=".08"/>
    </g>
  </g>
</svg>
</main>

<script>
(function () {
  'use strict';
  var NS = 'http://www.w3.org/2000/svg';
  var CX = 240, CY = 390;
  var svg = document.getElementById('watch');
  function el(tag, attrs, parent) {
    var e = document.createElementNS(NS, tag);
    for (var k in attrs) { if (Object.prototype.hasOwnProperty.call(attrs, k)) e.setAttribute(k, attrs[k]); }
    parent.appendChild(e);
    return e;
  }

  /* Brushed sunburst dial */
  var burst = document.getElementById('sunburst');
  for (var i = 0; i < 240; i++) {
    var a = (i / 240) * Math.PI * 2;
    var r1 = 24, r2 = 141;
    el('line', {
      x1: (CX + Math.cos(a) * r1).toFixed(2), y1: (CY + Math.sin(a) * r1).toFixed(2),
      x2: (CX + Math.cos(a) * r2).toFixed(2), y2: (CY + Math.sin(a) * r2).toFixed(2),
      stroke: (i % 2) ? '#8fb4ff' : '#dce9ff',
      'stroke-width': (i % 2) ? 0.7 : 0.5,
      'stroke-opacity': (i % 2) ? 0.05 : 0.035
    }, burst);
  }

  /* Engine-turned concentric rings */
  var rings = document.getElementById('rings');
  for (var r = 18; r <= 138; r += 4.2) {
    var outer = r > 96;
    el('circle', {
      cx: CX, cy: CY, r: r.toFixed(1), fill: 'none',
      stroke: outer ? '#a9c8ff' : '#7fa6ee',
      'stroke-opacity': outer ? 0.055 : 0.035,
      'stroke-width': outer ? 0.8 : 0.6
    }, rings);
  }

  /* Minute track */
  var track = document.getElementById('minuteTrack');
  for (var t = 0; t < 60; t++) {
    var major = t % 5 === 0;
    var ang = t * 6 * Math.PI / 180;
    var ro = major ? 137.5 : 135.5;
    var ri = major ? 131 : 132.5;
    el('line', {
      x1: (CX + Math.sin(ang) * ri).toFixed(2), y1: (CY - Math.cos(ang) * ri).toFixed(2),
      x2: (CX + Math.sin(ang) * ro).toFixed(2), y2: (CY - Math.cos(ang) * ro).toFixed(2),
      stroke: major ? '#e9dcb8' : '#93a9c9',
      'stroke-width': major ? 1.9 : 1,
      'stroke-opacity': major ? 0.95 : 0.6,
      'stroke-linecap': major ? 'round' : 'butt'
    }, track);
  }

  /* Applied gold hour markers (skip 3 o'clock for the date window) */
  var indices = document.getElementById('indices');
  function baton(parent, x, y, w, h) {
    el('rect', { x: x, y: y, width: w, height: h, rx: 1.7, fill: 'url(#indexGold)', stroke: '#3a2508', 'stroke-width': .6 }, parent);
    el('rect', { x: (x + w * 0.18).toFixed(2), y: y + 2, width: (w * 0.24).toFixed(2), height: h - 4, rx: .9, fill: '#fff6dd', opacity: .55 }, parent);
  }
  for (var n = 0; n < 12; n++) {
    if (n === 3) continue;
    var g = document.createElementNS(NS, 'g');
    g.setAttribute('transform', 'rotate(' + (n * 30) + ' ' + CX + ' ' + CY + ')');
    if (n === 0) {
      baton(g, 231.6, 260, 6.6, 28);
      baton(g, 241.8, 260, 6.6, 28);
    } else {
      baton(g, 236.6, 261, 6.8, 26);
    }
    indices.appendChild(g);
  }

  /* Timekeeping: continuous sweep, local time, local date */
  var hourHand = document.getElementById('hourHand');
  var minuteHand = document.getElementById('minuteHand');
  var secondHand = document.getElementById('secondHand');
  var dateText = document.getElementById('dateText');
  var lastDate = -1;
  function tick() {
    var now = new Date();
    var ms = now.getMilliseconds();
    var seconds = now.getSeconds() + ms / 1000;
    var minutes = now.getMinutes() + seconds / 60;
    var hours = (now.getHours() % 12) + minutes / 60;
    secondHand.setAttribute('transform', 'rotate(' + (seconds * 6).toFixed(3) + ' ' + CX + ' ' + CY + ')');
    minuteHand.setAttribute('transform', 'rotate(' + (minutes * 6).toFixed(3) + ' ' + CX + ' ' + CY + ')');
    hourHand.setAttribute('transform', 'rotate(' + (hours * 30).toFixed(3) + ' ' + CX + ' ' + CY + ')');
    var d = now.getDate();
    if (d !== lastDate) {
      lastDate = d;
      dateText.textContent = d;
      var h12 = now.getHours() % 12 || 12;
      var ampm = now.getHours() < 12 ? 'AM' : 'PM';
      svg.setAttribute('aria-label', 'Analog watch showing approximately ' + h12 + ':' + (now.getMinutes() < 10 ? '0' : '') + now.getMinutes() + ' ' + ampm);
    }
    requestAnimationFrame(tick);
  }
  requestAnimationFrame(tick);

  /* Subtle parallax: the case and reflections respond to the pointer */
  var stage = document.getElementById('stage');
  var glare = document.getElementById('glare');
  var reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
  if (!reduceMotion) {
    var px = 0, py = 0, cx = 0, cy = 0;
    window.addEventListener('pointermove', function (e) {
      px = (e.clientX / window.innerWidth) * 2 - 1;
      py = (e.clientY / window.innerHeight) * 2 - 1;
    }, { passive: true });
    document.addEventListener('mouseleave', function () { px = 0; py = 0; });
    window.addEventListener('blur', function () { px = 0; py = 0; });
    (function tilt() {
      cx += (px - cx) * 0.055;
      cy += (py - cy) * 0.055;
      stage.style.transform = 'perspective(1300px) rotateX(' + (-cy * 3.2).toFixed(3) + 'deg) rotateY(' + (cx * 5).toFixed(3) + 'deg)';
      glare.setAttribute('transform', 'translate(' + (-cx * 7).toFixed(2) + ' ' + (cy * 7).toFixed(2) + ')');
      requestAnimationFrame(tilt);
    })();
  }
})();
</script>
</body>
</html>

Compare with

ERNIE-Light-DT-1.0: other attempts