SPB Git

Repository Public

demo.html 3.2 KB 52 lines html

1<!-- Scène de démonstration du kit (16:9, 8 s) : « Une jeune entreprise a besoin d'argent pour grandir. » -->2<style>3  .ground { fill: #0a1820; }4  .hill { fill: #0f2a36; }5  .win { fill: var(--gold-hi); }6</style>7<div class="scene" data-bg="ocean">8  <svg class="sk-art" viewBox="0 0 1920 1080">9    <!-- décor : étoiles, collines, sol -->10    <g id="stars" data-decor></g>11    <g data-decor>12      <circle cx="1500" cy="330" r="420" fill="url(#g-glow-teal)" opacity=".5" data-loop="breathe" data-loop-dur="5"/>13      <path class="hill" d="M0 760 C300 640 520 700 800 740 S1400 620 1920 720 V1080 H0Z" data-in="rise" data-at="0" data-dur="1.4"/>14      <path class="ground" d="M0 840 C400 800 900 820 1920 810 V1080 H0Z" data-in="rise" data-at="0.1" data-dur="1.4"/>15    </g>16    <g data-camera="0: 1 960 540; 4.2: 1 960 540; 5.6: 1.22 1080 560; 8: 1.26 1090 560">17      <!-- la jeune entreprise -->18      <g transform="translate(360 470)">19        <ellipse cx="170" cy="352" rx="190" ry="20" fill="#000" opacity=".35" data-in="fade" data-at="0.5"/>20        <g data-in="pop" data-at="0.4" data-origin="bottom">21          <use href="#s-startup" width="340" height="340" class="k-teal"/>22        </g>23        <g data-in="pop" data-at="1.0"><g data-loop="float" data-loop-dur="2.4">24          <use href="#s-bulb" x="118" y="-150" width="110" height="110"/>25        </g></g>26      </g>27      <!-- la tour qu'elle veut devenir : contour en pointillés puis construction -->28      <g transform="translate(1180 250)">29        <rect x="0" y="0" width="300" height="570" rx="10" class="line s-gold dashed" data-in="draw" data-at="2.2" data-dur="1.4" data-out="fade" data-out-at="5.6"/>30        <g data-in="grow-y" data-at="5.2" data-dur="1.4" data-origin="bottom">31          <rect x="0" y="0" width="300" height="570" rx="10" fill="url(#g-teal)"/>32          <path d="M300 60 h70 a10 10 0 0 1 10 10 v500 h-80z" class="f-teal-lo"/>33          <g class="win" id="wins"></g>34        </g>35      </g>36      <!-- l'argent qui manque : pièces qui voyagent -->37      <path id="route" d="M-80 330 C200 120 520 420 700 600 S1100 760 1330 600" fill="none"/>38      <g id="coins"></g>39      <text class="t-label mid" x="1330" y="210" data-in="rise" data-at="2.6" data-out="fade" data-out-at="5">l'ambition</text>40    </g>41  </svg>42  <div class="sk-safe top left">43    <p class="sk-kicker" data-in="rise" data-at="0.3">Chapitre 1</p>44    <h1 class="sk-title" data-words data-at="0.6" data-step="0.12">Grandir coûte <em>cher</em></h1>45  </div>46</div>47<script>48  SK.repeat('#stars', 60, (i, r) => `<circle cx="${r() * SK.W}" cy="${r() * SK.H * 0.6}" r="${1 + r() * 2.2}" fill="#fff" opacity="${0.15 + r() * 0.5}" data-loop="blink" data-loop-dur="${1.2 + r() * 2.5}" data-loop-at="${r() * 2}"/>`);49  SK.repeat('#wins', 15, (i) => `<rect x="${34 + (i % 3) * 84}" y="${40 + Math.floor(i / 3) * 104}" width="62" height="62" rx="8" opacity="${i % 4 === 1 ? 0.35 : 0.95}"/>`);50  SK.repeat('#coins', 7, (i) => `<g data-follow="#route" data-follow-at="${3.4 + i * 0.22}" data-follow-dur="1.9"><g data-in="pop" data-at="${3.4 + i * 0.22}" data-out="pop" data-out-at="${5.1 + i * 0.22}" data-out-dur="0.25"><use href="#s-coin" x="-38" y="-38" width="76" height="76"/></g></g>`);51</script>52
Files main
Menu

Theme