Present

In this example below you will see how to do a Present with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by Dlabihcra, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright Dlabihcra ©
  • HTML
  • CSS
  • JavaScript
    <p class="message">I<span class="fa fa-heart heart"></span>You</p>
<div id="jumpy"></div>
<p class="message">I<span class="fa fa-heart heart"></span>You</p>

/*Downloaded from https://www.codeseek.co/Dlabihcra/present-aBYpJM */
    @import "https://codepen.io/Dlabihcra/pen/vmXBvg.css";

$pixel-size: 8px;
$jumpy: (
  frames: (
    "                ""                ""     XX         ""     X X        ""    X X         ""                ",
    "       XXX      ""    XXXX        ""    X'XX        ""    X`X`X       ""   X`X`X        ""    X X         ",
    "     XX- XX     ""   XX-XXX       ""   X'X'`X  XXX  ""   X'X'-X       ""   X'X'X        ""   X`X`X        ",
    "   XX```X-`X    ""  X```- 'XXXXXXX""  XX---X XXX`X  ""   X-X-X        ""   X-X-X        ""   X'X'X        ",
    "  X```X`-'X     "" X``X`'XXX```X`X"" X```-XXX```XX  ""  X``'-X        ""  X``'-X        ""   X-X-X        ",
    "  X```X`'X      "" X``X`-``-``'`XX""X``X`'``-``'`X  "" X````'X        "" X````'X        ""  X``'-X        ",
    "   X````--X     "" X```-``-``'-`X`""X``X`-``-`'-`X  "" X``X``'XXXXXXX "" X``X``'XXX     "" X````'-XXX     ",
    "    X``-```X    ""  XXX`'--'''-'`X""X```-'`-'''-'X  "" X``X``-`-``X`X "" X``X``-'`-XXXX "" X``X``'-``X    ",
    "    X'-``---X   ""   X`'XXX---XX'X"" XXX-``----X'X  "" X````-``-``'XX "" X````'-`-'`X`X "" X``X``-'`--XXX ",
    "     XX``X'--XXX""   X`X   XXX X-X""   X``-XXXXX-X  ""  XX-'-`-``'-X  ""  XX-'-``-`'-XX "" X````-``-'-X`X ",
    "      X`X'''-X`X""   XX         XX""  X``XX     XX  ""    X-``--'-X   ""    X-``-'''-X  ""  XX -``-'''-XX ",
    "      X`X'XX'XXX""                "" X``X           ""   X```XX``X    ""    X``'XX--X   ""    X-``-XX--X  ",
    "       XXX```X  ""                "" XXX            ""  X``XXXXXX     ""   X``XX```X    ""   X``XXX````X  ",
    "         XXXXX  ""                ""                ""  XXX           ""   XXX XXXX     ""   XXX  XXXXXX  "
  ),
  colors: (
    "X": #000,
    "`": #fff,
    "-": #A2CFE4,
    "'": #CEE8EB
  ),
  speed: .08s
);

@include pixel-art((
  jumpy: $jumpy
  ), (pixel-size: $pixel-size));

html, body {
  height: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

#jumpy {
  margin: 0 $pixel-size * 2;
}

.message {
  font-size: 50px;
  .heart {
    color: crimson;
    margin: 5px;
  }
}

/*#jumpy {
position: relative;
animation: jumpy-move 5s linear infinite alternate,
jumpy-flip 5s steps(1) linear infinite alternate;
}

@keyframes jumpy-move {
from { left: 0; }
to { left: 100%; }
}

@keyframes jumpy-flip {
from { transform: rotateY(180deg); }
to { }
}*/



/*Downloaded from https://www.codeseek.co/Dlabihcra/present-aBYpJM */
    

Comments