8

Santa was here.

 2 years ago
source link: https://codepen.io/pehaa/pen/OJxgKbE
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Pen Settings

HTML Preprocessor

Add Class(es) to <html>

Stuff for <head>

0 unsaved changes
xxxxxxxxxx
<div class="salon">
  <div class="tree">
    <div class="ball ball-1 ball-11"></div>
    <div class="ball ball-1 ball-12"></div>
    <div class="ball ball-1 ball-13"></div>
    <div class="ball ball-1 ball-14"></div>
  </div>
  <div class="star"></div>
  <div class="table">
    <div class="mug"></div>
    <div class="books">
      <div class="book book-1">Santa</div>
      <div class="book book-2">was</div>
      <div class="book book-3">here</div>
    </div>
  </div>
  <div class="gift-1 gift"></div>
  <div class="gift-2 gift"></div>
  <div class="gift-3 w-lid gift"></div>
  <div class="gift-4 w-lid gift"></div>

CSS (SCSS)

CSS (SCSS)

// snow inspired by this pen https://codepen.io/alvaromontoro/pen/GRNmdzB
*,
*:before,
*:after {
  box-sizing: border-box;
}
:root {
  --h: 170;
  --s: 100%;
  --base: hsl(var(--h), var(--s), 50%);
  --c1: hsl(var(--h), var(--s), 5%);
  --c2: hsl(var(--h), var(--s), 10%);
  --c25: hsl(var(--h), var(--s), 12.5%);
  --c3: hsl(var(--h), var(--s), 15%);
  --c35: hsl(var(--h), var(--s), 17%);
  --c4: hsl(var(--h), var(--s), 20%);
  --c5: hsl(var(--h), var(--s), 25%);
  --c6: hsl(var(--h), var(--s), 30%);
  --c7: hsl(var(--h), var(--s), 35%);
  --c8: hsl(var(--h), var(--s), 40%);

JS (Babel)

JS (Babel)

xxxxxxxxxx

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK