concoction

Объявление

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » concoction » ХТМЛ и журнал » штучки


штучки

Сообщений 31 страница 60 из 171

31

[html]
<style>

body {
  background: #FDFFFC;
  margin: 0;
}

html {
  width: 100%;
  -webkit-box-sizing: border-box;
  /* Safari/Chrome, other WebKit */
  -moz-box-sizing: border-box;
  /* Firefox, other Gecko */
  box-sizing: border-box;
  /* Opera/IE 8+ */
}

*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}

/* header */

::selection {
  background: #8A4FFF;
  color: #EEEEEE;
}

/* sections */

section {
  width: 100%;
  position: relative;
  height: 300px;
  font-family: 'Raleway', sans-serif;
  padding: 15px 80px;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

section a {
  text-decoration: none;
}

a:hover {
  cursor: pointer;
}

/* buttons */

section div {
  margin: 100px auto;
  outline: 0;
  border: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
}

.the25 {
  background: #FDFFFC;
}

section #button5 {
  position: relative;
  width: 250px;
  height: 70px;
  font-size: 1.2em;
  letter-spacing: 5px;
  color: #5B5B5D;
  font-weight: 800;
  padding: 4px;
}

#button5:hover {
  cursor: pointer;
}

#button5 a {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: #FDFFFC;
  overflow: hidden;
  padding: 3px;
  transition: all 0.5s ease;
}

#button5 a span {
  background: linear-gradient(to right, #CD96FE, #8082FE);
  -webkit-background-clip: text;
  color: transparent;
  position: relative;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0.19), 0 0 0 rgba(0, 0, 0, 0.23);
  transition: all .33s ease;
}

#button5:hover a span {
  color: #FDFFFC;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

#button5:hover a {
  background: transparent;
}

#button5:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #CD96FE, #8082FE);
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#button5 a:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  background: #FDFFFC;
  opacity: 1;
  z-index: -1;
  transition: all .5s ease;
}

#button5:hover a:before {
  opacity: 0;
}

#button5 a:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #CD96FE, #5A36FD);
  z-index: -2;
  opacity: 1;
}

/* button 6 */

section #button6 {
  position: relative;
  width: 250px;
  height: 70px;
  font-size: 1.2em;
  letter-spacing: 5px;
  color: #5B5B5D;
  font-weight: 800;
  padding: 4px;
}

#button6:hover {
  cursor: pointer;
}

#button6 a {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: #FDFFFC;
  overflow: hidden;
  padding: 3px;
  transition: all 0.5s ease;
}

#button6 a span {
  background: linear-gradient(to top right, #76ADFE, #F0818C);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0.19), 0 0 0 rgba(0, 0, 0, 0.23);
  transition: all .5s ease;
}

#button6:hover a span {
  color: #FDFFFC;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

#button6:hover a {
  background: transparent;
}

#button6:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(40deg, #76ADFE, #F0818C);
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#button6 a:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  background: #FDFFFC;
  opacity: 1;
  z-index: -1;
  transition: all .5s ease;
}

#button6:hover a:before {
  opacity: 0;
}

#button6 a:after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(40deg, #76ADFE, #C12D58);
  z-index: -2;
  opacity: 1;
}

/* button 7*/

section #button7 {
  position: relative;
  width: 250px;
  height: 70px;
  font-size: 1.2em;
  letter-spacing: 5px;
  color: #5B5B5D;
  font-weight: 800;
  padding: 6px;
}

#button7:hover {
  cursor: pointer;
}

#button7 a {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: #FDFFFC;
  overflow: hidden;
  transition: all 0.5s ease;
}

#button7 a span {
  background: linear-gradient(70deg, #F372BC, #8EF7F1);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 0 rgba(0, 0, 0, 0.19), 0 0 0 rgba(0, 0, 0, 0.23);
  transition: all .5s ease;
}

#button7:hover a span {
  color: #FDFFFC;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

#button7:hover a {
  background: transparent;
}

#button7:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(70deg, #F372BC, #8EF7F1 40%);
  z-index: 1;
  transition: all 0.8s cubic-bezier(0.075, 0.82, 0.165, 1);
}

#button7:hover a:before {
  opacity: 0;
}

</style>
<script>

</script>

<head>

  <link href="https://fonts.googleapis.com/css?family=Raleway:100,100i,400,400i,700,700i,800,900" rel="stylesheet">
  <meta name="viewport" content="width=device-width, initial-scale=0.41, maximum-scale=1" />

</head>

<body>

  <section class="the24">
    <div id="button5"><a href="#"><span>HOME</span></a></div>
    <div id="button6"><a href="#"><span>GALLERY</span></a></div>
    <div id="button7"><a href="#"><span>QUOTE</span></a></div>
  </section>

</body>
[/html]

0

32

[html]
<style>
body {
    background-color: #364b71;
    min-height:500px;
    overflow: hidden;
}

.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.cloud {
    width: 360px;
    height: 45px;
    background-color: #d1e1ff;
    border-radius: 25px;
    position: relative;
    z-index: 6;
    animation: movebig 5s infinite;
    transition: all 1s ease-in-out;
}

.cloud .part {
    border-radius: 50%;
    background-color: #d1e1ff;
    position: absolute;
}

.cloud .part.one {
    top: -91px;
    left: 41px;
    width: 120px;
    height: 120px;
}

.cloud .part.two {
    top: -129px;
    left: 116px;
    width: 160px;
    height: 160px;
}

.cloud .part.three {
    top: -55px;
    left: 253px;
    width: 70px;
    height: 70px;
}

.shadow.cloud {
    width: 360px;
    height: 45px;
    background-color: #96aeda;
    border-radius: 25px;
    position: absolute;
    transform: scale(.7);
    top: -20px;
    left: 80px;
    z-index: 5;
    animation: movesmall 5s infinite;
    transition: all 1s ease-in-out;
}

.shadow.cloud .part {
    border-radius: 50%;
    background-color: #96aeda;
}

.data {
    color: #9ed7ff;
    font-size: 40px;
    width: 250px;
    text-align: center;
    overflow-wrap: break-word;
    margin: auto;
    letter-spacing: 32px;
    font-family: 'Poppins', sans-serif;
    position: absolute;
    left: 19%;
    padding-top: 15px;
}

@keyframes movebig {
    0%, 100% {left: 0px}
    50% {left: -10px}
  }

 
@keyframes movesmall {
    0%, 100% {left: 80px}
    50% {left: 90px}
  }

</style>
<script>

</script>

<div class="container">
        <div class="cloud">
            <div class="part one"></div>
            <div class="part two"></div>
            <div class="part three"></div>
        </div>
        <div class="shadow cloud">
            <div class="part one"></div>
            <div class="part two"></div>
            <div class="part three"></div>
        </div>
        <p class="data">0</p>
    </div>

[/html]

0

33

[html]
<style>
body {
  font-family: 'brandon-grotesque', sans-serif;
  font-weight: 900;
}

.row:nth-child(even) {
  width: 500px;
  height: 200px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: transparent;
  padding-left: 380px;
  padding-top: 80px;
}

.row:nth-child(odd) {
  width: 500px;
  height: 200px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: transparent;
  padding-left: 80px;
  padding-top: 80px;
}

.item {
  width: 140px;
  height: 140px;
}

.diamond {
  width: 130px;
  height: 130px;
  overflow: hidden;
  transform: rotate(45deg);
}

.diamond-img {
  width: 130px;
  height: 130px;
  -webkit-transform: rotate(-45deg) translateX(-26px) translateY(-15px);
  transform: rotate(-45deg) translateX(-26px) translateY(-16px);
}

.diamond-img img {
  width: 185px;
  height: 185px;
  transform: translateY(-10px);
}

.row:nth-child(odd) > .item::before {
  content:'';
  border: 2px solid #333;
  background: transparent;
  position: absolute;
  z-index: 10;
  width: 125px;
  height: 125px;
  transform: rotate(45deg) translateX(15px) translateY(-15px);
  transition: all 0.2s;
}

.row:nth-child(even) > .item::before {
  content:'';
  border: 2px solid #333;
  background: transparent;
  position: absolute;
  z-index: 10;
  width: 125px;
  height: 125px;
  transform: rotate(45deg) translateX(-15px) translateY(15px);
  transition: all 0.2s;
}

.row:nth-child(odd) > .item:hover::before {
  background: #333;
  transform: rotate(45deg) translateX(0) translateY(0);
  transition: all 0.2s;
}

.row:nth-child(even) > .item:hover::before {
  background: #333;
  transform: rotate(45deg) translateX(0) translateY(0);
  transition: all 0.2s;
}

.row:nth-child(odd) > .diamond-text {
  float: right;
  margin-right: 60px;
  margin-top: -130px;
  letter-spacing: 2px;
  font-weight: 900;
  font-size: 2em;
  color: #333;
}

.row:nth-child(even) > .diamond-text {
  float: left;
  margin-left: -320px;
  margin-top: -130px;
  letter-spacing: 2px;
  font-weight: 900;
  font-size: 2em;
  color: #333;
}

.row:nth-child(odd) > .text-underline-container {
  position: absolute;
  margin-top: -60px;
}

.row:nth-child(even) > .text-underline-container {
  position: absolute;
  margin-top: -60px;
  margin-left: -550px;
}
</style>
<div class="row">
  <div class="item">
    <div class="diamond">
      <div class="diamond-img">
        <img class="diamond-img-file" src="https://bit.ly/1Y3IMwT" />
      </div>
    </div>
  </div>
  <span class="text-underline-container">
    <svg class="text-underline-svg" width="800" height="3">
      <path id="text-underline-path" fill="none" stroke="#333333" stroke-width="3px" d="M 128 0 L550 0"/>
    </svg>
  </span>
  <span class="diamond-text">
    <h3>ACCENT</h3>
  </span>
</div>

<div class="row">
  <div class="item">
    <div class="diamond">
      <div class="diamond-img">
        <img class="diamond-img-file" src="https://bit.ly/1XXDFn2" />
      </div>
    </div>
  </div>
  <span class="text-underline-container">
    <svg class="text-underline-svg" width="800" height="3">
      <path id="text-underline-path" fill="none" stroke="#333333" stroke-width="3px" d="M 128 0 L550 0"/>
    </svg>
  </span>
  <span class="diamond-text">
    <h3>TRANSFORM</h3>
  </span>
</div>

[/html]

0

34

[html]
<style>
@import url(https://code.ionicframework.com/ionicon … ns.min.css);
.snip1434 {
  font-family: 'Raleway', Arial, sans-serif;
  border: none;
  border-radius: 5px;
  overflow: hidden;
  color: #ffffff;
  cursor: pointer;
  padding: 0px 5px 0px 50px;
  text-align: center;
  display: inline-block;
  margin: 12px 25px;
  font-weight: 600;
  outline: none;
  position: relative;
  font-size: 10px;
  line-height: 35px;
  background-color: #8a1a32;
  letter-spacing: 1px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.snip1434 i {
  font-size: 4em;
  width: 55px;
  line-height: 50px;
  position: absolute;
  left: -13px;
  top: 5px;
  -webkit-transform: rotate(-25deg) scale(1);
  transform: rotate(-25deg) scale(1);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.snip1434:hover,
.snip1434.hover {
  color: #ffffff;
  background-color: #ac203f;
cursor: url(http://s1.iconbird.com/ico/0512/32pxman … misc57.png), pointer;
}
.snip1434:hover i,
.snip1434.hover i {
  -webkit-transform: rotate(-20deg) scale(1.3);
  transform: rotate(-20deg) scale(1.3);
cursor: url(http://s1.iconbird.com/ico/0512/32pxman … misc57.png), pointer;
}

</style>

<button class="snip1434">Подписаться<i class="ion-settings"></i></button>
<button class="snip1434">Открыть<i class="ion-clipboard"></i></button>
<button class="snip1434">Добавить<i class="ion-stats-bars"></i></button>
<button class="snip1434">Удалить<i class="ion-person-stalker"></i></button>

[/html]

0

35

[html]
<style>
@font-face {
  font-family: Sunset Road;
  src: url(https://assets.codepen.io/3711704/Sunset+Road.otf);
}

@font-face {
  font-family: "Scotland";
  src: url("https://assets.codepen.io/3711704/scotland.otf");
}

body {
  --color-text: #fff;
  --color-title: #fff;
  --color-tagline: #e2e2e2;
  font-family: "Open Sans", Futura, Arial, sans-serif;
  color: #57585c;
  color: var(--color-text);
  background-color: #fff;
  background-color: var(--color-bg);
  margin: 0px;
  padding: 0px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: var(--color-link-hover);
}

.hidden {
  position: absolute;
  overflow: hidden;
  width: 0;
  height: 0;
  pointer-events: none;
}

main {
  display: block;
  position: relative;
  width: 900px;
  max-width: 100%;
  overflow: hidden;
}

.frame {
  position: relative;
  z-index: 199;
}

.content {
  text-align: center;
  position: relative;
  z-index: 100;
}

.background {
  perspective: 1000px;
}

.background,
.background__copy {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url(https://assets.codepen.io/3711704/outlaws-bg.png);
  background-position: center center;
  background-size: cover;
  z-index: 1;
}

.background__copy {
  opacity: 0.3;
}

.info {
  display: block;
  grid-area: info;
  margin: 1rem 0;
  justify-self: end;
  text-align: center;
}

.content__title {
  font-family: "Sunset Road", serif;
  font-size: 25vw;
  font-weight: normal;
  -webkit-text-stroke: 0px #fff;
  mix-blend-mode: difference;
  line-height: 0;
  text-transform: lowercase;
  margin: 0;
  margin-bottom: -10px;
  color: #201f1c;
  /*color: var(--color-title);*/
  z-index: 199;
}

.content__title2 {
  font-family: "Sunset Road", serif;
  font-size: 25vw;
  font-weight: normal;
  -webkit-text-stroke: 1px #fff;
  line-height: 0;
  text-transform: lowercase;
  margin: 0;
  color: rgba(0, 0, 0, 0);
  /*color: var(--color-title);*/
  z-index: 199;
}

.tagline {
  text-align: center;
  position: relative;
  margin-left: 10vw;
  width: 80vw;
  max-width: 80vw;
}
.content__tagline {
  color: white;
  margin: 0 0 0 0;
  font-weight: normal;
  font-size: 9px;
  letter-spacing: 0.9vw;
  word-spacing: 0px;
  text-transform: uppercase;
  text-align: center;
  z-index: 200;
  padding: 0px 0px;
  width: 100vw;
  max-width: 100vw;
}
.content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  min-height: 300px;
  text-align: left;
}

body {
  padding: 0;
}

#1cursor {
  display: block;
  position: absolute;
  width: 48px;
  height: 48px;
  top: 50%;
  left: 50%;
  margin: -24px 0 0 -24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 100px;
  backface-visibility: hidden;
  z-index: 999;
  background: ;
}

.line-through {
  text-align: center;
  position: relative;
}
.line-through:before {
  content: "";
  display: block;
  position: absolute;
  width: 10vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
  top: 50%;
}
.line-through:after {
  content: "";
  display: block;
  position: absolute;
  width: 10vw;
  height: 1px;
  background: rgba(255, 255, 255, 0.75);
  top: 50%;
  margin-left: 90vw;
}

</style>
<script>
$(document).on("mousemove", function (c) {
  $("#cursor").css({
    left: c.pageX,
    top: c.pageY
  });
});

{
  // From http://www.quirksmode.org/js/events_pro … l#position
  // Get the mouse position.
  const getMousePos = (e) => {
    let posx = 0;
    let posy = 0;
    if (!e) e = window.event;
    if (e.pageX || e.pageY) {
      posx = e.pageX;
      posy = e.pageY;
    } else if (e.clientX || e.clientY) {
      posx =
        e.clientX +
        document.body.scrollLeft +
        document.documentElement.scrollLeft;
      posy =
        e.clientY +
        document.body.scrollTop +
        document.documentElement.scrollTop;
    }
    return { x: posx, y: posy };
  };

  // Main image  tilt effect.
  class TiltFx {
    constructor() {
      this.DOM = { main: document.querySelector(".background") };
      // Number of layers (how many repeated image elements)
      this.layersTotal = 4;
      this.layout();
      this.initEvents();
    }
    layout() {
      let inner = "";
      for (let i = 0; i <= this.layersTotal - 1; ++i) {
        inner += '<div class="background__copy"></div>';
      }
      this.DOM.main.innerHTML = inner;
      this.DOM.layers = Array.from(
        this.DOM.main.querySelectorAll(".background__copy")
      );
    }
    initEvents() {
      this.mousemoveFn = (ev) => requestAnimationFrame(() => this.tilt(ev));
      document.body.addEventListener("mousemove", this.mousemoveFn);
    }
    // Tilt the image wrap and texts when mouse moving the current slide.
    tilt(ev) {
      if (!allowTilt) return;
      const mousepos = getMousePos(ev);
      const bounds = this.DOM.main.getBoundingClientRect();
      // Mouse position relative to the main element (this.DOM.main).
      const relmousepos = {
        x: mousepos.x - bounds.left,
        y: mousepos.y - bounds.top
      };

      this.DOM.layers.forEach((layer, pos) => {
        // Move the element from -val to val pixels in both x and y axis.
        let val = pos + 1;
        let t = { x: [val, -val], y: [val, -val] },
          r = { x: [-2, 2], y: [-val, val] },
          s = { v: [1.03, 0.97] };

        const transforms = {
          translation: {
            x: ((t.x[1] - t.x[0]) / bounds.width) * relmousepos.x + t.x[0],
            y: ((t.y[1] - t.y[0]) / bounds.height) * relmousepos.y + t.y[0]
          },
          rotation: {
            x: ((r.x[1] - r.x[0]) / bounds.height) * relmousepos.y + r.x[0],
            y: ((r.y[1] - r.y[0]) / bounds.width) * relmousepos.x + r.y[0]
          },
          scale: {
            v: ((s.v[1] - s.v[0]) / bounds.height) * relmousepos.y + s.v[0]
          }
        };

        TweenMax.to(layer, 1.5, {
          ease: "Power1.easeOut",
          x: transforms.translation.x,
          y: transforms.translation.y,
          rotationX: transforms.rotation.x,
          rotationY: transforms.rotation.y,
          scale: transforms.scale.v
        });
      });
    }
    // Scale up all the layers.
    zoom() {
      TweenMax.staggerTo(
        this.DOM.layers,
        1.5,
        {
          ease: "Expo.easeOut",
          x: 0,
          y: 0,
          rotationX: 0,
          rotationY: 0,
          scale: 1.1
        },
        0.04
      );
    }
    reset() {
      TweenMax.staggerTo(
        this.DOM.layers,
        1.5,
        {
          ease: "Expo.easeOut",
          x: 0,
          y: 0,
          rotationX: 0,
          rotationY: 0,
          scale: 1
        },
        0.07
      );
    }
  }

  let allowTilt = true;
  const tilt = new TiltFx();

  // Hovering the title zooms in the main image.
  const githubEl = document.querySelector(".content__tagline");
  githubEl.addEventListener("mouseenter", () => {
    allowTilt = false;
    tilt.zoom();
  });
  githubEl.addEventListener("mouseleave", () => (allowTilt = true));
}

</script>

<main>
  <div class="frame">
  </div>
  <div class="content">
    <div class="background" style="background-image: url(https://assets.codepen.io/3711704/outlaws-bg.png);"></div>
    <h23 class="content__title2">outlaws</h23>
    <h23 class="content__title">outlaws</h23>
    <div class="content__tagline line-through">
      <div class="tagline">never fire a warning shot, it's a waste of ammunitio<font style="letter-spacing:0px;">n</font>
      </div>
    </div>
  </div>

</main>
<script src="https://assets.codepen.io/3711704/TweenMax.min.js"></script>
[/html]

0

36

[html]
<style>
/* import font(s) */
@import url("https://fonts.googleapis.com/css?family=Alegreya+Sans+SC:400,900");

/* detail root variables
--color-theme cascades to most html elements, and will be later updated in JavaScript
*/
:root {
  --font: "Alegreya Sans SC", sans-serif;
  --color-bg: #000b14;
  --color-theme: #70a9fe;
}

/* heading centered atop the page */
h17 {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 3rem;
  transition: all 0.25s ease-in-out;
display: block;
position: absolute;
right: 110px;
top: 160px;
border: 3px solid currentColor;
padding: 10px;
background: #fff;
color: var(--color-theme);
}
/* shown/hidden through an dedicated class */
h17.isHidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1rem) scale(0);
}

/* wheel positioned to the left of the page, and occupying 50% of whichever dimension is the biggest */
svg#wheel {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
}

/* arrow positioned to the right of the wheel, and pointing at the very middle section */
svg#pin {
  position: absolute;
  left: 500px;
  width: calc(50vmax / 25);
  height: calc(50vmax / 25);
  top: 50%;
  transform: translateY(-50%);
  fill: var(--color-theme);
}

/* instructions displayed on the right side, in a single column layout */
.instructions {
  min-height: 600px;
  color: var(--color-theme);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
.instructions h2 {
  font-size: 1rem;
  letter-spacing: 0.1rem;
  position: relative;
}
/* beside a silly exclamation point add a simple word in the middle of the sentence hinting at the innocent nature of the project */
.instructions h2:after {
  content: "!";
}
.instructions h2:before {
  position: absolute;
  content: "suspicious";
  font-size: 0.75rem;
  opacity: 0.6;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) rotate(-12deg);
}

.instructions button {
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 1.55rem;
  font-family: inherit;
  color: inherit;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 0 2px currentColor;
  background: var(--color-bg);
  /* transition for a simple hover and active state */
  transition: all 0.5s ease-out;
}
.instructions button:hover {
  box-shadow: 0 0 0 1px var(--color-bg), 0 0 0 3px currentColor,
    0 0 0 5px var(--color-bg), 0 0 0 7px currentColor;
}
.instructions button:active {
  box-shadow: 0 0 0 2px currentColor, 0 0 0 4px var(--color-bg),
    0 0 0 6px currentColor;
  transform: scale(0.95) translateY(0.1rem);
}
/* cursor customized to grab, and not allowed when the wheel is spinning (class added in JS) */
.instructions button,
svg#pin {
  cursor: grab;
}
.instructions button.isSpinning,
svg#pin.isSpinning {
  cursor: not-allowed;
}
/*
animation for the pin, to have it soundly move up and down alongside the spinning wheel
the duration of the animation is customized in JS to have it run a certain number of times
*/
@keyframes pinWheel {
  33% {
    transform: translateY(-50%) rotate(-10deg);
  }
  67% {
    transform: translateY(-50%) rotate(10deg);
  }
}

</style>
<script>
// target the SVG and the pin right next to it
const containerSlices = document.querySelector('g#slices');
const pin = document.querySelector('svg#pin');

// immediately add simple dots around the wheel
for (let i = 0; i < 48; i += 1) {
  const transform = `rotate(${360 / 48 * i}), translate(0 -49.5), rotate(${-360 / 48 * i})`;
  const dot = `<circle r="0.5" cx="50" cy="50" fill="currentColor" transform="${transform}"/>`;
  containerSlices.innerHTML += dot;
}

// target the heading and the button
const heading = document.querySelector('h17');
const spinButton = document.querySelector('button');

// variable updated for the timeout
let timeoutID = 0;

// utility functions returning a random integer in a range and a random hex value
const randomInt = (min = 0, max = 16) => Math.floor(Math.random() * (max - min) + min);
const randomHex = () => randomInt().toString(16);

// object used throughout the script, describing the colors and 3 particular rotation values
// the idea is to include the three slices aroud the wheel and have the arrow point always at one of them
const suspicious = [
  {
    rotation: 45,
    color: 'A2CCB6'
  },
  {
    rotation: 180,
    color: 'FCEEB5'
  },
  {
    rotation: 315,
    color: 'EE786E'
  }
];

// add a random fill color to the circle behind the slices
let randomFill = '';
for (let i = 0; i < 6; i += 1) {
  randomFill += randomHex();
}
document.querySelector('svg circle#slice').style.fill = randomFill;

// create the slices, 24 in total, using a bit of trigonometry to compute the appropriate arc coordinates
for (let i = 360; i > 0; i -= 15) {
  // values for the path element
  const xCoor = 50 + Math.sin(i * Math.PI / 180) * 47;
  const yCoor = 50 - Math.cos(i * Math.PI / 180) * 47;
  const flags = i > 180 ? '0 1 1' : '0 0 1';

  // initialize a variable for the fill color
  let fill = '';
  // create six random hex values for the fill color
  // ! the look might be rather jarring
  for (let j = 0; j < 6; j += 1) {
    fill += randomHex();
  }
  // if the de-cremented variable matches the arbitrary rotation value of one of the objects, find the specific object
  const suspect = suspicious.find(pairing => pairing.rotation === i);
  // if existing, substitute the random hex with the value specified in said object
  if (suspect) {
    fill = suspect.color;
  }

  // create the path element and append it to the SVG container
  const path = `
    <path d="M 50 50 L 50 3 A 47 47 ${flags} ${xCoor} ${yCoor}" fill=#${fill} />
  `;
  containerSlices.innerHTML += path;
}

// function spinning the wheel
function spinWheel() {
  // remove the event listener from the button and the wheel, to avoid running the function twice at the same time
  spinButton.removeEventListener('click', spinWheel);
  pin.removeEventListener('click', spinWheel);

  // immediately hide the heading showing the matching color
  heading.classList.add('isHidden');
  // add a class to the pin and the button to show how they should not be clicked
  pin.classList.add('isSpinning');
  spinButton.classList.add('isSpinning');

  // create variables for the duration of the rotation, as whell as the number of rotations achieved by the wheel
  const randomDuration = randomInt(4, 10);
  const randomRotate = randomInt(10, 20);
  // crate a variable to pick from one of the objects at random
  const randomSuspect = randomInt(0, 3);

  // apply the transition and the transform properties
  containerSlices.style.transformOrigin = '50%';
  containerSlices.style.transition = `transform ${randomDuration}s ease-out`;
  /* for the rotation, beside an arbitrary x360 rotation, remember to
  - add 90 to match the position of the arrow (to the very right of the wheel)
  - subtract the rotation of the slices
  - add up to a slice as to have the arrow point within the slice's boundaries
  */
  containerSlices.style.transform = `rotate(${randomRotate * 360 - suspicious[randomSuspect].rotation + 90 + randomInt(0, 360 / 24)}deg)`;

  pin.style.animation = `pinWheel ${randomDuration / 10}s 10 ease-in-out`;

  // after the time allocated for the rotation show the heading with the "random" color, update the custom property with its value
  timeoutID = setTimeout(() => {
    heading.textContent = `#${suspicious[randomSuspect].color}`;
    heading.classList.remove('isHidden');
    pin.style.animation = '';
    document.documentElement.style.setProperty('--color-theme', `#${suspicious[randomSuspect].color}`);

    // remove the class on the pin and button showing the forbidden cursor
    pin.classList.remove('isSpinning');
    spinButton.classList.remove('isSpinning');

    // reset the event listener on the button and the pin
    spinButton.addEventListener('click', spinWheel);
    pin.addEventListener('click', spinWheel);

    // clear the interval and set the boolean back to false
    clearInterval(timeoutID);
  }, randomDuration * 1000);
}

// attach a click event listener on the button, at which point call the spinWheel function
spinButton.addEventListener('click', spinWheel);

// call the same function when pressing the pin
pin.addEventListener('click', spinWheel);

</script>

<!--
  project's structure
  - svg for the color wheel (consisting of circle elements, and a group in which the slices are added)
  - svg for the arrow pointing at the selected color (positioned to the right of the circle)
  - heading in which to show the color selected through the wheel (hidden by default)
  - container for the simple instructions and the button spinning the wheel
-->

<svg id="wheel" viewBox="0 0 100 100">
  <circle
    cx="50"
    cy="50"
    r="48"
    fill="none"
    stroke-width="1"
    stroke="currentColor"
  />
<!-- add an id to the underlying circle as this depicts the final slice, and as to add a random color -->
  <circle id="slice" cx="50" cy="50" r="47" fill="#001C34" />
  <g id="slices"></g>
</svg>
<svg id="pin" viewBox="0 0 50 50"><path d="M 0 25 L 50 0 V 50" /></svg>

<h17 class="isHidden" style="user-select: all;">#ffffff00</h17>

<div class="instructions">
  <h2>Spin that color <span>wheel</span></h2>
  <button>Spin!</button>
</div>
[/html]

0

37

[html]
<style>
::-webkit-scrollbar {
    display: none;
}

body{
  background: #F8F8F8;
  margin: 50px;
  overflow-X: hidden;
}

.mainContainer{
  width: 100%;
  height: 600px;
  background-color: #FFFFFF;
}
.mainTitle{
  padding-top: 80px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.mainNav{
  height: 500px;
  width: 100%;
  paddingt: 0px;
  overflow: auto;
  white-space: nowrap;
  user-select: none;
  background-color: ;
}

.mainList{
  list-style: none;
  padding: 0;
  width: 100%;
  height: auto;
  text-align: left;
  margin: auto;
  padding: 30px 50px 30px 50px;
  position: relative;
}
.mainList.active {
  cursor: grabbing;
  cursor: -webkit-grabbing;
}

.list-item{
  width: 200px;
  height: 250px;
  background-color: lightgrey;
  border-radius: 8px;
 
  display: inline-block;
 
  transition: all 0.5s ease;
  position: relative;
 
  top: 0px;
  margin-right: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
   
  vertical-align: top;
}
.hvr-title{
  width: 200px;
  height: 60px;
  border-radius: 8px;
 
  margin-left: 10px;
 
  background-color: #FF1161;
  position: relative;
 
  top: 140px;
 
  opacity: 0;
 
  transition: all 0.5s ease;
 
  z-index: 10;
  line-height: 8px;
}

.titleList{
  font-size: 12px;
  color: grey;
  padding-top: 11px;
  display:none;
}

.subtitleList{
  font-size: 10px;
  font-weight: 200;
  color: lightgrey;
  display:none;
}

.list-item:hover{
  box-shadow: 0px 0px 80px rgba(0,0,0,0.1);
  top: -6px;
}
.list-item:hover .hvr-title{
  opacity: 1;
  margin-left: 20px;
  cursor: pointer;
}

.hvr-title:hover{
   box-shadow: 0 0 80px rgba(0,0,0,0.6);
}

.list-item1{
  background-image: url('https://images.unsplash.com/photo-1504006833117-8886a355efbf?auto=format&fit=crop&w=2550&q=80');
  background-repeat: no-repeat;
  background-size: auto 100%;
}
.list-item2{
  background-image: url('https://images.unsplash.com/photo-1504006833117-8886a355efbf?auto=format&fit=crop&w=2550&q=80');
  background-repeat: no-repeat;
  background-size: auto 100%;
}
.list-item3{
  background-image: url('https://images.unsplash.com/photo-1504006833117-8886a355efbf?auto=format&fit=crop&w=2550&q=80');
  background-repeat: no-repeat;
  background-size: auto 100%;
}
.list-item4{
  background-image: url('https://images.unsplash.com/photo-1504006833117-8886a355efbf?auto=format&fit=crop&w=2550&q=80');
  background-repeat: no-repeat;
  background-size: auto 100%;
}
.list-item5{
  background-image: url('https://images.unsplash.com/photo-1504006833117-8886a355efbf?auto=format&fit=crop&w=2550&q=80');
  background-repeat: no-repeat;
  background-size: auto 100%;
}
.list-item6{
  background-image: url('https://images.unsplash.com/photo-1504006833117-8886a355efbf?auto=format&fit=crop&w=2550&q=80');
  background-repeat: no-repeat;
  background-size: auto 100%;
}
.list-item7{
  background-image: url('https://images.unsplash.com/photo-1504006833117-8886a355efbf?auto=format&fit=crop&w=2550&q=80');
  background-repeat: no-repeat;
  background-size: auto 100%;
}
</style>
<script>
$(document).ready(function() {
//area 1
$('.mainList').children().hover(function() {
    $(this).siblings().stop().fadeTo(100,0.3);
}, function() {
    $(this).siblings().stop().fadeTo(100,1);
});
});

</script>
<!-- mainContainer -->
<div class="mainContainer">
 
  <!-- mainTitle -->
    <svg width="100px" height="59px" viewBox="0 0 168 59" version="1.1" class="mainTitle">
      <!-- Generator: Sketch 47.1 (45422) - http://www.bohemiancoding.com/sketch -->
      <desc>Created with Sketch.</desc>
      <defs></defs>
      <g id="english-read" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
          <g id="EN-home" transform="translate(-653.000000, -212.000000)">
              <text id="Blog" font-family="Montserrat-Bold, Montserrat" font-size="18" font-weight="bold" letter-spacing="0.4" fill="#C8C5C5">
                  <tspan x="779.054" y="226">Blog</tspan>
              </text>
              <text id="amack" font-family="NexaBold, Nexa Bold" font-size="36" font-weight="bold" letter-spacing="0.800000072" fill="#4A4A4A">
                  <tspan x="660.822" y="252">amack</tspan>
              </text>
              <rect id="Rectangle-4" fill="#FFFFFF" x="653" y="244" width="135" height="27"></rect>
          </g>
      </g>
</svg>
  <!---->
   
  <!-- mainNav -->
  <nav class="mainNav">
    <!-- mainList -->
    <ul class="mainList">
    <li class="list-item list-item1">
     
      <div class="hvr-title">
        <h1 class="titleList">AMack's exhibition</h1>
        <h2 class="subtitleList">12th Dec. 2017</h2>
      </div>
    </li>
   
    <li class="list-item list-item2">
      <div class="hvr-title">
        <h1 class="titleList">AMack's exhibition</h1>
        <h2 class="subtitleList">12th Dec. 2017</h2>
      </div>
    </li>
   
    <li class="list-item list-item3">
      <div class="hvr-title">
        <h1 class="titleList">AMack's exhibition</h1>
        <h2 class="subtitleList">12th Dec. 2017</h2>
      </div>
    </li>
   
    <li class="list-item list-item4">
      <div class="hvr-title">
        <h1 class="titleList">AMack's exhibition</h1>
        <h2 class="subtitleList">12th Dec. 2017</h2>
      </div>
    </li>
   
    <li class="list-item list-item5">
      <div class="hvr-title">
        <h1 class="titleList">AMack's exhibition</h1>
        <h2 class="subtitleList">12th Dec. 2017</h2>
      </div>
    </li>
   
    <li class="list-item list-item6">
      <div class="hvr-title">
        <h1 class="titleList">AMack's exhibition</h1>
        <h2 class="subtitleList">12th Dec. 2017</h2>
      </div>
    </li>
   
    <li class="list-item list-item7">
      <div class="hvr-title">
        <h1 class="titleList">AMack's exhibition</h1>
        <h2 class="subtitleList">12th Dec. 2017</h2>
      </div>
    </li>
  </ul>
    <!---->
  </nav>
  <!---->
 
 
</div>

[/html]

0

38

[html]
<style>
@import url(https://fonts.googleapis.com/css?family=Poiret+One);

* {
  overflow: hidden;
  padding: 0;
  margin: 0;
  color: white;
  font-family: 'Poiret One', cursive;
  font-size: 70px;
  font-weight: 500;
}

#container4 {
  background: url("https://4.bp.blogspot.com/-dQHlD3ODaWc/UJvp239aC4I/AAAAAAAAG0o/HE0s1cYxaes/s1600/wallpaper-2110637.jpg") no-repeat;
  background-size: cover;
  text-align: center;
height: 300px;
background-position: center;
}

h14 {
  top: 40px;
  letter-spacing: 7px;
padding: 60px;
position: absolute;
left: 100px;
}

</style>
<script>
$(function(){
  $('h14').delegate('span', 'mouseenter mouseleave', function(e){
   
    var span = $(this);
   
    if (e.type === 'mouseenter'){
      span.not(':animated').animate({ fontSize: '50px' });
    }
    else if (e.type === 'mouseleave'){
      span.animate({ fontSize: '70px' });
    }
  });
 
  var newText = '',
      h14 = $('h14').text(),
      len = h14.length;

for (var i = 0; i < len; i++){
    newText += '<span>' + h14.charAt(i) + '</span>';
}
$('h14').html(newText);
});
</script>
<div id="container4">
  <h14>hover me</h14>
</div>

[/html]

0

39

[html]
<style>
#container3 {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  font-family: sans-serif;
}

#card {
  width: 200px;
  height: 200px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  box-shadow: inset 1px 1px 0.12px rgba(255, 255, 255, 0.4),
    1px 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);

  animation: move 5s ease-in-out infinite;
  background-clip: padding-box;
}

h12 {
  position: absolute;
  z-index: 1;
  font-size: 200px;
  letter-spacing: 15px;
  color: #fff;
  height: 300px;
  top: 10px;
}

@keyframes move {
  0% {
    transform: translateX(-200px);
  }
  50% {
    transform: translateX(200px);
  }
  100% {
    transform: translateX(-200px);
  }
}

#rect {
  top: 30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  box-shadow: inset 1px 1px 0.12px rgba(255, 255, 255, 0.4),
    1px 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: absolute;
}

#circle {
  bottom: 100px;
  left: calc(100vw / 3);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 1px 1px 0.12px rgba(255, 255, 255, 0.4),
    1px 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: absolute;
}

</style>
<div id="container3">
<div id="card">
</div>
<h12>HELLO</h12>
<div id="circle"></div>
<div id="rect"></div>
</div>
[/html]

0

40

[hideprofile][html]
<style>
section {
  position: relative;
  padding: 10px 260px 2px 2px;
}

article {
  position: relative;
  width: 80%;
  margin: 80px auto 0;
  z-index: 500;
  background: #ffffff;
  padding: 80px 80px 70px;
  border-right: 1px solid #f4f4f1;
  border-bottom: 1px solid #f4f4f1;
}

article h2 {
  color: #283f53;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

article p {
  margin-top: 18px;
  color: #404649;
  font-weight: 400;
}

/* The author card */

@-webkit-keyframes moveOut {
  0%    {
    top: 50px;
    right: 7%;
    z-index: 400;
    -webkit-transform:rotate(7deg); /* Safari and Chrome */
  }
  50%   {
    right: 4%;
    z-index: 400;
    -webkit-transform:rotate(0deg); /* Safari and Chrome */
  }
  51%   {
    z-index: 600;
  }
  100%  {
    z-index: 600;
    right: 7%;
  }
}

@-webkit-keyframes moveIn {
  100%    {
    top: 50px;
    right: 7%;
    z-index: 400;
    -webkit-transform:rotate(7deg); /* Safari and Chrome */
  }
  51%   {
    right: 4%;
    z-index: 400;
    -webkit-transform:rotate(0deg); /* Safari and Chrome */
  }
  50%   {
    z-index: 600;
  }
  0%  {
    z-index: 600;
    right: 7%;
  }
}
.author {
  -webkit-animation: moveIn 0.3s;
 
  position: absolute;
  width: 200px;
  background: #ffffff;
  text-align: center;
  padding: 15px;
  border-left: 1px solid #f4f4f1;
  border-bottom: 1px solid #f4f4f1;

    top: 50px;
    right: 7%;
    z-index: 400;
    -webkit-transform:rotate(7deg); /* Safari and Chrome */
}

.author:before {
  content: "автор";
  display: block;
  text-align: right;
  margin-top: -10px;
  margin-right: -10px;
  text-transform: uppercase;
  font-size: 0.6em;
  color: #dce5ed
}

.author:hover {
    -webkit-animation: moveOut 0.3s forwards;

    right: 7%;
    z-index: 600;
    transform:rotate(0deg);
    -ms-transform:rotate(0deg); /* IE 9 */
    -webkit-transform:rotate(0deg); /* Safari and Chrome */
}

.author a.name {
  display: block;
  text-align: center;
  color: #507da5;
  text-decoration: none; 
  font-weight: 600;
}

.author img.circle {
    border-radius: 100%;
    width: 100px;
}

.author p {
    text-align: left;
    font-size: 12px;
    margin-top: 18px;
    color: #404649;
    font-weight: 400;
}

</style>
<section>
  <div class="author">
    <a href="#" class="name">
      <img src="https://i.pinimg.com/736x/ba/63/c8/ba63c8c59472544babda7ea7455c914c.jpg" class="circle" /><br/>
      Lorem ipsum
    </a>
    <p>Some bio text that goes over several lines so that we have some text that can be used for showing how it works.</p>
    <p>And another line just to show it in greater detail.</p>
  </div>
<article> 
  <div class="article-content">
    <h2>Some title</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus mattis odio sit amet diam ultrices, sed ultrices metus fermentum. Vestibulum luctus, nunc non porta sollicitudin, est nibh iaculis mi, eu lacinia purus felis at ligula. Praesent id orci eros. Proin tincidunt bibendum ligula, sed placerat quam vehicula vel. Maecenas euismod tortor id turpis viverra, sed eleifend nulla egestas. Fusce fermentum ullamcorper nisl, sed volutpat metus scelerisque nec. Nulla pulvinar, lorem eu dictum rhoncus, tortor nulla consequat orci, ac sagittis est sem et arcu. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>

<p>Sed euismod rhoncus gravida. In elementum eros sed lorem iaculis pellentesque. Duis tincidunt ut mauris et condimentum. Ut pretium auctor nunc placerat vulputate. Quisque id arcu et velit fermentum scelerisque sed sit amet nisi. Maecenas adipiscing ullamcorper venenatis. Nam ornare justo scelerisque augue scelerisque, vel adipiscing sapien euismod. Proin non tortor posuere, vulputate tortor at, molestie nibh. Nullam in arcu vitae quam elementum congue at nec dui. In id scelerisque felis, ut dapibus diam.</p>

  </div>
</article>
</section>
[/html]

0

41

[html]
<style>
*,
*::after,
*::before {
box-sizing: border-box;
}

#container5 {
--color-text: #fff;
--color-bg: #181a1e;
--color-link: #fff;
--color-link-hover: #0b44fb;
--color-blocklink: #515151;
--color-blocklink-hover: #fff;
--color-blocktitle: #fff;
--color-blocktitle-hover: #ff4081;
--color-text: #767676;
font-family: Futura, "futura-pt", Arial, sans-serif;
min-height: 100vh;
color: #57585c;
color: var(--color-text);
background-color: #fff;
background-color: var(--color-bg);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

a {
text-decoration: none;
color: var(--color-link);
outline: none;
}

a:hover,
a:focus {
color: var(--color-link-hover);
}

button:focus,
a:focus {
outline: none;
}

main {
position: relative;
width: 100%;
}

.block {
/* text-transform: lowercase; */
padding: 0 5vw 20vh;
display: flex;
flex-direction: column;
align-items: center;
}

.block__title {
position: relative;
font-size: 1rem;
margin: 0 0 1.5rem 0;
padding: 0.5rem 0;
cursor: pointer;
font-weight: bold;
color: var(--color-blocktitle);
}

.block__title:hover {
color: var(--color-blocktitle-hover);
}

.block__link {
position: relative;
cursor: pointer;
padding: 0.5rem 0;
color: var(--color-blocklink);
}

.block__link:hover {
color: var(--color-blocklink-hover);
}

.block__title span,
.block__link span {
display: inline-block;
white-space: pre;
}

.block[data-fx="1"] a::after,
.block[data-fx="2"] a::after {
content: '';
z-index: -1;
width: 100%;
bottom: 0.25rem;
left: 0;
position: absolute;
height: 2px;
background: currentColor;
transform: scale3d(0,1,1);
transform-origin: 0% 50%;
transition: transform 0.2s cubic-bezier(0.390, 0.575, 0.565, 1.000);
}

.block[data-fx="1"] a:hover::after,
.block[data-fx="2"] a:hover::after {
transform: scale3d(1,1,1)
}

.hover-reveal {
position: fixed;
width: 200px;
height: 150px;
top: 0;
left: 0;
pointer-events: none;
opacity: 0;
}

.hover-reveal__inner,
.hover-reveal__img {
width: 100%;
height: 100%;
position: relative;
}

.hover-reveal__deco {
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-color: #181314;
}

.hover-reveal__img {
background-size: cover;
background-position: 50% 50%;
}

@media screen and (min-width: 53em) {
.block {
    align-items: flex-start;
}
.content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2,50%);
    margin: 0 auto;
    padding-top: 20vh;
    max-width: 700px;
    min-height: 100vh;
    text-align: left;
}
}
</style>
<script>
{
const getMousePos = (e) => {
        let posx = 0;
        let posy = 0;
    if (!e) e = window.event;
    if (e.pageX || e.pageY) {
            posx = e.pageX;
    posy = e.pageY;
    }
    else if (e.clientX || e.clientY) {
    posx = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
    posy = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
    }
        return { x : posx, y : posy }
    }
    // Generate a random float.
    // const getRandomFloat = (min, max) => (Math.random() * (max - min) + min).toFixed(2);

    /**
     * One class per effect.
     * Lots of code is repeated, so that single effects can be easily used.
     */

    // Effect 1
    class HoverImgFx1 {
        constructor(el) {
            this.DOM = {el: el};
            this.DOM.reveal = document.createElement('div');
            this.DOM.reveal.className = 'hover-reveal';
            this.DOM.reveal.innerHTML = `<div class="hover-reveal__inner"><div class="hover-reveal__img" style="background-image:url(${this.DOM.el.dataset.img})"></div></div>`;
            this.DOM.el.appendChild(this.DOM.reveal);
            this.DOM.revealInner = this.DOM.reveal.querySelector('.hover-reveal__inner');
            this.DOM.revealInner.style.overflow = 'hidden';
            this.DOM.revealImg = this.DOM.revealInner.querySelector('.hover-reveal__img');

            this.initEvents();
        }
        initEvents() {
            this.positionElement = (ev) => {
                const mousePos = getMousePos(ev);
                const docScrolls = {
                    left : document.body.scrollLeft + document.documentElement.scrollLeft,
                    top : document.body.scrollTop + document.documentElement.scrollTop
                };
                this.DOM.reveal.style.top = `${mousePos.y+20-docScrolls.top}px`;
                this.DOM.reveal.style.left = `${mousePos.x+20-docScrolls.left}px`;
            };
            this.mouseenterFn = (ev) => {
                this.positionElement(ev);
                this.showImage();
            };
            this.mousemoveFn = ev => requestAnimationFrame(() => {
                this.positionElement(ev);
            });
            this.mouseleaveFn = () => {
                this.hideImage();
            };
           
            this.DOM.el.addEventListener('mouseenter', this.mouseenterFn);
            this.DOM.el.addEventListener('mousemove', this.mousemoveFn);
            this.DOM.el.addEventListener('mouseleave', this.mouseleaveFn);
        }
        showImage() {
            TweenMax.killTweensOf(this.DOM.revealInner);
            TweenMax.killTweensOf(this.DOM.revealImg);

            this.tl = new TimelineMax({
                onStart: () => {
                    this.DOM.reveal.style.opacity = 1;
                    TweenMax.set(this.DOM.el, {zIndex: 1000});
                }
            })
            .add('begin')
            .add(new TweenMax(this.DOM.revealInner, 0.2, {
                ease: Sine.easeOut,
                startAt: {x: '-100%'},
                x: '0%'
            }), 'begin')
            .add(new TweenMax(this.DOM.revealImg, 0.2, {
                ease: Sine.easeOut,
                startAt: {x: '100%'},
                x: '0%'
            }), 'begin');
        }
        hideImage() {
            TweenMax.killTweensOf(this.DOM.revealInner);
            TweenMax.killTweensOf(this.DOM.revealImg);

            this.tl = new TimelineMax({
                onStart: () => {
                    TweenMax.set(this.DOM.el, {zIndex: 999});
                },
                onComplete: () => {
                    TweenMax.set(this.DOM.el, {zIndex: ''});
                    TweenMax.set(this.DOM.reveal, {opacity: 0});
                }
            })
            .add('begin')
            .add(new TweenMax(this.DOM.revealInner, 0.2, {
                ease: Sine.easeOut,
                x: '100%'
            }), 'begin')
           
            .add(new TweenMax(this.DOM.revealImg, 0.2, {
                ease: Sine.easeOut,
                x: '-100%'
            }), 'begin');
        }
    }

    // Effect 2
    class HoverImgFx2 {
        constructor(el) {
            this.DOM = {el: el};
            this.DOM.reveal = document.createElement('div');
            this.DOM.reveal.className = 'hover-reveal';
            this.DOM.reveal.style.overflow = 'hidden';
            this.DOM.reveal.innerHTML = `<div class="hover-reveal__inner"><div class="hover-reveal__img" style="background-image:url(${this.DOM.el.dataset.img})"></div></div>`;
            this.DOM.el.appendChild(this.DOM.reveal);
            this.DOM.revealInner = this.DOM.reveal.querySelector('.hover-reveal__inner');
            this.DOM.revealInner.style.overflow = 'hidden';
            this.DOM.revealImg = this.DOM.revealInner.querySelector('.hover-reveal__img');
            this.DOM.letters = Array.from(this.DOM.el.querySelectorAll('span'));
            this.initEvents();
        }
        initEvents() {
            this.positionElement = (ev) => {
                const mousePos = getMousePos(ev);
                const docScrolls = {
                    left : document.body.scrollLeft + document.documentElement.scrollLeft,
                    top : document.body.scrollTop + document.documentElement.scrollTop
                };
                this.DOM.reveal.style.top = `${mousePos.y+20-docScrolls.top}px`;
                this.DOM.reveal.style.left = `${mousePos.x+20-docScrolls.left}px`;
            };
            this.mouseenterFn = (ev) => {
                this.positionElement(ev);
                this.showImage();
                this.animateLetters();
            };
            this.mousemoveFn = ev => requestAnimationFrame(() => {
                this.positionElement(ev);
            });
            this.mouseleaveFn = () => {
                this.hideImage();
            };
           
            this.DOM.el.addEventListener('mouseenter', this.mouseenterFn);
            this.DOM.el.addEventListener('mousemove', this.mousemoveFn);
            this.DOM.el.addEventListener('mouseleave', this.mouseleaveFn);
        }
        showImage() {
            TweenMax.killTweensOf(this.DOM.revealInner);
            TweenMax.killTweensOf(this.DOM.revealImg);

            this.tl = new TimelineMax({
                onStart: () => {
                    this.DOM.reveal.style.opacity = 1;
                    TweenMax.set(this.DOM.el, {zIndex: 1000});
                }
            })
            .add('begin')
            .set([this.DOM.revealInner, this.DOM.revealImg], {transformOrigin: '50% 100%'})
            .add(new TweenMax(this.DOM.revealInner, 0.4, {
                ease: Expo.easeOut,
                startAt: {x: '50%', y: '120%', rotation: 50},
                x: '0%',
                y: '0%',
                rotation: 0
            }), 'begin')
            .add(new TweenMax(this.DOM.revealImg, 0.4, {
                ease: Expo.easeOut,
                startAt: {x: '-50%', y: '-120%', rotation: -50},
                x: '0%',
                y: '0%',
                rotation: 0
            }), 'begin')
            .add(new TweenMax(this.DOM.revealImg, 0.7, {
                ease: Expo.easeOut,
                startAt: {scale: 2},
                scale: 1
            }), 'begin');
        }
        hideImage() {
            TweenMax.killTweensOf(this.DOM.revealInner);
            TweenMax.killTweensOf(this.DOM.revealImg);

            this.tl = new TimelineMax({
                onStart: () => {
                    TweenMax.set(this.DOM.el, {zIndex: 999});
                },
                onComplete: () => {
                    TweenMax.set(this.DOM.el, {zIndex: ''});
                    TweenMax.set(this.DOM.reveal, {opacity: 0});
                }
            })
            .add('begin')
            //.set([this.DOM.revealInner, this.DOM.revealImg], {transformOrigin: '50% 0%'})
            .add(new TweenMax(this.DOM.revealInner, 0.6, {
                ease: Expo.easeOut,
                y: '-120%',
                rotation: -5
            }), 'begin')
            .add(new TweenMax(this.DOM.revealImg, 0.6, {
                ease: Expo.easeOut,
                y: '120%',
                rotation: 5,
                scale: 1.2
            }), 'begin')
        }
        animateLetters() {
            this.DOM.letters.forEach((letter,pos) => {
                TweenMax.set(letter, {opacity: 0});
                const delay = pos*2/100;
                TweenMax.to(letter, pos*0.07 + 0.2, {
                    ease: Expo.easeOut,
                    delay: delay,
                    startAt: {x: '100%'},
                    x: '0%',
                    opacity: 1
                });
            });
        }
    }

    Array.from(document.querySelectorAll('[data-fx="1"] > a, a[data-fx="1"]')).forEach(link => new HoverImgFx1(link));
    Array.from(document.querySelectorAll('[data-fx="2"] > a, a[data-fx="2"]')).forEach(link => new HoverImgFx2(link));
 
}

</script>
<div id="container5">
<div class="content">
        <div class="block" data-fx="1">
        <a class="block__title" data-img="https://i.pinimg.com/originals/4a/37/27/4a37270d6e26774021b0a8da111df6d3.png">Effetto 1</a>
        <a class="block__link" data-img="https://source.unsplash.com/random/1400x1000">testo p</a>
        <a class="block__link" data-img="https://source.unsplash.com/random/1300x900">testo pr</a>
        <a class="block__link" data-img="https://source.unsplash.com/random/1600x1100">testo pro</a>
        <a class="block__link" data-img="https://source.unsplash.com/random/1920x1080">testo prov</a>
        </div>
        <div class="block" data-fx="2">
        <a class="block__title" data-img="https://source.unsplash.com/random/1200x1000">Effetto 2 migliore</a>
        <a class="block__link" data-img="https://source.unsplash.com/random/1200x760">testo prov</a>
        <a class="block__link" data-img="https://source.unsplash.com/random/1320x980">testo pro</a>
        <a class="block__link" data-img="https://source.unsplash.com/random/1600x1000">testo pr</a>
        <a class="block__link" data-img="https://source.unsplash.com/random/960x500">testo p</a>
        </div>
</div>
</div>
[/html]

0

42

[html]
<style>
#container{
    text-align:center;
    width:340px;
    height:480px;
    margin:auto;
    position:relative;
    background:#006f81;
}
#menu{
    padding-top:10px;
    padding-left:20px;
    font-size:55px;
    width:100%;
}
#game{
    padding-top:10px;
    font-size:55px;
    width:100%;
    display:none;
}
#opcje{
    padding-top:10px;
    font-size:55px;
    width:100%;
    display:none;
}
#autor{
    font-size:55px;
    width:100%;
    display:none;
}
.txt{
    font-size:24px;
    width:80%;
    margin:auto;
}
.txt a{
    text-decoration:none;
    color:#000;
}
svg line{
    stroke:#000;
    stroke-width:5
}
#back{
    text-align:center;
    width:140px;
    margin:auto;
    background-color: #008499;
    color: white;
   
    font-size:24px;
    cursor:pointer;
    display:none;
}
#back:hover{
    background-color:#4c9aa6;
}
#pass{
    font-size:24px;
    width:250px;
    margin:5px auto 5px auto;
    border-radius:10px;
    background-color:#008499;
    border: 1px black;
    padding:4px 0;
      cursor:default;
}
.title{
    color:#ededed;
    width:340px;
    font-size:48px;
      font-family:nosifer;
}
ul{
    list-style-type: none;
    margin:auto;
    margin-top: 0;
    width: 300px;
    padding:0;
}
li a, li a.lock:hover{
    width: 300px;
    position:relative;
    left:0;
    font-size:24px;
    margin:5px 0;
    display: block;
    color: white;
    padding: 6px 0 6px 0;
    text-decoration: none;
    background-color: #005968;
      cursor:pointer;
    border-radius:5px;
}
li a:hover {
    background-color:#008499
;
    color: white;
    width: 320px;
    position:relative;
    left:-10px;
    cursor:hand;
}
li a.lock{
    opacity:0.5;
}
#alphabet{
    color:#fff;
    font-size:18px;
    margin: auto;
    margin-bottom:5px;
    display: flex;
    flex-wrap: wrap;
    width:90%;
    justify-content: center;
}
#alphabet span{
    background-color:#008499;
    margin: 3px 5px;
    height:25px;
    width:25px;
    padding:4px;
    border-radius:30%;
    cursor:pointer;
}

.red{
    opacity:0.4 !important;
    background:red !important;
}
.green{
    opacity:0.4 !important;
    background:lime !important;
}
#svg{
    margin:auto;
    background-color:#008499;
    width:280px;
    height:220px;
}
svg{
    position:absolute;
    left:50px;
}
.tb1{
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 5s linear forwards;
    stroke-linecap:round;
}
@keyframes dash {
    to { stroke-dashoffset: 0; }
}
#stickman{
    position:absolute;
    left:190px;
    bottom:0;
      cursor:pointer;
}
@keyframes jmp{
    0% { }
    11%{ transform: rotate(270deg);  bottom:30px; left:260px;}
    22%{ transform: rotate(450deg);  bottom:100px; left:0;}
    33%{ transform: rotate(630deg);  bottom:150px; left:260px;}
    44%{ transform: rotate(810deg);  bottom:210px; left:0;}
    55%{ transform: rotate(990deg);  bottom:250px; left:260px;}
    66%{ transform: rotate(1170deg);  bottom:200px; left:0;}
    77%{ transform: rotate(1350deg);  bottom:150px; left:260px;}
    88%{ transform: rotate(1530deg);  bottom:40px; left:0;}
    100%{ transform: rotate(1800deg); }
}
</style>
<script>
errors=0;
pkt=0;
toggle=0;
word = [
    "слово", "слово", "слово", "слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово","слово", "слово", "слово", "слово"
    ];

$(document).ready(function(){
    $("#alphabet span").click(function(){
        var input = $(this).html();
        var styyl = $(this).attr("id");
        check(input, styyl);
    });
});
function gra(){
    startgame();
    startpass();
    hide();
    $("#menu").hide();
    $("#game").show();
    $(".title").hide();
    $("#back").toggle();
}
function showMenu() {
    $("#menu").show();
    $("#game").hide();
    $("#opcje").hide();
    $("#autor").hide();
    $(".title").show();
    $("#back").toggle();

}
function showOptions() {
    $("#back").toggle();
    $("#menu").hide();
    $("#opcje").show();
}
function showInfo() {
    $("#back").toggle();
    $("#menu").hide();
    $("#autor").show();
}
function exit(){
    c=confirm("Are you sure?");
    if (c==true){
        window.location.href = "#";
    }
}
function hide() {
    $("#svg svg").hide();
}
function startpass(){
    boxy = new Array();
    hiden="";
    hub=wordp;
    i=hub.length;
    for(i=0; i<hub.length; i++)
    {
        hiden=hiden+"*";
        boxy[i]="*";
    }
    $("#pass").text(hiden);
}
function startgame(){
    errors=0;
    n=Math.floor(Math.random() * 110);
    wordp=word[n];
    clearAlphabet();
}
function jump(){
    if(toggle==0){
        $("#stickman").css("animation","jmp 4s ease-out ");
        toggle=1;
    }
    else{
        $("#stickman").css("animation","none");
        toggle=0;
    }
}

function szubienica(){
    errors++;
    if(errors<11){
        $("#t"+errors).show();
    }
    else{
        $("#t"+errors).show();
        alert("You lost! \nWord is: "+wordp+"\nFinal score is: "+pkt);
        window.setTimeout(gameOver, 600);
    }
}
function gameOver(){
    pkt=0;
    hide();
    showMenu();
}
function clearAlphabet(){
    $("#alphabet span").removeClass("red green");
}
function check(val,styl){
    if (wordp.indexOf(val) > -1){
        $("#"+styl).addClass("green");
        slowa(val);
    }
    else{
        $("#"+styl).addClass("red");
        szubienica();
    }
}
function slowa(val){
    n=wordp.length;
    for(i=0; i<n; i++){
        st=wordp.indexOf(val, i);
        boxy[st]=val;}
        hiden='';
    for(d=0; d<n; d++){
        hiden+=boxy[d];
        $("#pass").text(hiden);
    }
    win();
}
function wygrana(){
        pkt++;
    alert("Congratulations! \nYour score is: "+pkt+"\nLet's continue!");
    gra();
    $("#back").toggle();
}

function win(){
    if(hiden==wordp){
    window.setTimeout(wygrana, 600);
    }
}
</script>

<html>
<head>
      <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1">
   <link href="https://fonts.googleapis.com/css?family=Nosifer" rel="stylesheet">
  <script src="https://code.jquery.com/jquery-3.1.1.js"></script>
  <title>Виселица</title>
</head>

<body onselectstart="return false">
     
 <div class="container">
      <div id="container">
    <div class="title">ВИСЕЛИЦА</div>
    <!-- Menu start -->
    <div id="menu">
      <div id="opt">
        <ul>
          <li><a onClick="gra();" id="play">PLAY</a></li>
          <li><a onClick="showInfo();" id="auth">INFORMATIONS</a></li>
          <li><a onClick="exit();" id="exit">EXIT</a></li>
        </ul>
      </div>
      <svg id="stickman" onclick="jump()" width="80px" height="100px">
<circle cx="40" cy="20" r="13" stroke="black" stroke-width="5" fill="white" />
<line x1="40" y1="35" x2="40" y2="70" />
<line x1="40" y1="50" x2="10" y2="20" />
<line x1="40" y1="50" x2="70" y2="20" />
<line x1="40" y1="70" x2="20" y2="100" />
<line x1="40" y1="70" x2="60" y2="100" />
</svg>
    </div>

    <div id="game">
      <div id="svg">
        <svg id="t1" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="20" y1="200" x2="20" y2="20" />
        </svg>
        <svg id="t2" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="20" y1="20" x2="160" y2="20" />
        </svg>
        <svg id="t3" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="21" y1="160" x2="60" y2="200"  />
        </svg>
        <svg id="t4" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="20" y1="50" x2="50" y2="20"  />
        </svg>
        <svg id="t5" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="140" y1="20" x2="140" y2="50"  />
        </svg>
        <svg id="t6" width="280px" height="250px" style="display:none">
            <circle class="tb1" cx="140" cy="50" r="15" stroke="black" stroke-width="5" fill="white" />
        </svg>
        <svg id="t7" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="140" y1="65" x2="140" y2="100"  />
        </svg>
        <svg id="t8" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="140" y1="70" x2="120" y2="100"  />
        </svg>
        <svg id="t9" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="140" y1="70" x2="160" y2="100"  />
        </svg>
        <svg id="t10" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="140" y1="100" x2="120" y2="130"  />
        </svg>
        <svg id="t11" width="280px" height="250px" style="display:none">
            <line class="tb1" x1="140" y1="100" x2="160" y2="130"  />
        </svg>
      </div>
      <div id="pass"></div>
      <div id="alphabet">
        <span id="а">а</span><span id="б">б</span>
        <span id="в">в</span><span id="г">г</span>
        <span id="д">д</span><span id="и">и</span>
        <span id="к">к</span><span id="л">л</span>
        <span id="м">м</span><span id="н">н</span>
        <span id="о">о</span><span id="п">п</span>
        <span id="р">р</span><span id="с">с</span>
        <span id="т">т</span><span id="у">у</span>
        <span id="ф">ф</span><span id="х">х</span>
        <span id="ц">ц</span><span id="ш">ш</span>
        <span id="щ">щ</span><span id="ы">ы</span>
        <span id="ь">ь</span><span id="ъ">ъ</span>
        <span id="э">э</span><span id="ю">ю</span>
        <span id="я">я</span>
      </div>
    </div>
   
    <div id="opcje">
      <div id="opt">
        <ul>
          <li><a class="lock" id="lang">LANGUAGE</a></li>
          <li><a class="lock" id="sound">DIFFICULTY</a></li>
          <li><a class="lock" id="login">LOGIN</a></li>
        </ul>
      </div>
    </div>
   
    <div id="autor">
      <div class="txt">
        Hangman game ...
        <br>
        <p>&copy;Created by<br>AOULI Oussama<a target='_blank' href='#'></a></p>
      </div>
    </div>

   
    <div onClick="showMenu();" id="back">MENU</div>
  </div>
       </div>
</body>

</html>
[/html]

0

43

[html]
<style>
:root {
  --font-main: 'Cardo', serif;
  --offwhite: #f0f0f0;
  --border: #aaa;
  --font-size: 92px;
  --ascender-height-ratio: .19;
  --descender-height-ratio: .06;
  --baseline-ratio: .36;
  --cap-height-ratio: .30;
  --x-height-ratio: .54;
  --active-color: #ad3f35;
  --annotation-offset: 280px;
  --annotation-top-animation: 230px;
}

* { box-sizing: border-box; }

h1,h2,h3,h4,h5 { padding: 0; margin: 0 }

html, body {
  background: var(--offwhite);
  margin: 0;
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-main);
}

.paper-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  position: relative;
  align-items: center;
  justify-content: center;
}

.text-body {
  width: 100vw;
  text-align: center;
  position: relative;
  padding: 0 40px;
}

.paper-line {
  font-size: var(--font-size);
}

.circle {
  border: 2px solid var(--border);
  height: 12px;
  width: 12px;
  border-radius: 20px;
  position: relative;
  top: -6px;
  left: 20px;
  transition: transform 0.25s ease-in-out;
}

.circle.circle-odd {
  left: 60px;
}

.circle:hover {
  border: 1px solid var(--active-color);
  transform: scale(1.5);
}

.paper-outline {
  height: 1px;
  background: transparent;
  width: 100%;
  border-bottom: 1px dashed var(--border);
  position: relative;
  transition: background 0.25s ease-in-out;
}

.paper-outline:hover {
  border-bottom: 1px dashed var(--active-color);
  cursor: pointer;
}

.paper-outline:hover .circle {
  transform: scale(2);
  border: 1px solid var(--active-color);
}

#ascender-height {
  top: calc(var(--font-size) * var(--ascender-height-ratio));
}

#ascender-height:hover .annotation-tooltip {
  top: -120px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0px);
}

#descender-height {
  bottom: calc(var(--font-size) * var(--descender-height-ratio));
}

#descender-height:hover .annotation-tooltip {
  top: -230px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0px);
}

#baseline {
  bottom: calc(var(--font-size) * var(--baseline-ratio));
}

#overhang {
  bottom: calc(var(--font-size) * var(--baseline-ratio));
  border: 0;
  padding-left: 303px;
}

#overhang:hover .annotation-tooltip {
  top: -240px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0px);
}

#baseline:hover .annotation-tooltip {
  top: -230px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0px);
}

#cap-height {
  top: calc(var(--font-size) * var(--cap-height-ratio));
}

#cap-height:hover .annotation-tooltip {
  top: -130px;
  opacity: 1;
  pointer-events: auto;
}

#x-height {
  top: calc(var(--font-size) * var(--x-height-ratio));
}
#x-height:hover .annotation-tooltip {
  top: -160px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0px);
}

.annotation-tooltip {
  color: var(--active-color);
  font-size: 12px;
  width: 120px;
  display: block;
  pointer-events: none;
  position: absolute;
  top: var(--annotation-offset);
  left: 200px;
  top: -20px;
  opacity: 0;
  transition: all .55s ease-in-out;
  text-align: left;
}

.annotation-tooltip:before {
  bottom: -20px;
  content: " ";
  display: block;
  height: 20px;
  left: 0;
  position: absolute;
  width: 100%;

.annotation-tooltip h5 {
  font-size: 12px;
  text-transform: uppercase;
}

.annotation-tooltip p {
  margin-top: 4px;
}

.type-footer {
  position: fixed;
  bottom: 0;
  text-align: center;
  width: 100%;
}

@keyframes hoverLine {
  from {
    border-bottom: 1px dashed var(--border);
  }
  6%,13% {
    border-bottom: 1px dashed var(--active-color);
  }
  20% {
    border-bottom: 1px dashed var(--border);
  }
  to: {
    border-bottom: 1px dashed var(--border);
  }
}

@keyframes scaleUp {
  from {
    border: 2px solid var(--border);
    transform: scale(1);
  }
  6%,11% {
    border: 2px solid var(--active-color);
    transform: scale(1.5);
  }
  14% {
    border: 2px solid var(--border);
    transform: scale(1); 
  }
  to: {
    border: 2px solid var(--border);
    transform: scale(1);   
  }
}

@keyframes translateUp  {
  from {
    top: var(--annotation-offset);
    opacity: 0;
  }
  6%,13% {
    top: var(--annotation-top-animation);
    opacity: 1;
    transform: translateY(0px);
  }
  20% {
    top: var(--annotation-offset);
    opacity: 0;
  }
  to {
    top: var(--annotation-offset);
    opacity: 0;
  }
}
</style>

<div class="paper-container">

  <div id="ascender-tip" class="annotation-tooltip">
    <h5>Ascender Height</h5>
    <p>
      Some elements may extend slightly above
      the cap height.
   </p>
  </div>

  <div id="cap-tip" class="annotation-tooltip">
    <h5>Cap Height</h5>
    <p>
      The distance from the baseline to the top
      of the capital letter determines the letter's
      point size.
   </p>
  </div>
 
  <div id="x-tip" class="annotation-tooltip">
    <h5>X-Height</h5>
    <p>
      The height of the main body of the lowercase letter
      (or the height of a lowercase x), excluding its ascenders
      and descenders.
   </p>
  </div>
 
  <div id="baseline-tip" class="annotation-tooltip">
    <h5>Baseline</h5>
    <p>
      Where all the letters sit. This is the most stable
      axis along a line of text, and it is a crucial edge
      for aligning text with images or with other text.
   </p>
  </div> 

  <div id="descender-tip" class="annotation-tooltip">
    <h5>Descender Height</h5>
    <p>
      The length of a letter's descenders contributes
      to its overall style and attitude.
   </p>
  </div>   
   
 
  <div class="text-body">
    <div id="ascender-height" class="paper-outline">
      <div class="circle"></div>
      <div class="annotation-tooltip">
        <h5>Ascender Height</h5>
         <p>
           Some elements may extend slightly above
           the cap height.
         </p>
       </div>
    </div>

    <div id="cap-height" class="paper-outline">
      <div class="circle circle-odd"></div>
      <div class="annotation-tooltip">
        <h5>Cap Height</h5>
         <p>
           The distance from the baseline to the top
           of the capital letter determines the letter's
           point size.
         </p>
       </div>
    </div>

    <div id="x-height" class="paper-outline">
      <div class="circle"></div>
      <div class="annotation-tooltip">
        <h5>X-Height</h5>
         <p>
           The height of the main body of the lowercase letter
           (or the height of a lowercase x), excluding its ascenders
           and descenders.
         </p>
       </div>
    </div>

    <div class="paper-line">
      <span>skin, Body</span>
    </div>
   
    <div id="baseline" class="paper-outline">
      <div class="circle circle-odd"></div>
      <div class="annotation-tooltip">
        <h5>Baseline</h5>
         <p>
           Where all the letters sit. This is the most stable
           axis along a line of text, and it is a crucial edge
           for aligning text with images or with other text.
         </p>
       </div>
    </div>
   
    <div id="overhang" class="paper-outline">
      <div class="circle circle-odd"></div>
      <div class="annotation-tooltip">
        <h5>Overhang</h5>
         <p>
           The curves at the bottom of the letters hang
           slightly below the baseline. Without overhang
           rounded letters would look smaller than their
           flat-footed compatriots.
         </p>
       </div>
    </div>   

    <div id="descender-height" class="paper-outline">
      <div class="circle"></div>
      <div class="annotation-tooltip">
        <h5>Descender Height</h5>
         <p>
           The length of a letter's descenders contributes
           to its overall style and attitude.
         </p>
       </div>     
    </div>
  </div>

</div>

[/html]

0

44

[html]<html><head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.0.3/howler.min.js"></script>
<!-- instagram @myanmessalih-->
<title>Hacked - xxHSYNwq</title>
<meta property="og:image" content="https://s1.postimg.org/13pocq3san/5h311-1nj3c706.jpg">
<!-- instagram @myanmessalih-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<!-- instagram @myanmessalih-->

<meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.0.3/howler.min.js"></script> <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"> <link rel="stylesheet" type="text/css" href="css/style.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link href="http://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet" type="text/css"> <script type="text/javascript" src="js/bootstrap.min.js"></script> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery-1.10.2.min.js.download"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <style type="text/css"> @import url('https://fonts.googleapis.com/css?family=Nunito');@import url('https://fonts.googleapis.com/css?family=Poiret+One');body, html {height: 100%;background-repeat: no-repeat; /*background-image: linear-gradient(rgb(12, 97, 33),rgb(104, 145, 162));*/background:black;position: relative;}#particles-js{ width: 100%; height: 100%; background-size: cover; background-position: 50% 50%; position: fixed; top: 0px; z-index:1;}h1{font:1.5em Cinzel,serif;font-weight:400;letter-spacing:.35em;text-shadow:0 0 25px rgba(254,254,255,.85);width:70%} } footer { margin: 20%; }
#a {
onmousedown:stop;
animation-name: rotate ;
animation-duration: 5s;
animation-play-state: running;
animation-timing-function: linear;
animation-iteration-count: infinite;
opacity: 1.0;filter: alpha(opacity=50);} img:hover {opacity: 1.0;filter: alpha(opacity=100);}
@keyframes rotate{
10% {transform:rotateY(36deg)}
20% {transform:rotateY(72deg)}
30% {transform:rotateY(108deg)}
40% {transform:rotateY(144deg)}
50% {transform:rotateY(180deg)}
60% {transform:rotateY(216deg)}
70% {transform:rotateY(252deg)}
80% {transform:rotateY(288deg)}
90% {transform:rotateY(324deg)}
100% {transform:rotateY(360deg)}
}
</style>
<!-- instagram @myanmessalih-->

</head> <body><center>
<!-- instagram @myanmessalih-->
 
<!-- instagram @myanmessalih-->
<img src="https://blog.internetvista.com/wp-content/uploads/2018/02/website-defacement.gif" width="1000">

</center><br><br> <b><b> <div id="particles-js"><canvas class="particles-js-canvas-el" style="width: 100%; height: 100%;" width="1365" height="949"></canvas></div> <!--<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.min.js"></script>--> <script type="text/javascript">$.getScript("https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.min.js", function(){ particlesJS('particles-js', { "particles": { "number": { "value": 80, "density": { "enable": true, "value_area": 800 } }, "color": { "value": "#ffffff" }, "shape": { "type": "circle", "stroke": { "width": 0, "color": "#000000" }, "polygon": { "nb_sides": 5 }, "image": { "width": 100, "height": 100 } }, "opacity": { "value": 0.5, "random": false, "anim": { "enable": false, "speed": 1, "opacity_min": 0.1, "sync": false } }, "size": { "value": 5, "random": true, "anim": { "enable": false, "speed": 40, "size_min": 0.1, "sync": false } }, "line_linked": { "enable": true, "distance": 150, "color": "#ffffff", "opacity": 0.4, "width": 1 }, "move": { "enable": true, "speed": 6, "direction": "none", "random": false, "straight": false, "out_mode": "out", "attract": { "enable": false, "rotateX": 600, "rotateY": 1200 } } }, "interactivity": { "detect_on": "canvas", "events": { "onhover": { "enable": true, "mode": "repulse" }, "onclick": { "enable": true, "mode": "push" }, "resize": true }, "modes": { "grab": { "distance": 400, "line_linked": { "opacity": 1 } }, "bubble": { "distance": 400, "size": 40, "duration": 2, "opacity": 8, "speed": 3 }, "repulse": { "distance": 200 }, "push": { "particles_nb": 4 }, "remove": { "particles_nb": 2 } } }, "retina_detect": true, "config_demo": { "hide_card": false, "background_color": "#b61924", "background_image": "", "background_position": "50% 50%", "background_repeat": "no-repeat", "background_size": "cover" } } );}); </script> <script> // This script and many more from// http://rainbow.arch.scriptmania.comif (document.getElementById){// Plenty of black gives a better sparkle effect.showerCol=new Array('#000000','#ff0000','#ffffff','#000000','#00ff00','#ff00ff','#ffffff','#ffa500','#000000','#fff000');launchCol=new Array('#ffff00','#ff00ff','#00ffff','#ffffff','#ff8000');runSpeed=70; //setTimeout speed.// *** DO NOT EDIT BELOW ***var yPos=200;var xPos=200;var explosionSize=200;var launchColour='#ffff80';var timer=null;var dims=8;var evn=360/14;firework=new Array();var ieType=(typeof window.innerWidth != 'number');var ieRef=((ieType) && (document.compatMode) && (document.compatMode.indexOf("CSS") != -1))?document.documentElement:document.body;thisStep=0;step=5;for (i=0; i < 14; i++){document.write(' <div id="sparks'+i+'" style="position:absolute;top:0px;left:0px;border-radius:50%;height:'+dims+'px;width:'+dims+';font-size:'+dims+';background-color:'+launchColour+'"> &lt;\/div&gt;'); firework=document.getElementById(&quot;sparks&quot;+i).style; } function winDims(){ winH=(ieType)?ieRef.clientHeight:window.innerHeight; winW=(ieType)?ieRef.clientWidth:window.innerWidth; bestFit=(winW &gt;= winH)?winH:winW; } winDims(); window.onresize=new Function(&quot;winDims()&quot;); function Reset(){ var dsy=(ieType)?ieRef.scrollTop:window.pageYOffset; thisStep=-1; launchColour = launchCol[Math.floor(Math.random()*launchCol.length)]; explosionSize=Math.round(100+Math.random()*(bestFit/4)); yPos = explosionSize+Math.round(Math.random()*(winH-(explosionSize*2.2)))+dsy; xPos = explosionSize+Math.round(Math.random()*(winW-(explosionSize*2.2))); for (i=0; i &lt; 14; i++){ firework.backgroundColor=launchColour; firework.width=dims+&quot;px&quot;; firework.height=dims+&quot;px&quot;; firework.fontSize=dims+&quot;px&quot;; } Fireworks(); } function Fireworks(){ thisStep+=step; timer=setTimeout(&quot;Fireworks()&quot;,runSpeed); for (i=0; i &lt; 14; i++){ firework.top = yPos + explosionSize * Math.sin(i*evn*Math.PI/180)*Math.sin(thisStep/100)+&quot;px&quot;; firework.left= xPos + explosionSize * Math.cos(i*evn*Math.PI/180)*Math.sin(thisStep/100)+&quot;px&quot;; if (thisStep &gt; 100){ var dims_change=(explosionSize &lt; 150)?dims:Math.round(dims+Math.random()*2); firework.backgroundColor=showerCol[Math.floor(Math.random()*showerCol.length)]; firework.width=dims_change+&quot;px&quot;; firework.height=dims_change+&quot;px&quot;; firework.fontSize=dims_change+&quot;px&quot;; } } if (thisStep &gt; 140){ clearTimeout(timer); Reset(); } } window.onload=Fireworks; } </div> </script></b></b><div align="center" class="a"><font color="white"></font></div><font color="white"><br><div align="center"></div><br> </font></body></html>

<!-- instagram @myanmessalih-->

</html><!-- instagram @myanmessalih-->[/html]

0

45

[html]
<style>
@import url(https://fonts.googleapis.com/css?family=Montserrat);
@import url(https://fonts.googleapis.com/css?family=Muli);
.snip1534 {
  font-family: 'Muli', sans-serif;
  position: relative;
  display: inline-block;
  overflow: hidden;
  margin: 10px;
  max-width: 230px;
  min-height: 215px;
  width: 100%;
  color: #ffffff;
  text-align: left;
  font-size: 16px;
  background-color: #000000;
}

.snip1534 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.45s ease;
  transition: all 0.45s ease;
}

.snip1534 img {
  vertical-align: top;
  max-width: 100%;
  backface-visibility: hidden;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  opacity: 0.75;
}

.snip1534 figcaption {
  z-index: 1;
  align-items: center;
  position: absolute;
  width: 100%;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(195, 86, 97, 0.85);
  background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
  padding: 20px;
}

.snip1534 figcaption:before {
  content: '';
  width: 20px;
  height: 20px;
  background-color: #fff;
  bottom: 0;
  left: 50%;
  -webkit-transform: translate(-50%, 50%) rotate(45deg);
  transform: translate(-50%, 50%) rotate(45deg);
  position: absolute;
}

.snip1534 h3,
.snip1534 h5 {
  margin: 0;
  letter-spacing: 1px;
}

.snip1534 h3 {
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}

.snip1534 h5 {
  font-weight: normal;
}

.snip1534 a {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.snip1534:hover > img,
.snip1534.hover > img {
  opacity: 1;
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
}
</style>
<figure class="snip1534">
  <img src="https://wallpapercave.com/wp/wp5856378.jpg" alt="pr-sample17" />
  <figcaption>
    <h3>Sir Cumference</h3>
    <h5>Design</h5>
  </figcaption>
  <a href="#"></a>
</figure>
<figure class="snip1534"><img src="https://wallpapercave.com/wp/wp5856378.jpg" alt="pr-sample18" />
  <figcaption>
    <h3>Alan Fresco</h3>
    <h5>Branding</h5>
  </figcaption>
  <a href="#"></a>
</figure>
<figure class="snip1534"><img src="https://wallpapercave.com/wp/wp5856378.jpg" alt="pr-sample19" />
  <figcaption>
    <h3>Fig Nelson</h3>
    <h5>Photography</h5>
  </figcaption>
  <a href="#"></a>
</figure>

[/html]

0

46

[html]
<style>
.header{
  position: relative ;
  width: 900px;
  height: 150px;
  margin-top: 0px;
  margin-bottom: 0px;
  object-fit: fill;
  border-radius: 0%;
background-position: center center;
background-size: cover;
}
.pp-container {
display: block;
width: 800px;
margin: -130px 0px 0px 0px;
}

.bio-container {
  display: block;
  grid-template-columns: 10px 400px;
  grid-template-rows: 100px;
  grid-column-gap: 0px;
  margin-top: 30px;
  text-align: end;
}

.pp {
position: relative;
      top: 65px;
      left: 20px;
  width: 100px;
  height: 100px;
  margin-top: 1px;
  margin-bottom: 5px;
  object-fit: cover;
  border-radius: 50%;
border: 5px solid #fff !important;
}

.bio {
font-family: Georgia;
font-size: 16px;
letter-spacing: 1px;
word-spacing: 5px;
color: #2D2D2D;
font-weight: 200;
line-height:15px;
}

.bio b {
font-size: 1.2em;
letter-spacing: 1px;
word-spacing: 5px;
color: #2D2D2D;
font-weight: 200;
line-height:15px;
}
</style>
<div class="header" style="background-image: url(https://wallpaperaccess.com/full/199624.jpg)"></div>

<div class="pp-container">
<img class="pp" src="https://proxy.everskies.com/a/https%3A%2F%2Fi.pinimg.com%2Foriginals%2F8d%2Fbe%2F96%2F8dbe966e815f9aa53bd12d9bb640b83c.gif" alt="pp" />

<div class="bio-container">
<div class="bio">
<p>
<b>@user</b> <br />

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
<br />

</p>

</div></div></div>
[/html]

0

47

[html]
<style>
@import "compass/css3";

@mixin rainbow($position: top) {
  @include background( linear-gradient($position, red 5%
    , orange 20%
    , yellow 35%
    , green 50%
    , blue 70%
    , purple 100%));
}

html {
  height: 100%;
}
body {
  //@include background(linear-gradient(bottom, white 50%, orange));
    @include rainbow(top left); 
  height: 100%;
}
h1 {
    margin: 10px 0;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 1px 1px 3px rgba(black, 0.65);
  color: orange;
}
.content {
  margin: 20px auto;
  width: 90%;
  text-align: center;
  padding: 0px;
  //border-radius: 10%;
  border: 30px solid rgba(white, .75);
  @include background(linear-gradient( top left, #BADA55, white 30%));
}
@keyframes spin{
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes sway{
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateX(50px) rotate(15deg);
  }
  100% {
    transform: translateY(10px);
  }
}
@keyframes shake{
  0% {
    transform: translateY(0px);
  }
  33% {
    transform: translateX(10px) rotate(5deg);
  }
  66% {
    transform: translateX(10px) rotate(-5deg);
  }
  100% {
    transform: translateY(-5px);
  }
}

.oranges img {
  display: inline-block;
}
.playing img:first-of-type{
  animation: spin 5s infinite cubic-bezier(.87,.12,.21,.95);
}
.playing img:nth-of-type(2){
   animation: sway 1s infinite alternate ease-in-out;
  }
.playing img:nth-of-type(3){
   animation: shake steps(2) 500ms infinite both;
  }
.playing img:last-of-type{
  animation: spin 1s steps(8) infinite forwards .5s;
}
</style>
<script>
$(document).ready(function() {
  $(".oranges img").click(function() {
    $("body").toggleClass("playing");
  });
 
});
</script>

<div class="content playing">
  <h1>Playful Oranges</h1>
  <div class="oranges">
    <img src="https://i.imgur.com/7MOaQfi.png" />
    <img src="https://i.imgur.com/7MOaQfi.png" />
    <img src="https://i.imgur.com/7MOaQfi.png" />
    <img src="https://i.imgur.com/7MOaQfi.png" />   
  </div>
</div>

[/html]

0

48

[html]<pre id=p><script>n=setInterval("for(n+=7,i=k,P='p.\\n';i-=1/k;P+=P[i%2?(i%2*j-j+n/k^j)&1:2])j=k/i;p.innerHTML=P",k=64)</script>
[/html]

0

49

[html]

<style>
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

/* Spinner : https://codepen.io/supah/pen/BjYLdW */
.spinner {
  animation: rotate 2s linear infinite;
  animation-play-state: running;
  width: 50px;
  height: 50px;
}
.spinner .path {
  stroke: var(--color-core-primary);
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
  animation-play-state: running;
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/**********
*** SETUP
**********/
/***** Properties *****/
:root {
  --color-aux-50: rgb(10, 10, 11);
  --color-aux-100: rgb(29, 29, 32);
  --color-aux-200: rgb(48, 48, 54);
  --color-aux-300: rgb(77, 77, 86);
  --color-aux-400: rgb(96, 96, 108);
  --color-aux-500: rgb(115, 115, 130);
  --color-aux-600: rgb(147, 147, 159);
  --color-aux-700: rgb(169, 169, 178);
  --color-aux-800: rgb(190, 190, 197);
  --color-aux-900: rgb(223, 223, 226);
  --color-aux-950: rgb(242, 239, 233);

  --color-core-primary: #621708;
  --color-core-secondary: #bc3908;
  --color-core-tertiary: #f6aa1c;

  --font-family-body: "Inter", sans-serif;
  --font-family-heading: "Sofia Sans", sans-serif;

  --space-base: 4px;
  --space-base-half: calc(var(--space-base) / 2);
  --space-base-1x: var(--space-base);
  --space-base-2x: calc(var(--space-base) * 2);
  --space-base-3x: calc(var(--space-base) * 3);
  --space-base-4x: calc(var(--space-base) * 4);
  --space-base-6x: calc(var(--space-base) * 6);
  --space-base-8x: calc(var(--space-base) * 8);
  --space-base-12x: calc(var(--space-base) * 12);
  --space-base-16x: calc(var(--space-base) * 16);
  --space-base-24x: calc(var(--space-base) * 24);
}

/***** Landmarks *****/
#container5 {
  /* background by SVGBackgrounds.com */
  background-color: var(--color-aux-950);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3Crect fill='none' stroke-width='1' id='a' x='-400' y='-300' width='800' height='600'/%3E%3C/defs%3E%3Cg style='transform-origin:center'%3E%3Cg transform='rotate(136.8 0 0)' style='transform-origin:center'%3E%3Cg transform='rotate(-160 0 0)' style='transform-origin:center'%3E%3Cg transform='translate(1000 750)'%3E%3Cuse stroke='%23F2F4F3' href='%23a' transform='rotate(10 0 0) scale(2.1)'/%3E%3Cuse stroke='%23e8e5e3' href='%23a' transform='rotate(20 0 0) scale(2.2)'/%3E%3Cuse stroke='%23dfd7d4' href='%23a' transform='rotate(30 0 0) scale(2.3)'/%3E%3Cuse stroke='%23d5c8c4' href='%23a' transform='rotate(40 0 0) scale(2.4)'/%3E%3Cuse stroke='%23ccb9b4' href='%23a' transform='rotate(50 0 0) scale(2.5)'/%3E%3Cuse stroke='%23c2aaa5' href='%23a' transform='rotate(60 0 0) scale(2.6)'/%3E%3Cuse stroke='%23b89c95' href='%23a' transform='rotate(70 0 0) scale(2.7)'/%3E%3Cuse stroke='%23af8d85' href='%23a' transform='rotate(80 0 0) scale(2.8)'/%3E%3Cuse stroke='%23a57e76' href='%23a' transform='rotate(90 0 0) scale(2.9)'/%3E%3Cuse stroke='%239c6f66' href='%23a' transform='rotate(100 0 0) scale(3)'/%3E%3Cuse stroke='%23926156' href='%23a' transform='rotate(110 0 0) scale(3.1)'/%3E%3Cuse stroke='%23885247' href='%23a' transform='rotate(120 0 0) scale(3.2)'/%3E%3Cuse stroke='%237f4337' href='%23a' transform='rotate(130 0 0) scale(3.3)'/%3E%3Cuse stroke='%23753427' href='%23a' transform='rotate(140 0 0) scale(3.4)'/%3E%3Cuse stroke='%236c2618' href='%23a' transform='rotate(150 0 0) scale(3.5)'/%3E%3Cuse stroke='%23621708' href='%23a' transform='rotate(160 0 0) scale(3.6)'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  display: grid;
  align-content: center;
}

footer {
  --padding-offset: var(--space-base-4x);

  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  border-block-start: 1px solid #000;
  padding-block: var(--padding-offset);
  margin-block-start: var(--padding-offset);
}

/***** Textual *****/
a,
a:visited,
a:active,
a:link {
  color: var(--color-aux-50);

  &:not([aria-current="page"], .active):hover {
    background: var(--color-aux-800);
  }
}

span,
p {
  font-family: var(--font-family-body);
}

p + p {
  margin-block-start: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
}

code {
  background: var(--color-aux-100);
  color: var(--color-aux-950);
  display: block;
  padding: 0.25rem 0.5rem;

  &.inline {
    display: inline-block;
  }
}

/***** Other *****/
.content-container {
  inline-size: 75%;
  margin-inline: auto;
}

/**********
*** RESET
**********/
* {
  margin: 0;
  padding: 0;
}

*,
::before,
::after {
  box-sizing: border-box;
}

*:where(:not(fieldset, progress, meter)) {
  background-origin: border-box;
  background-repeat: no-repeat;
  border-style: solid;
  border-width: 0;
}

html {
  -webkit-text-size-adjust: none;
  block-size: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html:focus-within {
    scroll-behavior: smooth;
  }
}

body {
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-block-size: 100%;
  text-rendering: optimizeSpeed;
}

:where(img, svg, video, canvas, audio, iframe, embed, object) {
  display: block;
}
:where(img, svg, video) {
  block-size: auto;
  max-inline-size: 100%;
}

:where(svg) {
  fill: currentColor;
  stroke: none;
}

:where(svg):where(:not([fill])) {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: currentColor;
}

:where(svg):where(:not([width])) {
  inline-size: 5rem;
}

:where(input, button, textarea, select),
:where(input[type="file"])::-webkit-file-upload-button {
  color: inherit;
  font-size: inherit;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
}

:where(textarea) {
  resize: block;
}

:where(p, h1, h2, h3, h4, h5, h6) {
  overflow-wrap: break-word;
}

:where(ul, ol) {
  list-style-position: inside;
}

:where(ul, ol, [role="list"]) {
  list-style: none;
}

:where(ul, ol, [role="list"]) li::before {
  border: 0px;
  clip: rect(0px, 0px, 0px, 0px);
  content: "\\200B";
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0px;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

:where(a[href], area, button, input, label[for], select, summary, textarea, [tabindex]:not([tabindex*="-"])) {
  cursor: pointer;
  touch-action: manipulation;
}
:where(input[type="file"]) {
  cursor: auto;
}
:where(input[type="file"])::-webkit-file-upload-button,
:where(input[type="file"])::file-selector-button {
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  :focus-visible {
    transition: outline-offset 145ms cubic-bezier(0.25, 0, 0.4, 1);
  }
  :where(:not(:active)):focus-visible {
    transition-duration: 0.25s;
  }
}
:where(:not(:active)):focus-visible {
  outline-offset: 5px;
}

:where(button, button[type], input[type="button"], input[type="submit"], input[type="reset"]),
:where(input[type="file"])::-webkit-file-upload-button,
:where(input[type="file"])::file-selector-button {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  text-align: center;
  user-select: none;
}

:where(button, button[type], input[type="button"], input[type="submit"], input[type="reset"])[disabled] {
  cursor: not-allowed;
}

/**********
*** UTILITIES
**********/
.active-nav {
  background: var(--color-core-primary);
  color: var(--color-aux-950);
  text-decoration: underline;
}

.content-section {
  padding-block: var(--space-base-8x);
}

</style>
<div id="container5">
<div class="content-container">
  <header>
    <h1>Markup Must Communicate As Clearly As Design</h1>
    <h2>Indicate Loading State</h2>
  </header>
  <main>
    <p>When working from a design, it’s common to build what we see. However, the visual design is only one part of creating perceivable content.</p>
    <p>Because some people may not be able to see a visual loading spinner, use screen-reader-specific markup to ensure it communicates the same as the UI.</p>

    <section class="content-section">
      <h3>Without perceivable markup</h3>
      <p id="loading-spinner">
        <svg class="spinner" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="50" height="50" viewBox="0 0 50 50" role="img">
          <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
        </svg>
      </p>
    </section>
    <section class="content-section">
      <h3>With aria-related markup</h3>
      <div role="alert" aria-live="polite" aria-busy="true">
        <div id="loading-spinner" role="presentation">
          <svg class="spinner" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="50" height="50" viewBox="0 0 50 50" role="img">
            <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
          </svg>
        </div>
      </div>
    </section>

    <section class="content-section">
      <h3>With visually-hidden text markup</h3>
      <div id="loading-spinner" role="presentation">
        <span class="visually-hidden">Loading...please wait</span>
        <svg role="presentation" class="spinner" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="50" height="50" viewBox="0 0 50 50" role="img">
          <circle class="path" cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
        </svg>
      </div>
    </section>
  </main>
  <footer>
    <p>Keys To An Accessibility Mindset</p>
    <a href="https://twitter.com/DanielYuschick" aria-label="@Daniel Yuschick on Twitter">@DanielYuschick</a>
  </footer>
</div>
</div>

[/html]

0

50

[html]
<style>
.solar-system {
  position: relative;
  width: 100%;
  max-width: 700px;
  padding-top: 100%;
  right: 0;
  bottom: 0;
  transition: all 1.5s ease 0s;
}

.solar-system.top-pos {
    bottom: -45%;
transition: all 1.5s ease 0s;
}
.solar-system.bot-pos {
    bottom: 45%;
transition: all 1.5s ease 0s;
}
.solar-system.right-pos {
    right: 50%;
transition: all 1.5s ease 0s;
}
.solar-system.left-pos {
    right: -50%;
transition: all 1.5s ease 0s;
}

@media (min-width: 700px) {
  .solar-system {
    padding-top: 700px;
  }
}

/*** ORBITS ***/

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px dotted rgb(84 84 84 / 15%);
  border-radius: 100%;
  transform: translate(-50%, -50%);
}
.orbit-sun {
    width: calc(50%);
    height: calc(50%);
border: 1px dotted #ff6600;
    background: #ffcc00;
}
.orbit-sun:before {
    content: "";
    background: #ff660017;
    width: 99%;
    height: 99%;
    display: block;
    margin-left: 0.5%;
    margin-top: 0.5%;
    border-radius: 100%;
    box-shadow: 0 0 10em 5em #ff66006b, 0 0 100px 50px #ff66006b inset, 0 0 10px 5px #ffcc00f2;
}
.orbit.orbit-sun:after {
    content: "SUN";
    color: #ffa200;
    top: 50%;
    position: absolute;
    left: -3.5em;
transition: left 1s ease 0s;
}
.solar-system.right-pos .orbit-sun:after {
    left: calc(3.5em + 350px);
transition: left 1s ease 0s;
}
.orbit-mercury {
width: calc(100%);
    height: calc(100%);
transform: translate(-50%, -50%);
}
.orbit-venus {
width: calc(150%);
    height: calc(150%);
transform: translate(-50%, -50%);
}
.orbit-earth {
width: calc(200%);
    height: calc(200%);
/* transform: translate(-50%, -50%) rotate(-10deg) !important; */
}
.orbit-earth:after {
    content: "";
    border: 2px solid red;
    width: 1em;
    height: 1em;
    display: block;
    position: relative;
    border-color: #54cbeb #54cbeb transparent transparent;
    transform: rotate(-50deg);
    border-width: 2px 2px 0 0;
    top: 52.75%;
    left: -0.5em;
animation: blinker 2s linear infinite;
}
.orbit-mars {
width: calc(280%);
    height: calc(280%);
transform: translate(-50%, -50%);
}
.orbit-asteroids {
width: calc(380%);
    height: calc(380%);
transform: translate(-50%, -50%) rotate(0deg);
}

/*** PLANETS ***/

.planet {
  position: absolute;
  top: 50%;
  border-radius: 100%;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0s ease 0s;
}
.planet-mercury {
    left: -6px;
    width: 10px;
    height: 10px;
    transition-duration: 1s;
background: #bcc1c9;
}
.planet-venus {
    left: -8px;
    width: 14px;
    height: 14px;
    transition-duration: 2s;
    background: #ec5f24
}
.planet-earth {
    left: -13px;
    width: 24px;
    height: 24px;
transition-duration: 3s;
z-index: 1;
}
.planet-mars {
    left: -9px;
    width: 18px;
    height: 18px;
    transition-duration: 4s;
    background: #d83e3c;
}
.planet-asteroids {
    left: -40px;
    width: calc(100% + 80px);
    height: 1700px;
transition: all 5s ease 0s;
}
.planet-mercury:before {
    content: "MERCURY";
    color: #bcc1c9;
    margin-left: 15px;
    top: 0px;
    position: absolute;
    height: 10px;
    line-height: 10px;
}
.planet-venus:before {
    content: "VENUS";
    color: #ec5f24;
    margin-left: 21px;
    top: 1px;
    position: absolute;
    height: 14px;
    line-height: 14px;
}
.planet-earth:before {
    content: "EARTH";
    color: #54cbeb;
    margin-left: 29px;
    top: 1px;
    position: absolute;
    height: 24px;
    line-height: 24px;
}
.planet-mars:before {
    content: "MARS";
    color: #d83e3c;
    margin-left: 23px;
    top: 1px;
    position: absolute;
    height: 18px;
    line-height: 18px;
}
.planet-asteroids:before, .planet-asteroids:after {
    content: "ASTEROID BELT";
    color: #666666;
    margin-left: 8em;
    top: 36.75%;
    position: absolute;
}
.planet-asteroids:after {
    right: 8em;
}
.planet-asteroids img + img {
    position: absolute;
    right: 0;
    transform: rotate(180deg);
}
.planet-mars:after, .planet-venus:after, .planet-mercury:after, .planet-earth:after {
    content: "";
    background: linear-gradient(105deg, rgba(0,0,0,1), rgba(0,0,0,0.6), transparent, transparent);
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    box-shadow: 0 0 3px 2px #ffffff26;
opacity: 0.8;
position: absolute;
    top: 0;
    left: 0;
}
.planet-earth:after {
    box-shadow: 0 0 5px 3px #54cbeb5c;
}
.planet img {
    width: 100%;
}

.planet-asteroids img {
    width: initial;
}

/*** SELECTED DAYS ***/

.new-year-line, .winter-solstice-line, .spring-equinox-line, .summer-solstice-line, .autumn-equinox-line {
    width: 12em;
    border-bottom: 2px dotted white;
    position: absolute;
    left: -13.35em;
    top: 50%;
    z-index: -1;
    color: white;
    margin-top: -13px;
    margin-left: -50%;
    height: 14px;
line-height: 1em;
}
.new-year-line:after, .winter-solstice-line:after, .spring-equinox-line:after, .summer-solstice-line:after, .autumn-equinox-line:after {
    content: "";
    width: 28px;
    height: 28px;
    display: block;
    float: right;
    position: absolute;
    background: #ffffff00;
    right: -28px;
    top: -1px;
    border: 2px dotted #fff;
    border-radius: 100%;
}

.winter-solstice-line {
margin-top: 120px;
    left: -12.05em;
}
.spring-equinox-line {
    top: -47.25%;
    left: 58.35%;
}
.summer-solstice-line {
  top: 30.35%;
  left: 178.75%;
}
.autumn-equinox-line {
top: 148.5%;
  left: 97.5%;
}

#cronoNewYear, #cronoWinterSolstice, #cronoSpringEquinox, #cronoSummerSolstice, #cronoAutumnEquinox {
    left: 0;
    position: absolute;
    color: #fff;
    width: 100%;
    bottom: -17px;
font-size: 1.1em;
}
#cronoNewYear span, #cronoWinterSolstice span , #cronoSpringEquinox span, #cronoSummerSolstice span, #cronoAutumnEquinox span {
font-size: 0.75em;
color: #666;
}

/*** WARNING ***/

#warning {
    position: fixed;
    left: 2em;
    bottom: 2em;
    background: rgb(0 0 0 / 0.75);
    height: 5em;
    width: 45em;
    font-size: 1.35em;
    color: #ffa200;
    z-index: 3;
    text-transform: uppercase;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
#warning:before {
content: " ! ";
z-index: 2;
font-size: 1.9em;
margin-left: 1.15em;
color: #ffa200;
font-weight: bold;
margin-top: 5px;
}
#warning:after {
content: "";
background: #ffa200;
position: absolute;
left: 0;
width: 5em;
height: 5em;
z-index: 0;
}
#warning p {
    display: block !important;
    float: left;
    width: 100%;
    margin: 0 !important;
    padding-left: 2.5em;
}
#warning p:before {
content: "";
position: absolute;
z-index: 1;
border: 1.75em solid transparent;
border-bottom: 2.85em solid #040404;
left: 0.775em;
top: -0.75em;
}
#reload {
    background: rgb(255 162 0);
    border: 0;
    border-radius: 1px;
    padding: 0.5em 0.75em;
    margin-left: 1.5em;
cursor: pointer;
outline: none;
}
#reload:hover {
    background: #54cbeb;
}

/* ARROWS */
.arrows {
    position: fixed;
    left: 0;
    top: 0px;
    width: 100vw;
    height: 100vh;
}

.arrows span {
    background: #ffffff;
    padding: 0.5em !important;
    position: absolute;
    cursor: pointer;
    margin: 1em;
    width: 3em;
    height: 3em;
    border-radius: 2px;
    text-align: center;
    line-height: 2em;
    opacity: 0.05;
box-shadow: 0 0 3px -2px #000;
transition: all 0.4s ease 0s;
}
.arrows span:hover {
opacity: 0.9;
}
.arrows span:before {
    content: "";
    border: 4px solid #121212;
    width: 1.35em;
    height: 1.35em;
    float: left;
    border-left-width: 0;
    border-bottom-width: 0;
    transform: rotate(-45deg);
    margin-left: 0.3em;
    margin-top: 0.6em;
    border-radius: 3px;
}

.arrows span#down:before {
transform: rotate(135deg);
    margin-top: 0;
}
.arrows span#right:before {
transform: rotate(45deg);
    margin-left: 0.1em;
    margin-top: 0.35em;
}
.arrows span#left:before {
transform: rotate(-135deg);
    margin-top: 0.3em;
    margin-left: 0.5em;
}

.arrows span#up, .arrows span#down {
left: calc(50% - 2.5em);
}
.arrows span#down {
bottom: 0;
}
.arrows span#right, .arrows span#left {
bottom: calc(50% - 2.5em);
}
.arrows span#right {
left: calc(100% - 5em);
}

.arrows span.active {
opacity: 0.9;
}

/* ANIMATIONS */

@keyframes blinker {
0%   { opacity:0;   top:52.85%;}
40%  { opacity:1;   top:51%;   }
50%  { opacity:0;   top:51%;   }
60%  { opacity:1;   top:51%; }
100% { opacity:0;   top:48.25%;}
}
@keyframes spin {
from {transform: rotate(0deg) }
to {transform: rotate(-360deg);}
}
 
</style>
<script>
//prevent loading error
document.getElementById('warning').remove();

//short getElementById
elem = function (id){ return document.getElementById(id); }

  //get next year
  var nextYear = new Date().getFullYear() + 1;

//count until date
var newYearDate = new Date("Jan 1, "+ nextYear + " 00:00:00").getTime();

//title angles
var todayDate = new Date().getTime();
/**///todayDate = new Date("Apr 3, 2021 00:00:00").getTime();
var todaySecondsLeft = (newYearDate - todayDate) / 1000;
var todayDays = parseInt(todaySecondsLeft / 86400);

var plaDeg = parseInt(todayDays-365);
var degMax = Math.abs(plaDeg) + 15;
var degMin = Math.abs(plaDeg) - 15;

//planets positions
var randMer = Math.floor(Math.random() * (degMax - degMin + 1)) + degMin;
var randVen = Math.floor(Math.random() * (degMax - degMin + 1)) + degMin;
var randMar = Math.floor(Math.random() * (degMax - degMin + 1)) + degMin;
var style = document.createElement('style'); style.innerHTML = '.orbit-mercury {transform: translate(-50%, -50%) rotate('+randMer+'deg)} .orbit-venus {transform: translate(-50%, -50%) rotate('+randVen+'deg)} .orbit-mars {transform: translate(-50%, -50%) rotate('+randMar+'deg)} .planet-mercury {transform:rotate(-'+randMer+'deg)} .planet-venus {transform:rotate(-'+randVen+'deg)} .planet-mars {transform:rotate(-'+randMar+'deg)} .planet-earth {transform:rotate('+parseInt(todayDays-365)+'deg)} .planet-venus {transform:rotate(-'+randVen+'deg)} '; document.head.appendChild(style);

/*screen position*/
function qSel(sel){ return document.querySelector(sel); }
var screenPos = qSel('.solar-system').classList;
if(todayDays<367){ screenPos.add('left-pos');     }
if(todayDays<335){ screenPos.add('top-pos');   }
if(todayDays<280){ screenPos.remove('left-pos');  }
if(todayDays<230){ screenPos.add('right-pos');    }
if(todayDays<185){ screenPos.remove('top-pos');   }
if(todayDays<158){ screenPos.add('bot-pos');      }
if(todayDays<120){ screenPos.remove('right-pos'); }
if(todayDays<60) { screenPos.add('left-pos');   }
if(todayDays<30) { screenPos.remove('bot-pos');   }

/*arrows*/
function goUp(){
    arrowOn('up');
    if(screenPos.contains('bot-pos')){screenPos.remove('bot-pos');} else {screenPos.add('top-pos');}
}
function goDown(){
    arrowOn('down');
    if(screenPos.contains('top-pos')){screenPos.remove('top-pos');} else {screenPos.add('bot-pos');}
}
function goRight(){
    arrowOn('right');
    if(screenPos.contains('left-pos')){screenPos.remove('left-pos');} else {screenPos.add('right-pos');}
}
function goLeft(){
    arrowOn('left');
    if(screenPos.contains('right-pos')){screenPos.remove('right-pos');} else {screenPos.add('left-pos');}
}
function arrowOn(id){
    elem(id).classList.add('active');
    setTimeout(function(){ elem(id).classList.remove('active'); }, 1000);
}

//detecting arrow key presses
document.addEventListener('keydown', function(e) {
    switch (e.keyCode) {
    case 37: goLeft();  break;
    case 38: goUp();   break;
    case 39: goRight(); break;
    case 40: goDown(); break;
    }
});

//countdown vars
var days, hours, minutes, seconds;

//countdown interval
var countDown = setInterval(function() {

    var rightNow = new Date().getTime();
    /**///rightNow = new Date("Apr 3, 2021 00:00:00").getTime();
    var timeTo = newYearDate - rightNow;
   
    days = Math.floor(timeTo / (1000 * 60 * 60 * 24));
    hours = Math.floor((timeTo % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
    minutes = Math.floor((timeTo % (1000 * 60 * 60)) / (1000 * 60));
    seconds = Math.floor((timeTo % (1000 * 60)) / 1000);
   
    if(hours<10)hours="0"+hours;
        if(minutes<10)minutes="0"+minutes;
        if(seconds<10)seconds="0"+seconds;
   
    /*new year*/
    var newYearDays;
    if (days<0){ elem("cronoNewYear").style.display='none'; newYearDays = days.toString().substr(1); } else { newYearDays="-"+days; }
    elem("cronoNewYear").innerHTML = days + " <span>DAYS</span> &nbsp;" + hours + ":" + minutes + ":" + seconds + " <span>LEFT</span>";   
   
    /*leap year*/
    var leapYear = new Date().getFullYear();
    if(((leapYear % 4 == 0) && (leapYear % 100 != 0)) || (leapYear % 400 == 0)) {
    rotationDeg = newYearDays * 0.9836065573770491;
    } else {
    rotationDeg = newYearDays * 0.9863013698630136;
    }
   
    /*earth position*/
    elem("position-earth").style.transform = 'translate(-50%, -50%) rotate('+rotationDeg+'deg';
   
    /*winter solstice*/
    var winSolsDays;
    var wsDays=days-11;   
    if (wsDays<0){ elem("cronoWinterSolstice").style.display='none'; } else { winSolsDays=wsDays }
    elem("cronoWinterSolstice").innerHTML = winSolsDays + " <span>DAYS</span> &nbsp;" + hours + ":" + minutes + ":" + seconds + " <span>LEFT</span>";
   
    /*spring equinox*/
    var sprEquiDays;
    var seDays=days-287;   
    if (seDays<0){ elem("cronoSpringEquinox").style.display='none'; } else { sprEquiDays=seDays }
    elem("cronoSpringEquinox").innerHTML = sprEquiDays + " <span>DAYS</span> &nbsp;" + hours + ":" + minutes + ":" + seconds + " <span>LEFT</span>";
   
    /*summer solstice*/
    var sumSolsDays;
    var ssDays=days-194;   
    if (ssDays<0){ elem("cronoSummerSolstice").style.display='none'; } else { sumSolsDays=ssDays }
    elem("cronoSummerSolstice").innerHTML = sumSolsDays + " <span>DAYS</span> &nbsp;" + hours + ":" + minutes + ":" + seconds + " <span>LEFT</span>";
   
    /*autumn equinox*/
    var autEquiDays;
    var aeDays=days-101;   
    if (aeDays<0){ elem("cronoAutumnEquinox").style.display='none'; } else { autEquiDays=aeDays }
    elem("cronoAutumnEquinox").innerHTML = autEquiDays + " <span>DAYS</span> &nbsp;" + hours + ":" + minutes + ":" + seconds + " <span>LEFT</span>";
   
    /*initial opacity*/
    var opacityList = document.querySelectorAll('.planet');
    for(i=0;i<opacityList.length;i++){
    opacityList[i].style.opacity = '1';
    }

    if (timeTo < 0) {
    clearInterval(countDown);
    }
   
}, 1000);
</script>
<div class="solar-system">

<div class="orbit orbit-sun"></div>

<div class="orbit orbit-mercury" id="position-mercury">
    <div class="planet planet-mercury" id="opacity-mercury">
    <img src="https://cdn.josetxu.com/img/planet-mercury.png" alt="mercury">
    </div>
</div>

<div class="orbit orbit-venus" id="position-venus">
    <div class="planet planet-venus" id="opacity-venus">
    <img src="https://cdn.josetxu.com/img/planet-venus.png" alt="venus">
    </div>
</div>

<div class="orbit orbit-earth" id="position-earth">
    <div class="planet planet-earth" id="opacity-earth">
    <img src="https://cdn.josetxu.com/img/planet-earth.png" alt="earth">
    </div>
</div>

<div class="orbit orbit-mars" id="position-mars">
    <div class="planet planet-mars" id="opacity-mars">
    <img src="https://cdn.josetxu.com/img/planet-mars.png" alt="mars">
    </div>
</div>

<div class="orbit orbit-asteroids" id="position-asteroids">
    <div class="planet planet-asteroids" id="opacity-asteroids">
    <img src="https://cdn.josetxu.com/img/planets-asteroid-belt.png" alt="asteroids">
    <img src="https://cdn.josetxu.com/img/planets-asteroid-belt.png" alt="asteroids">
    </div>
</div>
<div class="lines">
<div class="new-year-line">NEW YEAR <span id='cronoNewYear'></span></div>
<div class="winter-solstice-line">WINTER SOLSTICE <span id="cronoWinterSolstice"></span></div>
<div class="spring-equinox-line">SPRING EQUINOX <span id="cronoSpringEquinox"></span></div>
<div class="summer-solstice-line">SUMMER SOLSTICE <span id="cronoSummerSolstice"></span></div>
<div class="autumn-equinox-line">AUTUMN EQUINOX <span id="cronoAutumnEquinox"></span></div>
</div>

</div>

<div class="arrows">
<span id="up" onclick="goUp()"></span>
<span id="down" onclick="goDown()"></span>
<span id="right" onclick="goRight()"></span>
<span id="left" onclick="goLeft()"></span>
</div>

<div id="warning"><p>it seems that the earth has gone out of its orbit... <button id="reload" onclick="location.reload()">RE-ORBIT</button></p></div>

[/html]

0

51

[html]
<style>
/* Global Styles */

*:where(:not(iframe, canvas, img, svg, video):not(svg *)) {
  all: unset;
  display: revert;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:where(html) {
  --step-0: clamp(1rem, 1rem + 0vw, 1rem);
  --step-1: clamp(1.2rem, 1.19rem + 0.07vw, 1.25rem);
  --step-2: clamp(1.44rem, 1.41rem + 0.18vw, 1.56rem);
  --step-3: clamp(1.73rem, 1.66rem + 0.32vw, 1.95rem);
  --step-4: clamp(2.07rem, 1.97rem + 0.53vw, 2.44rem);
  --step-5: clamp(2.49rem, 2.33rem + 0.81vw, 3.05rem);
  --step--2: clamp(0.69rem, 0.71rem + -0.08vw, 0.64rem);
  --step--1: clamp(0.83rem, 0.84rem + -0.05vw, 0.8rem);
  --space-3xs: clamp(0.25rem, 0.25rem + 0vw, 0.25rem);
  --space-2xs: clamp(0.5rem, 0.5rem + 0vw, 0.5rem);
  --space-xs: clamp(0.75rem, 0.75rem + 0vw, 0.75rem);
  --space-s: clamp(1rem, 1rem + 0vw, 1rem);
  --space-m: clamp(1.5rem, 1.5rem + 0vw, 1.5rem);
  --space-l: clamp(2rem, 2rem + 0vw, 2rem);
  --space-xl: clamp(3rem, 3rem + 0vw, 3rem);
  --space-2xl: clamp(4rem, 4rem + 0vw, 4rem);
  --space-3xl: clamp(6rem, 6rem + 0vw, 6rem);
  --space-4xl: clamp(8rem, 8rem + 0vw, 8rem);
  --space-3xs-2xs: clamp(0.25rem, 0.18rem + 0.36vw, 0.5rem);
  --space-2xs-xs: clamp(0.5rem, 0.43rem + 0.36vw, 0.75rem);
  --space-xs-s: clamp(0.75rem, 0.68rem + 0.36vw, 1rem);
  --space-s-m: clamp(1rem, 0.86rem + 0.71vw, 1.5rem);
  --space-m-l: clamp(1.5rem, 1.36rem + 0.71vw, 2rem);
  --space-l-xl: clamp(2rem, 1.71rem + 1.43vw, 3rem);
  --space-xl-2xl: clamp(3rem, 2.71rem + 1.43vw, 4rem);
  --space-2xl-3xl: clamp(4rem, 3.43rem + 2.86vw, 6rem);
}

html {
  --font-mono: "DM Mono";
  --font-sans: "DM Sans";
  --font-display: "DM Serif Display";

  --color-orange-light-hsl: 25 100% 96%;
  --color-orange-medium-hsl: 25 98% 70%;

  --color-orange-light: hsla(var(--color-orange-light-hsl) / 1);
  --color-orange-medium: hsla(25, 98%, 70%, 1);
  --color-orange-dark: hsla(25, 80%, 36%, 1);
  --color-brown-light: hsla(25, 50%, 56%, 1);
  --color-brown-medium: hsla(25, 50%, 42%, 1);
  --color-brown-dark: hsla(25, 76%, 28%, 1);
  --color-white: hsla(0, 100%, 100%, 1);

  --leading-normal: 1.333;

  --radius: 1.5rem;
  --radius-pill: 999px;

  --content-max-width: 72rem;

  --gradient-bg: radial-gradient(
    125% 125% at 100% 100%,
    hsl(25 98% 70%),
    hsl(25.0726 101.157% 75.9572%),
    hsl(25.1131 104.095% 81.5192%),
    hsl(25.1134 106.324% 86.4415%),
    hsl(25.0846 107.15% 90.5002%),
    hsl(25.045 105.768% 93.5182%),
    hsl(25.0124 102.277% 95.3742%),
    hsl(25 99.9999% 96%)
  );
  --card-bg-s: radial-gradient(
    125% 125% at 100% 100%,
    hsl(25 98% 68%),
    hsl(24.6553 101.725% 73.0024% / 0.871429),
    hsl(24.3417 105.785% 77.8433% / 0.742857),
    hsl(24.0328 110.218% 82.5509% / 0.614286),
    hsl(23.7159 115.08% 87.1306% / 0.485714),
    hsl(23.3841 120.451% 91.5759% / 0.357143),
    hsl(23.033 126.438% 95.8727% / 0.228571),
    hsl(194.325 360.352% 100% / 0.1)
  );
  --card-bg-m: radial-gradient(
    125% 125% at 100% 100%,
    hsl(25 98% 68% / 0.4),
    hsl(24.6553 101.725% 73.0024% / 0.357143),
    hsl(24.3417 105.785% 77.8433% / 0.314286),
    hsl(24.0328 110.218% 82.5509% / 0.271429),
    hsl(23.7159 115.08% 87.1306% / 0.228571),
    hsl(23.3841 120.451% 91.5759% / 0.185714),
    hsl(23.033 126.438% 95.8727% / 0.142857),
    hsl(194.325 360.352% 100% / 0.1)
  );
  --card-bg-l: radial-gradient(
    125% 125% at 100% 100%,
    hsl(25 98% 68% / 0.2),
    hsl(24.6553 101.725% 73.0024% / 0.185714),
    hsl(24.3417 105.785% 77.8433% / 0.171429),
    hsl(24.0328 110.218% 82.5509% / 0.157143),
    hsl(23.7159 115.08% 87.1306% / 0.142857),
    hsl(23.3841 120.451% 91.5759% / 0.128571),
    hsl(23.033 126.438% 95.8727% / 0.114286),
    hsl(194.325 360.352% 100% / 0.1)
  );
  --card-bg-xl: radial-gradient(
    125% 125% at 100% 100%,
    hsl(25 98% 68% / 0.1),
    hsl(24.6553 101.725% 73.0024% / 0.1),
    hsl(24.3417 105.785% 77.8433% / 0.1),
    hsl(24.0328 110.218% 82.5509% / 0.1),
    hsl(23.7159 115.08% 87.1306% / 0.1),
    hsl(23.3841 120.451% 91.5759% / 0.1),
    hsl(23.033 126.438% 95.8727% / 0.1),
    hsl(194.325 360.352% 100% / 0.1)
  );
  --btn-bg: linear-gradient(
    135deg,
    hsl(25 98% 70%),
    hsl(23.9645 96.8689% 69.7096%),
    hsl(21.0027 93.4957% 68.9107%),
    hsl(16.5084 88.0997% 67.7756%),
    hsl(11.099 81.428% 66.5035%),
    hsl(5.69633 74.8663% 65.3092%),
    hsl(1.56759 70.0643% 64.439%),
    hsl(0.00000265346 68.306% 64.1176%)
  );

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: var(--leading-normal);
  color: var(--color-brown-medium);
  font-weight: 500;
  padding-bottom: var(--space-xl);

  min-height: 100vh;
}

body::before {
  position: fixed;
  content: "";
  inset: 0;
  background: var(--gradient-bg), var(--grain-square-white-opacity-blend);
  background-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}

h1,
h2 {
  font-weight: 400;
  font-family: var(--font-display);
}

/* Utilities */

.repel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.center-xy {
  display: grid;
  place-items: center;
}

.wrapper {
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

.blur-bg {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Blocks */

.nav {
  position: sticky;
  top: 0;
  padding-block: var(--space-xs);
  color: var(--color-brown-dark);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.5);
  background: var(--grain-square-white-opacity-blend);
  background-blend-mode: overlay;
  z-index: 1;
}

.nav svg {
  width: var(--space-l);
  flex-shrink: 0;
}

.nav .menu-logo {
  transform: scale(0.55);
}

.notification {
  padding: var(--space-3xs) var(--space-m);
  font-size: var(--step--1);
  border: 1px solid var(--color-white);
  border-radius: var(--radius-pill);
  background: hsla(var(--color-orange-light-hsl) / 0.6);
  text-align: center;
  font-family: var(--font-mono);
}

.hero {
  margin-top: var(--space-3xl);
}

.hero h1 {
  position: relative;
  max-width: 50ch;
  margin-top: var(--space-m);
  font-size: var(--step-3);
  text-align: center;
  background: linear-gradient(
    135deg,
    hsla(25, 76%, 28%, 1),
    hsla(25, 76%, 28%, 0.675)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1::after {
  position: absolute;
  top: 0;
  left: 0;
  content: "Exploring how popular design trends can help create a warm, organic aesthetic that feels clean & modern";
  width: 100%;
  height: 100%;
  background: radial-gradient(
    100% 33% at 50% 100%,
    var(--color-orange-medium),
    transparent
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.675;
}

.hero .btn {
  margin-top: var(--space-l);
}

.btn {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  background: var(--btn-bg);
  background-blend-mode: multiply;
  color: var(--color-orange-light);
  border-radius: var(--radius-pill);
  padding: var(--space-xs) var(--space-l);
  text-align: center;
  cursor: pointer;
  box-shadow: 0px 0px 48px rgba(253, 166, 104, 0.5);
}

.btn-icon {
  width: 1em;
  flex-shrink: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-gap: var(--space-m);
  margin-block-start: var(--space-3xl);
}

.card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  border: 1px solid var(--color-white);
  min-height: 18rem;
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: -4px -4px 32px 0px hsl(var(--color-orange-medium-hsl) / 12%),
    4px 4px 16px 0px hsl(var(--color-orange-medium-hsl) / 8%);
  background-blend-mode: overlay;
  overflow: hidden;
}

.card h2 {
  font-size: var(--step-2);
}

.card p {
  margin-top: var(--space-m);
  max-width: 40ch;
}

.card p,
.card h2 {
  mix-blend-mode: multiply;
}

.card[data-lightsource-distance="s"] {
  background: var(--card-bg-s), var(--grain-square-white-opacity-blend);
}

.card[data-lightsource-distance="m"] {
  background: var(--card-bg-m), var(--grain-square-white-opacity-blend);
}

.card[data-lightsource-distance="l"] {
  background: var(--card-bg-l), var(--grain-square-white-opacity-blend);
}

.card[data-lightsource-distance="xl"] {
  background: var(--card-bg-xl), var(--grain-square-white-opacity-blend);
}

.card:nth-of-type(1) {
  grid-column: 1 / 5;
}

.card:nth-of-type(2) {
  grid-column: 5 / 7;
}

.card:nth-of-type(3) {
  grid-column: 1 / 3;
}

.card:nth-of-type(4) {
  grid-column: 3 / 7;
}

.card:nth-of-type(4)::after {
  position: absolute;
  bottom: 0;
  right: 0;
  content: "";
  width: 100%;
  height: 100%;
  opacity: 0.675;
  background: var(--grain-square-white);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent, black);
}

.light-illustration {
  position: absolute;
  height: 100%;
  max-width: 100%;
  top: 65%;
  left: 80%;
  transform: translate(-50%, -50%) scale(1.5);
  z-index: -1;
}

.color-illustration {
  position: absolute;
  top: 0;
  left: 100%;
  width: 25%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.containers-illustration {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  -webkit-mask-image: radial-gradient(
    50% 50% at 50% 50%,
    transparent 40%,
    black 60%,
    transparent 120%
  );
}

.bg-illustration {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, black, transparent);
  pointer-events: none;
}

@media (max-width: 40rem) {
  .cards {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: var(--space-s);
  }

  .card {
    min-width: calc(
      calc(100vw - calc(var(--space-m) * 2)) - calc(var(--space-s) * 2)
    );
    scroll-snap-align: start;
    height: auto;
  }
}

</style>
<script>
const canvas = document.createElement("canvas");
const ctx = canvas.getContext("2d");

function grain(size, name, color) {
  canvas.width = size;
  canvas.height = size;

  ctx.fillStyle = color;

  for (let x = 0; x < size; x++) {
    for (let y = 0; y < size; y++) {
      if (Math.random() > 0.5) {
        ctx.fillRect(x, y, 1, 1);
      }
    }
  }

  canvas.toBlob((blob) => {
    const url = URL.createObjectURL(blob);

    document.documentElement.style.setProperty(name, `url(${url})`);
  });
}

grain(256, "--grain-square-black", "hsla(0, 100%, 0%, 1)");
grain(256, "--grain-square-white", "hsla(0, 100%, 100%, 1)");
grain(256, "--grain-square-white-opacity-blend", "hsla(25, 100%, 96%, 0.1375)");

</script>
<body>
  <svg class="[ bg-illustration ]" fill="none">
    <circle cx="100%" cy="0" r="33%" stroke="var(--color-orange-medium)"></circle>
    <circle cx="0%" cy="100%" r="33%" stroke="var(--color-orange-medium)"></circle>
  </svg>
  <nav class="[ nav ] [ blur-bg ]">
    <div class="[ wrapper repel ]">
      <svg viewBox="0 0 12 12" fill="none" class="[ menu-logo ]">
        <circle cx="6" cy="6" r="4.833" stroke="#793F15" />
        <circle cx="6" cy="6" r="2.667" fill="#793F15" />
      </svg>
      <svg viewBox="0 0 24 24" class="[ menu-icon ]">
        <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 15h18M3 9h18" />
      </svg>
    </div>
  </nav>
  <main>
    <div class="[ wrapper ]">
      <div class="[ hero ] [ center-xy ]">
        <div class="[ notification ] [ blur-bg ]">
          <span>New!</span>
        </div>
        <h1>Exploring how popular design trends can help create a warm, organic aesthetic that feels clean & modern</h1>
        <a class="[ btn ]" href="#building-blocks">
          Building blocks
          <svg class="[ btn-icon ]" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
            <path d="M12 5v14M19 12l-7 7-7-7" />
          </svg>
        </a>
      </div>
      <section class="[ cards ]" id="building-blocks">
        <div class="[ card ] [ blur-bg ]" data-lightsource-distance="l">
          <h2>Light</h2>
          <p>Gradients and shadows simulate a single light source shining across the page — touching every element.</p>
          <svg class="[ light-illustration ]" viewBox="0 0 256 256" fill="var(--color-orange-medium)">
            <radialGradient id="radialGradient">
              <stop offset="0%" stop-color="white" stop-opacity="1" />
              <stop offset="100%" stop-color="black" stop-opacity="1" />
            </radialGradient>
            <g stroke="#fff" stroke-width="0.5">
              <circle cx="128" cy="128" r="50%" opacity="0.025"></circle>
              <circle cx="128" cy="128" r="40%" opacity="0.05"></circle>
              <circle cx="128" cy="128" r="30%" opacity="0.075"></circle>
              <circle cx="128" cy="128" r="20%" opacity="0.1"></circle>
              <circle cx="128" cy="128" r="10%" opacity="0.125"></circle>
            </g>
          </svg>
        </div>
        <div class="[ card ] [ blur-bg ]" data-lightsource-distance="m">
          <h2>Containers</h2>
          <svg class="[ containers-illustration ]" stroke-width="2" stroke-dasharray="4" stroke="var(--color-orange-medium)">
            <line x1="0" y1="0" x2="50%" y2="50%"></line>
            <line x1="100%" y1="0" x2="50%" y2="50%"></line>
            <line x1="0" y1="100%" x2="50%" y2="50%"></line>
            <line x1="100%" y1="100%" x2="50%" y2="50%"></line>
          </svg>
        </div>
        <div class="[ card ] [ blur-bg ]" data-lightsource-distance="xl">
          <svg class="[ color-illustration ]" viewBox="0 0 256 256">
            <linearGradient id="colorGradient" gradientTransform="rotate(-45)">
              <stop offset="0%" stop-color="var(--color-orange-medium)" stop-opacity="1" />
              <stop offset="100%" stop-color="var(--color-orange-medium)" stop-opacity="0" />
            </linearGradient>
            <circle cx="128" cy="128" r="128" fill="url(#colorGradient)"></circle>
          </svg>
          <h2>Color</h2>
          <p>A base hue blends into everything — unifying text, shadows, and illustrations.</p>
        </div>
        <div class="[ card ] [ blur-bg ]" data-lightsource-distance="s">
          <h2>Texture</h2>
          <p>A subtle generative grain adds a touch of the physcial world and smoothes out gradients.</p>
        </div>
      </section>
    </div>
  </main>
</body>
[/html]

0

52

[html]
<style>
.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}
.clearfix {
    *zoom: 1;
}

.container {
    position: relative;
    margin: 0px auto;
    padding: 50px 0;
    clear: both;
}
@media only screen and (min-width: 1200px) {
    .container {
        width: 1210px;
    }
}

@media only screen and (min-width: 960px) and (max-width: 1199px) {
    .container {
        width: 1030px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    .container {
        width: 682px;
    }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
    .container {
        width: 428px;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 479px) {
    .container {
        width: 320px;
        margin: 0 auto;
    }
}

 
.mcd-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #FFF;
  /*height: 100px;*/
  border-radius: 2px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
 
  /* == */
  width: 250px;
  /* == */
}
.mcd-menu li {
  position: relative;
  /*float:left;*/
}
.mcd-menu li a {
  display: block;
  text-decoration: none;
  padding: 12px 20px;
  color: #777;
  /*text-align: center;
  border-right: 1px solid #E7E7E7;*/
 
  /* == */
  text-align: left;
  height: 36px;
  position: relative;
  border-bottom: 1px solid #EEE;
  /* == */
}
.mcd-menu li a i {
  /*display: block;
  font-size: 30px;
  margin-bottom: 10px;*/
 
  /* == */
  float: left;
  font-size: 20px;
  margin: 0 10px 0 0;
  /* == */
 
}
/* == */
.mcd-menu li a p {
  float: left;
  margin: 0 ;
}
/* == */

.mcd-menu li a strong {
  display: block;
  text-transform: uppercase;
}
.mcd-menu li a small {
  display: block;
  font-size: 10px;
}

.mcd-menu li a i, .mcd-menu li a strong, .mcd-menu li a small {
  position: relative;
 
  transition: all 300ms linear;
  -o-transition: all 300ms linear;
  -ms-transition: all 300ms linear;
  -moz-transition: all 300ms linear;
  -webkit-transition: all 300ms linear;
}
.mcd-menu li:hover > a i {
    opacity: 1;
    -webkit-animation: moveFromTop 300ms ease-in-out;
    -moz-animation: moveFromTop 300ms ease-in-out;
    -ms-animation: moveFromTop 300ms ease-in-out;
    -o-animation: moveFromTop 300ms ease-in-out;
    animation: moveFromTop 300ms ease-in-out;
}
.mcd-menu li:hover a strong {
    opacity: 1;
    -webkit-animation: moveFromLeft 300ms ease-in-out;
    -moz-animation: moveFromLeft 300ms ease-in-out;
    -ms-animation: moveFromLeft 300ms ease-in-out;
    -o-animation: moveFromLeft 300ms ease-in-out;
    animation: moveFromLeft 300ms ease-in-out;
}
.mcd-menu li:hover a small {
    opacity: 1;
    -webkit-animation: moveFromRight 300ms ease-in-out;
    -moz-animation: moveFromRight 300ms ease-in-out;
    -ms-animation: moveFromRight 300ms ease-in-out;
    -o-animation: moveFromRight 300ms ease-in-out;
    animation: moveFromRight 300ms ease-in-out;
}

.mcd-menu li:hover > a {
  color: #e67e22;
}
.mcd-menu li a.active {
  position: relative;
  color: #e67e22;
  border:0;
  /*border-top: 4px solid #e67e22;
  border-bottom: 4px solid #e67e22;
  margin-top: -4px;*/
  box-shadow: 0 0 5px #DDD;
  -moz-box-shadow: 0 0 5px #DDD;
  -webkit-box-shadow: 0 0 5px #DDD;
 
  /* == */
  border-left: 4px solid #e67e22;
  border-right: 4px solid #e67e22;
  margin: 0 -4px;
  /* == */
}
.mcd-menu li a.active:before {
  content: "";
  position: absolute;
  /*top: 0;
  left: 45%;
  border-top: 5px solid #e67e22;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;*/
 
  /* == */
  top: 42%;
  left: 0;
  border-left: 5px solid #e67e22;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  /* == */
}

/* == */
.mcd-menu li a.active:after {
  content: "";
  position: absolute;
  top: 42%;
  right: 0;
  border-right: 5px solid #e67e22;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
/* == */

@-webkit-keyframes moveFromTop {
    from {
        opacity: 0;
        -webkit-transform: translateY(200%);
        -moz-transform: translateY(200%);
        -ms-transform: translateY(200%);
        -o-transform: translateY(200%);
        transform: translateY(200%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0%);
        -moz-transform: translateY(0%);
        -ms-transform: translateY(0%);
        -o-transform: translateY(0%);
        transform: translateY(0%);
    }
}
@-webkit-keyframes moveFromLeft {
    from {
        opacity: 0;
        -webkit-transform: translateX(200%);
        -moz-transform: translateX(200%);
        -ms-transform: translateX(200%);
        -o-transform: translateX(200%);
        transform: translateX(200%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
        transform: translateX(0%);
    }
}
@-webkit-keyframes moveFromRight {
    from {
        opacity: 0;
        -webkit-transform: translateX(-200%);
        -moz-transform: translateX(-200%);
        -ms-transform: translateX(-200%);
        -o-transform: translateX(-200%);
        transform: translateX(-200%);
    }
    to {
        opacity: 1;
        -webkit-transform: translateX(0%);
        -moz-transform: translateX(0%);
        -ms-transform: translateX(0%);
        -o-transform: translateX(0%);
        transform: translateX(0%);
    }
}

.mcd-menu li ul,
.mcd-menu li ul li ul {
  position: absolute;
  height: auto;
  min-width: 200px;
  padding: 0;
  margin: 0;
  background: #FFF;
  /*border-top: 4px solid #e67e22;*/
  opacity: 0;
  visibility: hidden;
  transition: all 300ms linear;
  -o-transition: all 300ms linear;
  -ms-transition: all 300ms linear;
  -moz-transition: all 300ms linear;
  -webkit-transition: all 300ms linear;
  /*top: 130px;*/
  z-index: 1000;
 
  /* == */
  left:280px;
  top: 0px;
  border-left: 4px solid #e67e22;
  /* == */
}
.mcd-menu li ul:before {
  content: "";
  position: absolute;
  /*top: -8px;
  left: 23%;
  border-bottom: 5px solid #e67e22;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;*/
 
  /* == */
  top: 25px;
  left: -9px;
  border-right: 5px solid #e67e22;
  border-bottom: 5px solid transparent;
  border-top: 5px solid transparent;
  /* == */
}
.mcd-menu li:hover > ul,
.mcd-menu li ul li:hover > ul {
  display: block;
  opacity: 1;
  visibility: visible;
  /*top: 100px;*/
 
  /* == */
  left:250px;
  /* == */
}
/*.mcd-menu li ul li {
  float: none;
}*/
.mcd-menu li ul li a {
  padding: 10px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #EEE;
 
  /* == */
  height: auto;
  /* == */
}
.mcd-menu li ul li a i {
  font-size: 16px;
  display: inline-block;
  margin: 0 10px 0 0;
}
.mcd-menu li ul li ul {
  left: 230px;
  top: 0;
  border: 0;
  border-left: 4px solid #e67e22;

.mcd-menu li ul li ul:before {
  content: "";
  position: absolute;
  top: 15px;
  /*left: -14px;*/
  /* == */
  left: -9px;
  /* == */
  border-right: 5px solid #e67e22;
  border-bottom: 5px solid transparent;
  border-top: 5px solid transparent;
}
.mcd-menu li ul li:hover > ul {
  top: 0px;
  left: 200px;
}

/*.mcd-menu li.float {
  float: right;
}*/
.mcd-menu li a.search {
  /*padding: 29px 20px 30px 10px;*/
  padding: 10px 10px 15px 10px;
  clear: both;
}
.mcd-menu li a.search i {
  margin: 0;
  display: inline-block;
  font-size: 18px;
}
.mcd-menu li a.search input {
  border: 1px solid #EEE;
  padding: 10px;
  background: #FFF;
  outline: none;
  color: #777;
 
  /* == */
  width:170px;
  float:left;
  /* == */
}
.mcd-menu li a.search button {
  border: 1px solid #e67e22;
  /*padding: 10px;*/
  background: #e67e22;
  outline: none;
  color: #FFF;
  margin-left: -4px;
 
  /* == */
  float:left;
  padding: 10px 10px 11px 10px;
  /* == */
}
.mcd-menu li a.search input:focus {
  border: 1px solid #e67e22;
}

.search-mobile {
display:none !important;
background:#e67e22;
border-left:1px solid #e67e22;
border-radius:0 3px 3px 0;
}
.search-mobile i {
color:#FFF;
margin:0 !important;
}

@media only screen and (min-width: 960px) and (max-width: 1199px) {
    .mcd-menu {
    margin-left:10px;
}
}

@media only screen and (min-width: 768px) and (max-width: 959px) {
    .mcd-menu {
    width: 200px;
}
.mcd-menu li a {
    height:30px;
}
.mcd-menu li a i {
    font-size: 22px;
}
.mcd-menu li a strong {
    font-size: 12px;
}
.mcd-menu li a small {
    font-size: 10px;
}
.mcd-menu li a.search input {
    width: 120px;
    font-size: 12px;
}
.mcd-menu li a.search buton{
    padding: 8px 10px 9px 10px;
}
.mcd-menu li > ul {
    min-width:180px;
}
.mcd-menu li:hover > ul {
    min-width:180px;
    left:200px;
}
.mcd-menu li ul li > ul, .mcd-menu li ul li ul li > ul {
    min-width:150px;
}
.mcd-menu li ul li:hover > ul {
    left:180px;
    min-width:150px;
}
.mcd-menu li ul li ul li:hover > ul {
    left:150px;
    min-width:150px;
}
.mcd-menu li ul a {
    font-size:12px;
}
.mcd-menu li ul a i {
    font-size:14px;
}
}

@media only screen and (min-width: 480px) and (max-width: 767px) {

.mcd-menu {
    width: 50px;
}
.mcd-menu li a {
    position: relative;
    padding: 12px 16px;
    height:20px;
}
.mcd-menu li a small {
    display: none;
}
.mcd-menu li a strong {
    display: none;
}
.mcd-menu li a:hover strong,.mcd-menu li a.active strong {
    display:block;
    font-size:10px;
    padding:3px 0;
    position:absolute;
    bottom:0px;
    left:0;
    background:#e67e22;
    color:#FFF;
    min-width:100%;
    text-transform:lowercase;
    font-weight:normal;
    text-align:center;
}
.mcd-menu li .search {
    display: none;
}

.mcd-menu li > ul {
    min-width:180px;
    left:70px;
}
.mcd-menu li:hover > ul {
    min-width:180px;
    left:50px;
}
.mcd-menu li ul li > ul, .mcd-menu li ul li ul li > ul {
    min-width:150px;
}
.mcd-menu li ul li:hover > ul {
    left:180px;
    min-width:150px;
}
.mcd-menu li ul li ul li > ul {
    left:35px;
    top: 45px;
    border:0;
    border-top:4px solid #e67e22;
}
.mcd-menu li ul li ul li > ul:before {
    left:30px;
    top: -9px;
    border:0;
    border-bottom:5px solid #e67e22;
    border-left:5px solid transparent;
    border-right:5px solid transparent;
}
.mcd-menu li ul li ul li:hover > ul {
    left:30px;
    min-width:150px;
    top: 35px;
}
.mcd-menu li ul a {
    font-size:12px;
}
.mcd-menu li ul a i {
    font-size:14px;
}

}

@media only screen and (max-width: 479px) {
    .mcd-menu {
    width: 50px;
}
.mcd-menu li a {
    position: relative;
    padding: 12px 16px;
    height:20px;
}
.mcd-menu li a small {
    display: none;
}
.mcd-menu li a strong {
    display: none;
}
.mcd-menu li a:hover strong,.mcd-menu li a.active strong {
    display:block;
    font-size:10px;
    padding:3px 0;
    position:absolute;
    bottom:0px;
    left:0;
    background:#e67e22;
    color:#FFF;
    min-width:100%;
    text-transform:lowercase;
    font-weight:normal;
    text-align:center;
}
.mcd-menu li .search {
    display: none;
}

.mcd-menu li > ul {
    min-width:180px;
    left:70px;
}
.mcd-menu li:hover > ul {
    min-width:180px;
    left:50px;
}
.mcd-menu li ul li > ul, .mcd-menu li ul li ul li > ul {
    min-width:150px;
}
.mcd-menu li ul li:hover > ul {
    left:180px;
    min-width:150px;
}
.mcd-menu li ul li ul li > ul {
    left:35px;
    top: 45px;
    border:0;
    border-top:4px solid #e67e22;
}
.mcd-menu li ul li ul li > ul:before {
    left:30px;
    top: -9px;
    border:0;
    border-bottom:5px solid #e67e22;
    border-left:5px solid transparent;
    border-right:5px solid transparent;
}
.mcd-menu li ul li ul li:hover > ul {
    left:30px;
    min-width:150px;
    top: 35px;
}
.mcd-menu li ul a {
    font-size:12px;
}
.mcd-menu li ul a i {
    font-size:14px;
}
   
}

</style>
<div class="container">
<nav>
    <ul class="mcd-menu">
    <li>
        <a href="">
        <i class="fa fa-home"></i>
        <strong>Home</strong>
        <small>sweet home</small>
        </a>
    </li>
    <li>
        <a href="" class="active">
        <i class="fa fa-edit"></i>
        <strong>About us</strong>
        <small>sweet home</small>
        </a>
    </li>
    <li>
        <a href="">
        <i class="fa fa-gift"></i>
        <strong>Features</strong>
        <small>sweet home</small>
        </a>
    </li>
    <li>
        <a href="">
        <i class="fa fa-globe"></i>
        <strong>News</strong>
        <small>sweet home</small>
        </a>
    </li>
    <li>
        <a href="">
        <i class="fa fa-comments-o"></i>
        <strong>Blog</strong>
        <small>what they say</small>
        </a>
        <ul>
        <li><a href="#"><i class="fa fa-globe"></i>Mission</a></li>
        <li>
            <a href="#"><i class="fa fa-group"></i>Our Team</a>
            <ul>
            <li><a href="#"><i class="fa fa-female"></i>Leyla Sparks</a></li>
            <li>
                <a href="#"><i class="fa fa-male"></i>Gleb Ismailov</a>
                <ul>
                <li><a href="#"><i class="fa fa-leaf"></i>About</a></li>
                <li><a href="#"><i class="fa fa-tasks"></i>Skills</a></li>
                </ul>
            </li>
            <li><a href="#"><i class="fa fa-female"></i>Viktoria Gibbers</a></li>
            </ul>
        </li>
        <li><a href="#"><i class="fa fa-trophy"></i>Rewards</a></li>
        <li><a href="#"><i class="fa fa-certificate"></i>Certificates</a></li>
        </ul>
    </li>
    <li>
        <a href="">
        <i class="fa fa-picture-o"></i>
        <strong>Portfolio</strong>
        <small>sweet home</small>
        </a>
    </li>
    <li>
        <a href="">
        <i class="fa fa-envelope-o"></i>
        <strong>Contacts</strong>
        <small>drop a line</small>
        </a>
    </li>
    <li class="float">
        <a class="search">
        <input type="text" value="search ...">
        <button><i class="fa fa-search"></i></button>
        </a>
        <a href="" class="search-mobile">
        <i class="fa fa-search"></i>
        </a>
    </li>
    </ul>
</nav>
</div>
[/html]

0

53

[html]
<style>
.menu {
display:inline-block;
margin:0 -.5em 1.5em;
box-shadow:0.12em 0.12em 0 rgba(40,40,40,.2);
list-style-type:none;
padding:0;
margin:0;
font-size:1em;
margin-bottom:1.5em;
}

.menu li {
float:left;
border-left:0.063em solid #a6c6cd;
border-right:0.063em solid #6ca1ac;
}

.menu a {
display:block;
padding:0 1em;
line-height:2.5em;
position:relative;
font-weight:bold;
text-decoration:none;
color:#364652;
background-color:#86B2BB;
text-shadow:0 0.063em 0 #a6c6cd;
}

.menu a:hover, .menu a:active, .menu a:focus {
color:#eee;
text-shadow:0.063em 0.063em 0 #547177;
}

.menu a[data-bubble]:after {
content:attr(data-bubble);
position:absolute;
   top:0;
right:0.5em;
height:1.5em;
line-height:1.5em;
padding:0 .46em;
text-align:center;
text-shadow:0 0.063em 0 rgba(0,0,0,.2);
background-color:#eee;
color:#364652;
box-shadow:0 0.063em 0.063em rgba(0,0,0,.2);
border-radius:4em;
z-index:-1;
  -webkit-transform: translateZ(0);/*Prevents text flicker*/
will-change: transform;
}

a.gold[data-bubble]:after {
background-color:gold;
}

.menu a:hover[data-bubble]:after, .menu a:active[data-bubble]:after, .menu a:focus[data-bubble]:after {
-webkit-animation:ease bubbleover .4s;
animation:ease bubbleover .4s;
  -webkit-animation-fill-mode: both;
animation-fill-mode: both;
top:-1.25em;
z-index:1;
}

@-webkit-keyframes bubbleover {
  0%   {
  -webkit-transform:translate(0, 1em);
  z-index:-1
  }
  50% {
  -webkit-transform:translate(0, -.5em);
  z-index:-1
  }
  100% {
  -webkit-transform:translate(0, 0);
  z-index:1;
  }
}

@keyframes bubbleover {
  0%   {
    top:0;
    transform:translate(0, 0);
    z-index:-1;
    }
  50% {
    transform:translate(0, -12px);
    z-index:-1
    }
  100% {
    transform:translate(0, 6px);
    z-index:1;
    }
}
</style>
<br><br>
<ul class="menu">
    <li><a href="#" data-bubble="117">Messages</a></li>
    <li><a href="#" data-bubble="4">New Posts</a></li>
    <li><a href="#" data-bubble="19">Notifications</a></li>
    <li><a class="gold" href="#" data-bubble="1">Hidden Coins</a></li>
</ul>
[/html]

0

54

[html]
<style>
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  font-family:arial, sans-serif;
  font-weight:normal;
  font-size:12px;
  background:#3f4348 url('http://www.frecosse.com/workshop/accordion_menu/bg.png');
}

ul {
  list-style:none;
  margin:0;
  padding:0;
  width:300px;
  margin:0 auto;
  -moz-box-shadow: 0 0 5px #111;
  -webkit-box-shadow: 0 0 5px #111;
  box-shadow: 0 0 5px #111;
}

ul li label {
  background: #575e63; /* fallback colour */
  border-top:1px solid #878e98;
  border-bottom:1px solid #33373d;
  color: #fff;
  text-shadow: 0 1px 1px #000;
  letter-spacing: 0.09em;
  background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#575e63), to(#3f4347));
  background: -webkit-linear-gradient(top, #575e63, #3f4347);
  background: -moz-linear-gradient(top, #575e63, #3f4347);
  background: -ms-linear-gradient(top, #575e63, #3f4347);
  background: -o-linear-gradient(top, #575e63, #3f4347);
}

ul li input[type='checkbox'] {
  display: none;
}

ul li label {
  display:block;
  padding:12px;
  width:300px;
}

ul li i {
  font-size:18px;
  vertical-align: middle;
  width:20px;
  display:inline-block;
}

ul li span {
  display:inline;
  float:right;
  background:#48515c;
  border:1px solid #3c434c;
  border-bottom:1px solid #707781;
  padding:4px 6px;
  font-size:10px;
  -moz-border-radius: 12px;
  border-radius: 12px;
  -moz-box-shadow: inset 0 0 10px #111;
  -webkit-box-shadow: inset 0 0 10px #111;
  box-shadow: inner 0 0 10px #111;
  position:relative;
}

ul li label:hover {
  background: #566f82; /* fallback colour */
  background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#566f82), to(#3e505e));
  background: -webkit-linear-gradient(top, #566f82, #3e505e);
  background: -moz-linear-gradient(top, #566f82, #3e505e);
  background: -ms-linear-gradient(top, #566f82, #3e505e);
  background: -o-linear-gradient(top, #566f82, #3e505e);
}

ul li label:hover span {
  background:#3e505e;
}

ul li input[type='checkbox']:checked ~ label {
  background: #44c6eb; /* fallback colour */
  border-top:1px solid #878e98;
  border-bottom:1px solid #2799db;
  background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#44c6eb), to(#2799db));
  background: -webkit-linear-gradient(top, #44c6eb, #2799db);
  background: -moz-linear-gradient(top, #44c6eb, #2799db);
  background: -ms-linear-gradient(top, #44c6eb, #2799db);
  background: -o-linear-gradient(top, #44c6eb, #2799db);
}

ul li input[type='checkbox']:checked ~ label span {
  background: #2173a1; /* fallback colour */
  border-top:1px solid #1b5f85;
  border-bottom:1px solid #4cb1e4;
  -moz-box-shadow: inset 0 0 5px #111;
  -webkit-box-shadow: inset 0 0 5px #111;
  box-shadow: inner 0 0 5px #111;
}

ul li input[type='checkbox']:checked ~ .options {
  height: auto;
  display:block;
  min-height:40px;
  max-height:400px;
}

ul ul {
  background:#fff; margin:0; padding:0;
  -moz-box-shadow: inset 0 2px 2px #b3b3b3;
  -webkit-box-shadow: inset 0 2px 2px #b3b3b3;
  box-shadow: inner 0 2px 2px #b3b3b3;
}

ul ul li a {
  display:block;
  padding:6px 12px;
  color:#999;
  text-decoration:none;
}

ul ul li a:hover {
  color:#44c6eb;
}

ul ul li a span {
  color:#999;
  background:none;
  border:1px solid #ccc;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}

ul ul li {
  border-bottom:1px solid #ccc;
}

ul ul li:first-child {
  padding-top:6px;
}

ul ul li:last-child {
  padding-bottom:6px; border:0;
}

.options {
  height: 0;
  display: block;
  overflow: hidden;
}
 
/* Abridged icomoon font styles
/* (Hosted on Frecosse - Please don't hotlink!)
=============================================== */
@font-face {
  font-family: 'icomoon';
  src:url('http://www.frecosse.com/workshop/accordion_menu/icomoon.eot');
  src:url('http://www.frecosse.com/workshop/accordion_menu/icomoon.eot?#iefix') format('embedded-opentype'),
    url('http://www.frecosse.com/workshop/accordion_menu/icomoon.woff') format('woff'),
    url('http://www.frecosse.com/workshop/accordion_menu/icomoon.ttf') format('truetype'),
    url('http://www.frecosse.com/workshop/accordion_menu/icomoon.svg#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}

.icon-music:before, .icon-search:before, .icon-fire:before, .icon-dribbble:before, .icon-flickr:before, .icon-deviantart:before, .icon-picassa:before, .icon-reddit:before, .icon-android:before, .icon-users:before, .icon-film:before, .icon-eye:before, .icon-point-right:before, .icon-microphone:before, .icon-download:before, .icon-warning:before, .icon-images:before, .icon-movie:before, .icon-cloud:before {
  font-family: 'icomoon';
  speak: none;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.icon-music:before { content: "\61"; }
.icon-search:before { content: "\62"; }
.icon-fire:before { content: "\63"; }
.icon-dribbble:before { content: "\64"; }
.icon-flickr:before { content: "\65"; }
.icon-deviantart:before { content: "\66"; }
.icon-picassa:before { content: "\67"; }
.icon-reddit:before { content: "\68"; }
.icon-android:before { content: "\69"; }
.icon-users:before { content: "\6a"; }
.icon-film:before { content: "\6b"; }
.icon-eye:before { content: "\6c"; }
.icon-point-right:before { content: "\6d"; }
.icon-microphone:before { content: "\6e"; }
.icon-download:before { content: "\6f"; }
.icon-warning:before { content: "\70"; }
.icon-images:before { content: "\71"; }
.icon-movie:before { content: "\72"; }
.icon-cloud:before { content: "\73"; }

</style>
<script>

</script>

<ul>
  <li class="block">
    <input type="checkbox" name="item" id="item1" />   
    <label for="item1"><i aria-hidden="true" class="icon-users"></i> Friends <span>124</span></label>
    <ul class="options">
      <li><a href="#"><i aria-hidden="true" class="icon-search"></i> Find New Friends</a></li>
      <li><a href="#"><i aria-hidden="true" class="icon-point-right"></i> Poke A Friend</a></li>
      <li><a href="#"><i aria-hidden="true" class="icon-fire"></i> Incinerate Existing Friends</a></li>
    </ul>
  </li>
  <li class="block">
    <input type="checkbox" name="item" id="item2" />   
    <label for="item2"><i aria-hidden="true" class="icon-film"></i> Videos <span>1,034</span></label>
    <ul class="options">
      <li><a href="#"><i aria-hidden="true" class="icon-movie"></i> My Videos <span>7</span></a></li>
      <li><a href="#"><i aria-hidden="true" class="icon-download"></i> My Downloaded Videos <span>3</span></a></li>
      <li><a href="#"><i aria-hidden="true" class="icon-warning"></i> My Well Dodgy Videos <span>1,024</span></a></li>
    </ul>
  </li>
  <li class="block">
    <input type="checkbox" name="item" id="item3" />   
    <label for="item3"><i aria-hidden="true" class="icon-images"></i> Galleries <span>4</span></label>
    <ul class="options">
      <li><a href="http://gattkins.deviantart.com/" target="_blank"><i aria-hidden="true" class="icon-deviantart"></i> My Deviant Art</a></li>
      <li><a href="http://dribbble.com/" target="_blank"><i aria-hidden="true" class="icon-dribbble"></i> Latest Dribbble Images</a></li>
      <li><a href="http://www.flickr.com/groups/catching_sun/pool/" target="_blank"><i aria-hidden="true" class="icon-flickr"></i> Sample Flickr Stream</a></li>
      <li><a href="https://picasaweb.google.com/lh/explore#utm_medium=embed&utm_source=pwalogin" target="_blank"><i aria-hidden="true" class="icon-picassa"></i> Sample Picasa Stream</a></li>
    </ul>
  </li>
  <li class="block">
    <input type="checkbox" name="item" id="item4" />   
    <label for="item4"><i aria-hidden="true" class="icon-microphone"></i> Podcasts <span>1</span></label>
    <ul class="options">
      <li><a href="https://css-tricks.com/css-tricks-screencasts-now-on-itunes/" target="_blank"><i aria-hidden="true" class="icon-music"></i> CSS-Tricks</a></li>
    </ul>
  </li>
  <li class="block">
    <input type="checkbox" name="item" id="item5" />   
    <label for="item5"><i aria-hidden="true" class="icon-android"></i> Robots <span>3</span></label>
    <ul class="options">
      <li><a href="http://en.wikipedia.org/wiki/HAL_9000" target="_blank"><i aria-hidden="true" class="icon-eye"></i> Hal 9000</a></li>
      <li><a href="http://en.wikipedia.org/wiki/Skynet_(Terminator)" target="_blank"><i aria-hidden="true" class="icon-cloud"></i> Skynet</a></li>
      <li><a href="http://en.wikipedia.org/wiki/Short_Circuit" target="_blank"><i aria-hidden="true" class="icon-reddit"></i> Johnny 5</a></li>
    </ul>
  </li>
</ul>

[/html]

0

55

[html]
<style>
body {
  background-color: #0a68bb;
  background-image: url('https://images.unsplash.com/photo-1564500617448-e541b1df7cee?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size : cover;
}

nav {
  margin : 50px auto;
  width  : 290px;
}

menu {
  border-radius : 3px;
}

menu:after , menu:before {
  display : block;
  content : ' ';
}

menu:after {
  clear : both;
}

li {
  list-style-type : none;
  background      : linear-gradient(rgba(220,220,255,0.4) 85%, rgba(255,255,255,0.5) 100%);

  float   : left;
  cursor  : pointer;
  padding : 3px 10px;
  border-top    : 2px solid rgba(200,200,255,0.5);
  border-bottom : 2px solid rgba(50,50,50,0.4);
}

li:first-child {
  border-radius : 5px 0 0 5px;
}

li:last-child {
  border-radius : 0 5px 5px 0;
}

a {
  display : block;
  padding : 10px 13px;
  font-size : 26px;
  text-decoration : none;
  border-radius   : 5px;
  position        : relative;
  top   : 0;
  color : #FFF;   
  transition : all .4s;
}

li:hover a {
  top   : -20px;
  color : #4eacff;
  background-color: #fff;
  box-shadow : 0 0 5px 0 rgba(255, 255, 255, 0.7);
  transition : all .4s;
}

li a:after {
  display  : block;
  content  : '';
  position : absolute;
  top  : 100%;
  left : 42%;
  border-style : solid;
  border-color : transparent;
  border-width : 5px 5px 0 5px;
  transition   : all .4s;
}

li:hover a:after {
  border-color : white transparent transparent transparent;
  transition   : all .4s;
}

/*************************************/

.menu2 {
  width : 350px;
}

.menu2 a {
  font-family : georgia;
  font-size   : 14px;
  font-style  : italic;
  text-transform : capitalize;
}

.menu2 li {
  border-right  : 1px solid rgba(200,200,255,0.5);
  border-left   : 1px solid rgba(40,40,40,0.2);
}

.selected {
  top   : -20px;
  color : #4eacff;
  background-color: #fff;
  box-shadow : 0 0 5px 0 rgba(255, 255, 255, 0.7);
  transition : all .4s;
}

.selected:after {
  border-color : white transparent transparent transparent;
  transition   : all .4s;
}

a.fun {
  display : none;
}

</style>

<br><br>
<nav>
  <menu>
    <li><a href="#">☀</a></li>
    <li><a href="#">✈</a></li>
    <li><a href="#">❄</a></li>
    <li><a href="#">☎</a></li>
  </menu>
</nav>
<br><br>
<nav class="menu2">
  <menu>
    <li><a href="#">home</a></li>
    <li><a href="#">about</a></li>
    <li><a href="#" class="selected">contact</a></li>
    <li><a href="#">blog</a></li>
  </menu>
</nav>

[/html]

0

56

[hideprofile][html]
<style>
@import url('https://fonts.googleapis.com/css?family=Oswald');

$base-color: #303F9F;
$second-color: #3F51B5;
$third-color: #FBC02D;
$site: #303F9F;
$light: #fff;

body {
position: relative;
font-family: 'Oswald', sans-serif;
background: $site;
color: $light;
font-size: 20px;
}

.grid {
list-style: none;
margin-left: -40px;
}

.gc {
box-sizing: border-box;
display: inline-block;
margin-right: -.25em;
min-height: 1px;
padding-left: 40px;
vertical-align: top;
}

.gc--1-of-3 {
width: 33.33333%;
}

.gc--2-of-3 {
width: 66.66666%;
}

.naccs {
position: relative;
max-width: 900px;
margin: 100px auto 0;
}

.naccs .menu div {
padding: 15px 20px 15px 40px;
margin-bottom: 10px;
color: $base-color;
background: $second-color;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
cursor: pointer;
position: relative;
vertical-align: middle;
font-weight: 700;
transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
margin-left: 25px;
}

.naccs .menu div:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.naccs .menu div span.light {
height: 10px;
width: 10px;
position: absolute;
top: 24px;
left: 15px;
background-color: $base-color;
border-radius: 100%;
transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

.naccs .menu div.active span.light {
background-color: $third-color;
left: 0;
height: 100%;
width: 3px;
top: 0;
border-radius: 0;
}

.naccs .menu div.active {
color: $third-color;
padding: 15px 20px 15px 20px;
}

ul.nacc {
position: relative;
height: 0px;
list-style: none;
margin: 0;
padding: 0;
transition: .5s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

ul.nacc li {
opacity: 0;
transform: translateX(50px);
position: absolute;
list-style: none;
transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

ul.nacc li.active {
transition-delay: .3s;
z-index: 2;
opacity: 1;
transform: translateX(0px);
}

ul.nacc li p {
margin: 0;
}
</style>
<script>
// Acc
$(document).on("click", ".naccs .menu div", function() {
var numberIndex = $(this).index();

if (!$(this).is("active")) {
    $(".naccs .menu div").removeClass("active");
    $(".naccs ul li").removeClass("active");

    $(this).addClass("active");
    $(".naccs ul").find("li:eq(" + numberIndex + ")").addClass("active");

    var listItemHeight = $(".naccs ul")
    .find("li:eq(" + numberIndex + ")")
    .innerHeight();
    $(".naccs ul").height(listItemHeight + "px");
}
});

</script>

<body>
<div class="naccs">
  <div class="grid">
   <div class="gc gc--1-of-3">
    <div class="menu">
     <div class="active"><span class="light"></span><span>Beer</span></div>
     <div><span class="light"></span><span>Wine</span></div>
     <div><span class="light"></span><span>Lemonade</span></div>
    </div>
   </div>
   <div class="gc gc--2-of-3">
    <ul class="nacc">
     <li class="active">
      <div>
       <p>Beer is the world's oldest[1][2][3] and most widely consumed[4] alcoholic drink; it is the third most popular drink overall, after water and tea.[5] The production of beer is called brewing, which involves the fermentation of sugars, mainly derived
        from cereal grain starches—most commonly from malted barley, although wheat, maize (corn), and rice are widely used.[6] Most beer is flavoured with hops, which add bitterness and act as a natural preservative, though other flavourings such as
        herbs or fruit may occasionally be included. The fermentation process causes a natural carbonation effect, although this is often removed during processing, and replaced with forced carbonation.[7] Some of humanity's earliest known writings refer
        to the production and distribution of beer: the Code of Hammurabi included laws regulating beer and beer parlours,[8] and "The Hymn to Ninkasi", a prayer to the Mesopotamian goddess of beer, served as both a prayer and as a method of remembering
        the recipe for beer in a culture with few literate people.[9][10]</p>
      </div>
     </li>
     <li>
      <div>
       <p>A vine (Latin vīnea "grapevine", "vineyard", from vīnum "wine") in the narrowest sense is the grapevine (Vitis), but more generally it can refer to any plant with a growth habit of trailing or scandent (that is, climbing) stems, lianas or runners.
        The word also can refer to such stems or runners themselves, for instance when used in wicker work.[1][2] In the United Kingdom, the term "vine" applies almost exclusively to the grapevine. The term "climber" is used for all climbing plants.[3]</p>
      </div>
     </li>
     <li>
      <div>
       <p>Lemonade is any of various sweetened beverages found around the world, all characterized by lemon flavor. Most lemonade varieties can be separated into two distinct types: cloudy and clear; each is known simply as "lemonade" (or a cognate) in countries
        where dominant.[1] Cloudy lemonade, generally found in North America and India, is a traditionally homemade drink made with lemon juice, water, and sweetener such as cane sugar or honey.[2] Found in the United Kingdom, Ireland, South Africa, Australia,
        and New Zealand, clear lemonade is a lemon flavoured carbonated soft drink. Not to be confused with Sprite a lemon-lime flavored, soft drink.</p>
      </div>
     </li>
    </ul>
   </div>
  </div>
</div>
</body>

[/html]

0

57

[html]
<style>

.title {
  width: 500px;
  margin:auto;
  font-family: 'Damion', cursive;
  font-size:80px;
  top:70px;
  position: relative;
  text-shadow: 3px 3px 0px #2c3e50;
}

.menu {
  position: fixed;
  height: 100%;
  width: 65px;
  background: #2c3e50;
  transition:width 1s;
  overflow: hidden;
  font-family: 'Michroma', sans-serif;
  z-index: 99;
}

.menu:hover {
  width: 220px;
}

.menuItem span {
  position: absolute;
  left:80px;
  top:20px;
  transition:color 1s;
  color:rgba(255,255,255,0);
}

.menu:hover .menuItem  span {
color:rgba(255,255,255,1);
}

.menuItem {
  position: relative;
  padding: 20px;
  transition:border .5s, background .2s; 
}

.menuItem:hover {
  background: #34495e;
  cursor: pointer;
}

.uno {
  border-left:5px solid #16a085;
}

.uno:hover{
  border-left:20px solid #16a085;
}

.dos {
border-left:5px solid #2980b9;
}

.dos:hover {
border-left:20px solid #2980b9;
}

.tres {
  border-left:5px solid #8e44ad;
}

.tres:hover {
  border-left:20px solid #8e44ad;
}

.cuatro {
  border-left:5px solid #e67e22;
}

.cuatro:hover {
  border-left:20px solid #e67e22;
}

.cinco {
border-left:5px solid #e74c3c;
}

.cinco:hover {
border-left:20px solid #e74c3c;
}

</style>
<script>

</script>

<link href='https://fonts.googleapis.com/css?family=Michroma' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Damion' rel='stylesheet' type='text/css'>

<conatiner style="height: 400px;display: block;">
<div class="menu">
  <div class="menuItem uno">1<span>uno</span></div>
  <div class="menuItem dos">2<span>dos</span></div>
  <div class="menuItem tres">3<span>tres</span></div>
  <div class="menuItem cuatro">4<span>cuatro</span></div>
  <div class="menuItem cinco">5<span>cinco</span></div>
</div>
 
<div class="title">
  Animated Menu
</div>
</container>

[/html]

0

58

[html]
<style>
* { margin: 0; padding: 0; }
body {
  background:
    url(http://imgsrc.hubblesite.org/hu/db/imag … ge_web.jpg);
}
.b-nav {
  overflow: hidden;
  position: relative;
  margin: 3em auto 0;
  width: 28em; height: 10em;
}
.b-menu {
  width: 0; height: 0;
  list-style: none;
}
.b-menu li {
  overflow: hidden;
  position: absolute;
  width: 12em; height: 12em;
}
.b-menu li:nth-child(-n+3) {
  top: 0.66em; left: -5.68em;
  transform-origin: 100% 100%;
}
.b-menu li:nth-child(n+4) {
  right: -5.69em; bottom: 0.66em;
  transform-origin: 0 0;
}
.b-menu li:first-child {
  transform: skewY(67.5deg);
}
.b-menu li:nth-child(2) {
  transform: rotate(22.5deg) skewY(67.5deg);
}
.b-menu li:nth-child(3) {
  transform: rotate(45deg) skewY(67.5deg);
}
.b-menu li:nth-child(4) {
  transform: skewY(67.5deg);
}
.b-menu li:nth-child(5) {
  transform: rotate(22.5deg) skewY(67.5deg);
}
.b-menu li:last-child {
  transform: rotate(45deg) skewY(67.5deg);
}
.b-menu a, .b-menu li:after {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 .2em black, inset 0 0 .2em black;
  transform: skewY(-67.5deg) rotate(-11.25deg);
}
.b-menu a {
  width: 200%; height: 200%;
  opacity: .7;
  background: radial-gradient(transparent 57.3%,
    #c9c9c9 57.7%);
  color: #7a8092;
  font: 900 1em/2.5 sans-serif;
  text-align: center;
  text-decoration: none;
  transition: .5s;
}
.b-menu li:nth-child(n+4) a {
  top: -100%; left: -100%;
  line-height: 45.5;
}
.b-menu a:hover { opacity: 1; }
.b-menu li:after {
  top: 19%; left: 19%;
  width: 162%; height: 162%;
  content: '';
}
.b-menu li:nth-child(n+4):after {
  top: auto; right: 19%; bottom: 19%; left: auto;
}
.b-menu:before, .b-menu:after {
  position: absolute;
  width: 1em; height: 2.1em;
  opacity: .7;
  background: #c9c9c9;
  content: '';
}
.b-menu:before {
  top: 1.75em; left: 1.21em;
  border-radius: 100% 0 0 100%/ 50% 0 0 50%;
  transform: rotate(-22.5deg);
}
.b-menu:after {
  bottom: 1.75em; right: 1.21em;
  border-radius: 0 100% 100% 0/ 0 50% 50% 0;
  transform: rotate(-22.5deg);
}
</style>

<nav class='b-nav'>
  <ul class='b-menu'>
    <li><a href='#'>☁</a></li>
    <li><a href='#'>☀</a></li>
    <li><a href='#'>☃</a></li>
    <li><a href='#'>☂</a></li>
    <li><a href='#'>❆</a></li>
    <li><a href='#'>☾</a></li>
  </ul>
</nav>

[/html]

0

59

[html]
<style>

main{
    max-width: 1080px;
    margin: 0 auto;
    font-size: 16px;
}

.menu{
    position: relative;
    margin: 1em auto 0 auto;
    background-color: #ddb91f;
    width: 70px;
    border-radius: 25px;
    transition: 0.3s border-radius ease-in-out, 0.3s height ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu--closed{
    height: 70px;
}

.menu--open{
    height: 400px;
}

.button2{
    transition: 0.3s transform ease-in-out, 0.3s opacity ease-in-out;;
    cursor: pointer;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 2em;
    height: 2em;
    left: 27%;
    top: 20px;
    opacity: 1;
}

.button2:hover {
    opacity: 0.6;
}

.button2 span{
    width: 100%;
    height: 4px;
    background-color: #161616;
    border-radius: 20%;
}

.menu--open .button{
    transform-origin: center;
    transform: rotate(90deg);
}

.tools{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    height: 60%;
    justify-content: space-between;
    transition: 0.3s margin ease-in-out;
}

.tools .icon{
    transition: 0.2s transform ease-in-out;
}

.tools .icon:hover{
    transform: scale(0.8);
}

.tools--hidden{
    margin-top: 400px;
    z-index: -100;
}

.tools--visible{
    margin-top: 40%;
    z-index: 100;
}

</style>
<script>
$(document).ready(function() {

    var Menu = {

        body: $('.menu'),
        button: $('.button2'),
        tools: $('.tools')

    };

    Menu.button.click(function () {
        Menu.body.toggleClass('menu--closed');
        Menu.body.toggleClass('menu--open');
        Menu.tools.toggleClass('tools--visible');
        Menu.tools.toggleClass('tools--hidden');
    });

});
</script>
<main>

    <div class="menu menu--closed">

        <div class="button2">
            <span> </span>
            <span> </span>
            <span> </span>
        </div>

        <div class="tools tools--hidden">
            <!-- Pencil Filled icon by Icons8 -->
            <a href="#">
                <img class="icon pen" width="32" height="32" src="data:image/png;base64,iVBORw0KGgoAAAANSUh
                EUgAAADIAAAAyCAYAAAAeP4ixAAAB9ElEQVRoQ+3agTEEMRQG4P86oAMqQAdK0AE6oAJUQAfogArQgQ7QARUwv0lMvEk22b1N8t/NZWbHubl
                b70veezuTWGBNxmJNHNhAGq7kIYBrAPvubz4AOAfwHsagvCIMnNdtZNI+ARyEGFXISQIQmh4BHPk3FCElCMbPVdlWhYQI1gF/30vU4xeALUV
                IiDgFcOcCfU5gJFMrhvCTzVm3GK4GG8Ff51KokRBx79LJZpPFsGO9KrXfWGH7tLKYM/c84fu7Ss+Roe5kMUOp9wvulVolLdZjsohekBKETyt
                2Ln6eI5VyXVZkDCKskUFE6xWphmgJqYpoBamOaAFpgqgNaYaoCWmKqAVpjqgB6YKYG9INMSekK2IuSHfEHBAJxLIQGcQyECnEVIgcYgpEEjE
                WIosYA5FGlELkESWQlUDkICuDyEHeAOyEWxkFr7O7HQX3mPSR1AYdj7ueAHwAuCw4dMnuO02KbsSXUhBujB0DuHIQf8vvxL27rYSPJwbhzjf
                Tij/tZnEM0h2RqhFf5C8AmGLhsA1AApGCsDYICINk0TPVCPENQAYRgzBIphUHD1JuXPDhyvgGwDqSGbZG2KEuItHxqIsH9Qyex2Byw0Lss4N
                1wuCJ4HGw7LAQphO7FYPn9e/fJGQVHU+sZp+TXkdvG0hqBn4AvSZ7M5+lwqwAAAAASUVORK5CYII=">
            </a>

            <!-- Trash icon by Icons8 -->
            <a href="#">
                <img class="icon trash" width="32" height="32" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABo
                AAAAaCAYAAACpSkzOAAAA10lEQVRIS+2WURHCMAyGvykAB+AAUMDhAAmgBFACEpCAA7CAAxzAZddyW5auLeOOB9q3rf++P2mzphXxMQaOwDo
                gPQNb4NGHquI+XIBlRCea1VCjpwMsgJuCzYGre9cbtJ4U0CwhyxSJsCS4ejSNfOQpkBxN7fETo5wos7XWBn5rCVvs/zTyWfsljT1bFd2qOi/
                QexQD6/li9P5VytKVYijFQOhE6XTY0BGU3XusO4TVJuTaNPqU7r67A9MmwzLaA7uBRgdAOJ2K0lwRbYBJpqFkctImwngBd3xHGzUO9c8AAAA
                ASUVORK5CYII=">
            </a>

            <!-- Invisible icon by Icons8 -->
            <a href="#">
                <img class="icon hidden" width="32" height="32" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABAC
                AYAAACqaXHeAAAEhklEQVR4Xu2ajZFMQRCA+yJABIgAESACRIAIEAEiQARcBIgAESACRIAIqE9tX8319kxPz3u37mZvqrZu7Xtvuvub/pt5D
                mTPx8Ge2y/nAM49oE3gioh8nxlSKwQeiMhrEXkoIm9mhVADoMar3dNC8ADg9t+cFZ8SQq8HTOsJPTnAOsNUnhD1ATYXTOcJEQAMnhpCD4CpI
                fQCmBZCBsCUELIApoMwAmAEwnURuSkiNFl85y+fcrDnKD8fReTTSbfgowAiCO9E5I6I3BWRWyJycYEhgGC+QxH5tWAe99ElAFoQ1tZT5wMEG
                7P3awlYCuB/QEAmofJs4xWLWKwBoAfCbxHBlb9s/uLKfNdBiJAbGIQM3/lcDqxbDGIUAArbeKx1jK9E5PHgMgGBPMLcLRjAfLKBmxKVBYDhT
                zcK3TarGCXGpYcqeAYg7jcsfCkizzPJMgMABd4WGR0P2DUEbAdkCwJhwY6VkAtHL4AXFTcehYABhIXGPS7M6lHqolE7sLHPMR9h0RwRAFz+Q
                6GoN1kWAitkmyCdFxB4VVTvue9aZNzGC+615msBYHUw3mtiSGwYQbPDQOGricTY0h3jbgTGUQLJRTroCwD7yHmO34FQVp2j22oAyLycCFvjK
                WdcI7740N7qYOW8uKtVh5aN0akT+YjF0UHLzG98aJYumMlZICBs6ecBqCmMEIxX9/xjhFxquFoWQuQFLMxPI19t4RqGeiGyBdYCqClKcuJaO
                SyAKJ9kIUTzRfJr1eIYhFJI9ugrUsBz8QyEpQCQT6WhgtlxBEGFkPA+t250rhEKZayRuNxEY57tgfA1qDxWX3JTbcdZk/dPXwVgk4rq3EpGv
                UlwxBNGk2BG1jEAPFgjhRtR9uywMUYLSnnqHTV5Pxp9gs5ty6CXo7iXskhDFIaA3lBTCmNZlXLY+Ioyd2Z1Ig8gXLWLZF7vfsq4Tdxb92bKI
                AZSS/V1udeS0gxlX6dnk28kt9W9hmVQV6nVUDAJzQbD5gF+B1J2ZCCwIaMf0UEXqP9uNXDYtJWko1YYg7x9uG47VWBpcK0jjKD0QPCStXZ4t
                MbeuQMVhblTrbAqizsBoWx59Rquzm6LhFR2XfxOho02NNmcgB68ti/LHd0p8ol3b4Nlu9ctmVGzoQ/YrFtO5O3uRhJilIg9Oa2dZVdV6gWAc
                rgf1SA6p1NDere2GU+IwojrlFFCs6cpS/83OdwPb/C2nZ5yqdMZM0FPx2hlsurkp+7wy3hAKYwajCAvN3ggiF/yxVol0sog1kmAXatePjwKo
                IxXPCITFsCgfNK/q8J4FokU97WQWp7A/VzvOv/zVmYpgFEQtVjOHq9FHWOYM9YCoIJ6jq4jpXYKYW0AZf+gL0b5a4+oTg2EkwJgDdRXXTQre
                AmjTKBlPiAvkAf0VZqdq6djjAAfXd8VgG6FOm9cDcJZBQCnVSCcZQCrQDjrABZDmAHAIgizABiGMBOAIQizAUhDmBFAC8LWcd2sADwI7ruDm
                QGUEGovTtInQp2d6qm6jb1H9bxgdg8IV+IcQIho8hv23gP+Ak1HM1BAtIt+AAAAAElFTkSuQmCC">
            </a>

            <!-- About icon by Icons8 -->
            <a href="#">
                <img class="icon help" width="32" height="32" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABo
                AAAAaCAYAAACpSkzOAAABvElEQVRIS6WWjU0DMQyFXyeADaATABMAE1A2gA3oBMAEiAmACYAJoBMAE9BuUCYAfaf4ZB1p4vQsRVf1Yj//PNs
                3UV1OJJ1JOpS0nw5ay3Q+Jb1IWpRMTQovLyRdO8M1lwC+kfSUu5gDwvOHFEHNeO49EV5K4tnLEIgo7iTtboPgdNaS5pIe7T8PRC3eAgCnkt5
                TxDx3Cjp2VwZEkT8CkVBwHDIB6LgARGRTSWsDgjUwKyJHKf9R57B9DhAK3xGEQSQ+spr6FCAoCY1r8pMigSgHtcuD97cA1fKMDnTtGZSIQE2
                jsgCIRturaFBUpCts+s2zxDhvcgnQb9QtqWcpKi16nWIkIgx/uWnB9GhJ3SpaI4DuJV2l6KMEsmR1NYoq9V0eJJCvyLylj/y4aqoPJGqZDB6
                IbqefSuPHInqVNDNllCBFia70Ef2EcJ+R5XsrR16anMnTzzouRad3Qzfo3/Q2ZfYRS2+sEAkMze4jjM8kPY9Eod9weOOGJe8sPppxG1mlVsn
                WzZOBlBFRTjACWXDCCGP/MZTtbHTQ+oh05SLhiwYqc0YJQLZdbd+QW/PQJvUoEJRL33WjjXsDfwxhW4mRFht9AAAAAElFTkSuQmCC">
            </a>

            <!-- Share icon by Icons8 -->
            <a href="#">
                <img class="icon share" width="32" height="32" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCA
                YAAACpSkzOAAABL0lEQVRIS7WW8Q2BMRBHfyZgFBtgAxsYgQ2wARvYQGzABkZhAvKSNukn2t5VNfnCH5++u+u9npH6raWktaR52PIqaS+JT4
                06cU6SVpm9gO16gMjkXAl40QNEaWYV0K0H6GUp/y+gSTj83b9AEbCRxHfLungyagHEIAbNkHrwCP1/lHQPJSpl8JQ0trR3yQOguRIBOIRnKo
                lgEBboDX9SYS0efAabAgikujgjiwdxIzcg/hCQyYNwb1EmUwafKXpA1JvmaAZ5SgeErNxAMmppBjcwCkuUzJJvq+RICqS94zxCh+w8ov85B2
                5iNudFAkBY/ODJSVlyzT2PiLIGzPnUNI9agD/NowjcVq+FTv8ZTMJ7xkQucIuHrnmUA1k8bGqGb8CSh+72rp156iHvDubRGxwIS/cx30uGAA
                AAAElFTkSuQmCC">
            </a>

        </div>

    </div>

</main>
[/html]

0

60

[html]
<style>
@use postcss-preset-env;

/* CSS Document */

/* ---------- FONTAWESOME ---------- */
/* ---------- https://fortawesome.github.com/Font-Awesome/ ---------- */
/* ---------- http://weloveiconfonts.com/ ---------- */

@import url(https://weloveiconfonts.com/api/?family=fontawesome);

[class*="fontawesome-"]:before {
  font-family: 'FontAwesome', sans-serif;
}

/* ---------- GENERAL ---------- */

body {
background-color: #798498;
  display: grid;
  font-family: sans-serif;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
  place-items: center;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- NAVIGATION ---------- */

nav {
width: 60px;
}

nav ul {
background-color: #505664;
border-radius: 5px;
display: inline-table;
position: relative;
}

nav li {
float: left;
}

nav a {
color: #6daeb0;
display: block;
height: 45px;
line-height: 45px;
text-align: center;
width: 60px;
}

nav a:hover{
color: #fff;
}

nav ul li ul {
background: #6daeb0;
margin-top: 20px;
padding: 5px 0;
position: absolute;
}

nav ul li ul:before {
background: #6daeb0;
content: "";
height: 8px;
left: 50%;
  margin: -4px 0 0 -4px;
position: absolute;
top: 0;
transform: rotate(45deg);
width: 8px;
}

nav ul li ul li {
float: none;
}

nav ul li ul li a {
color: #fff;
}

nav ul li ul li a:hover {
background-color: #5d9799;
}
</style>
<conatiner style="height:400px;display:block;">
<nav>
  <ul>
    <li><a href="#"><span class="fontawesome-user"></span></a>

      <ul>
        <li><a href="#"><span class="fontawesome-facebook"></span></a></li>
        <li><a href="#"><span class="fontawesome-twitter"></span></a></li>
        <li><a href="#"><span class="fontawesome-google-plus"></span></a></li>
        <li><a href="#"><span class="fontawesome-linkedin"></span></a></li>
      </ul>

    </li>
  </ul>
</nav>
[/html]

0


Вы здесь » concoction » ХТМЛ и журнал » штучки


Рейтинг форумов | Создать форум бесплатно