A configurable bouncing Google logo Code

 <!DOCTYPE html>

<html lang="en" >

<head>

  <meta charset="UTF-8">

  <title>A configurable bouncing Google logo</title>

  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css">

  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Product+Sans:700'>

<style>

html,

body {

  width: 100%;

  height: 100%;

  margin: 0;

  background: #fff;

  overflow-y: hidden;

}


.bounce {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 100%;

  height: 100%;

  font: normal bold 6rem "Product Sans", sans-serif;

  white-space: nowrap;

}


.letter {

  -webkit-animation: bounce 0.75s cubic-bezier(0.05, 0, 0.2, 1) infinite alternate;

          animation: bounce 0.75s cubic-bezier(0.05, 0, 0.2, 1) infinite alternate;

  display: inline-block;

  transform: translate3d(0, 0, 0);

  margin-top: 0.5em;

  text-shadow: rgba(0, 0, 0, 0.4) 0 0 0.05em;

  font: normal bold 6rem "Product Sans", sans-serif;

}

.letter:nth-child(1) {

  -webkit-animation-delay: 0s;

          animation-delay: 0s;

  color: #4285f4;

}

.letter:nth-child(2) {

  -webkit-animation-delay: 0.0833333333s;

          animation-delay: 0.0833333333s;

  color: #ea4335;

}

.letter:nth-child(3) {

  -webkit-animation-delay: 0.1666666667s;

          animation-delay: 0.1666666667s;

  color: #fbbc05;

}

.letter:nth-child(4) {

  -webkit-animation-delay: 0.25s;

          animation-delay: 0.25s;

  color: #4285f4;

}

.letter:nth-child(5) {

  -webkit-animation-delay: 0.3333333333s;

          animation-delay: 0.3333333333s;

  color: #34a853;

}

.letter:nth-child(6) {

  -webkit-animation-delay: 0.4166666667s;

          animation-delay: 0.4166666667s;

  color: #ea4335;

}


@-webkit-keyframes bounce {

  0% {

    transform: translate3d(0, 0, 0);

    text-shadow: rgba(0, 0, 0, 0.4) 0 0 0.05em;

  }

  100% {

    transform: translate3d(0, -1em, 0);

    text-shadow: rgba(0, 0, 0, 0.4) 0 1em 0.35em;

  }

}


@keyframes bounce {

  0% {

    transform: translate3d(0, 0, 0);

    text-shadow: rgba(0, 0, 0, 0.4) 0 0 0.05em;

  }

  100% {

    transform: translate3d(0, -1em, 0);

    text-shadow: rgba(0, 0, 0, 0.4) 0 1em 0.35em;

  }

}

</style>

  <script>

  window.console = window.console || function(t) {};

</script>

</head>

<body translate="no">

  <div class="bounce"><span class="letter">G</span><span class="letter">o</span><span class="letter">o</span><span class="letter">g</span><span class="letter">l</span><span class="letter">e</span>

</div>

</body>

</html>


Comments