A Pen by Ream

Thumbnail
This awesome code was written by ream-lab, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright ream-lab ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Ream</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="wold"><div class="sun"></div></div>
<div class="items">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
  <div class="item">10</div>
  <div class="item">11</div>
  <div class="item">12</div>
  <div class="item">13</div>
  <div class="item">14</div>
  <div class="item">15</div>
  <div class="item">16</div>
  <div class="item">17</div>
  <div class="item">18</div>
  <div class="item">19</div>
  <div class="item">20</div>
  <div class="item">21</div>
  <div class="item">22</div>
  <div class="item">23</div>
  <div class="item">24</div>
  <div class="item item_baner">
    <div class="baner">baner</div>
  </div>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/ream-lab/a-pen-by-ream-XKkrPE */
.wold {
  position: absolute;
  pointer-event: none;
  top: 0;
  width: 650px;
  height: 550px;
  overflow: hidden;
  transform-origin: 100% 0;
  transform: rotate(25deg) translateZ(0);
}
.sun {
  position: relative;
  left: 500px;
  top: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: #ff0;
  transform: translateZ(0);
  z-index: 10;
  -webkit-filter: blur(100px);
}
.item {
  position: relative;
  z-index: 1;
  order: 1;
  flex-shrink: 0;
  width: 100px;
  height: 40px;
  background-color: #add8e6;
  box-sizing: border-box;
  text-align: center;
  line-height: 40px;
  margin: 3px;
  cursor: pointer;
  color: #fff;
  font-family: Arial;
  font-size: 18px;
  text-shadow: -1px 2px 0px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0, 0.76, 0.59, 1.64);
  transform: perspective(900px) rotate3d(2, 1, 0, 15deg);
  box-shadow: -1px 2px 0px rgba(0,0,0,0.15);
}
.items {
  margin: 30px;
  width: 424px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  transition: all 0.3s;
  transform: perspective(900px) rotate3d(0.75, 1, 0, 5deg);
}
.items:hover {
  transform: perspective(900px) rotate3d(0.75, 1, 0, 25deg);
}
.items:hover .baner {
  box-shadow: -5px 5px 3px rgba(0,0,0,0.25);
}
.items:hover .item {
  text-shadow: -5px 5px 3px rgba(0,0,0,0.25);
  transform: perspective(900px) rotate3d(2, 1, 0, 15deg);
  box-shadow: -5px 5px 3px rgba(0,0,0,0.25);
}
.items:hover .item:hover {
  font-size: 28px;
  transform: perspective(900px) rotate3d(2, 1, 0, 5deg) translateZ(15px) scale(1.15);
  box-shadow: -15px 15px 10px rgba(0,0,0,0.25);
}
.item:nth-child(7) ~ div {
  order: 3;
  background-color: #87cefa;
}
.item:nth-child(7) ~ div:nth-child(3n + 1) {
  margin-right: 100px;
  background-color: #ffa07a;
}
.item:nth-child(17) ~ div:nth-child(3n + 1) {
  margin: 3px;
  background-color: #87cefa;
}
.item_baner {
  order: 2 !important;
  height: 40px;
  box-shadow: none;
}
.item_baner .baner {
  height: 178px;
  line-height: 178px;
  transition: all 0.3s cubic-bezier(0, 0.76, 0.59, 1.64);
  background-color: #20b2aa;
  box-shadow: -1px 2px 0px rgba(0,0,0,0.15);
}
.item_baner .baner:hover {
  box-shadow: -25px 15px 10px rgba(0,0,0,0.25);
}
.item:hover {
  color: #000;
  text-shadow: 0 1px 2px rgba(255,255,255,0.25);
  -webkit-filter: blur(0) !important;
}

Comments