Loading

Css Perspective

<!DOCTYPE html>
<html lang="en" >
<head>
  <meta charset="UTF-8">
  <title>Css Perspective</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>
  <div class="centered">
  <div class="comment">hover text and click to edit</div>
  <div contentEditable class="text">CSS PERSPECTIVE</div>
  <code class="comment">
    transform: perspective(400px) rotateX(20deg) rotateY(-15deg);
  </code>
</div>
  
  
</body>
</html>
/* Downloaded from https://ahoj.co.uk/ */
@import url("https://fonts.googleapis.com/css?family=Anton");
html, body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: linear-gradient(45deg, #334f12 20%, #365413 0%, #334f12 80%, #365413 0%);
  font-family: sans-serif;
  font-size: 12px;
}

.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  height: inherit;
  flex-direction: column;
}

.comment {
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
}

.text {
  font-size: 10em;
  transition: 1s ease-in-out;
  color: #517d1d;
  font-family: 'Anton', sans-serif;
}
.text:hover {
  transform: perspective(400px) rotateX(20deg) rotateY(-15deg);
  text-shadow: 1px 1px rgba(41, 63, 15, 0.96), 2px 2px rgba(41, 63, 15, 0.92), 3px 3px rgba(41, 63, 15, 0.88), 4px 4px rgba(41, 63, 15, 0.84), 5px 5px rgba(41, 63, 15, 0.8), 6px 6px rgba(41, 63, 15, 0.76), 7px 7px rgba(41, 63, 15, 0.72), 8px 8px rgba(41, 63, 15, 0.68), 9px 9px rgba(41, 63, 15, 0.64), 10px 10px rgba(41, 63, 15, 0.6), 11px 11px rgba(41, 63, 15, 0.56), 12px 12px rgba(41, 63, 15, 0.52), 13px 13px rgba(41, 63, 15, 0.48), 14px 14px rgba(41, 63, 15, 0.44), 15px 15px rgba(41, 63, 15, 0.4), 16px 16px rgba(41, 63, 15, 0.36), 17px 17px rgba(41, 63, 15, 0.32), 18px 18px rgba(41, 63, 15, 0.28), 19px 19px rgba(41, 63, 15, 0.24), 20px 20px rgba(41, 63, 15, 0.2), 21px 21px rgba(41, 63, 15, 0.16), 22px 22px rgba(41, 63, 15, 0.12), 23px 23px rgba(41, 63, 15, 0.08), 24px 24px rgba(41, 63, 15, 0.04), 25px 25px rgba(41, 63, 15, 0), 26px 26px rgba(41, 63, 15, 0), 27px 27px rgba(41, 63, 15, 0), 28px 28px rgba(41, 63, 15, 0), 29px 29px rgba(41, 63, 15, 0), 30px 30px rgba(41, 63, 15, 0), 31px 31px rgba(41, 63, 15, 0), 32px 32px rgba(41, 63, 15, 0), 33px 33px rgba(41, 63, 15, 0), 34px 34px rgba(41, 63, 15, 0), 35px 35px rgba(41, 63, 15, 0), 36px 36px rgba(41, 63, 15, 0), 37px 37px rgba(41, 63, 15, 0), 38px 38px rgba(41, 63, 15, 0), 39px 39px rgba(41, 63, 15, 0), 40px 40px rgba(41, 63, 15, 0);
}
/* Downloaded from https://ahoj.co.uk/ */

This awesome code is write by Adriano Interaminense, you can se more from this user in the personal repository