A Pen by Nahom Ebssa

Thumbnail
This awesome code was written by enahom99, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright enahom99 ©

Technologies

  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  Nahom Ebssa</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <div class="slider">
  <a href="#" class="material-icons arrow left">arrow_left</a>
  <div class="pages">
    <div class="slide">
      <div class="page">
        <img src="https://images.unsplash.com/photo-1520053076713-c72439f43052?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1920&h=1080&fit=crop&s=0ce929a1afa8933defe15ec7b2271efe">
      </div>
      <div class="page">
        <img src="https://images.unsplash.com/photo-1519970163512-f2d878f658c1?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1920&h=1080&fit=crop&s=8110570618d5fd146b85a0a5cc26a4f8">
      </div>
      <div class="page">
        <img src="https://images.unsplash.com/photo-1520550652-4d089104a001?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1920&h=1080&fit=crop&s=73a35d4627cf53d0a581a53fa96054d8">
      </div>
      <div class="page">
        <img src="https://images.unsplash.com/photo-1519755605812-56339a91701a?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&cs=tinysrgb&w=1920&h=1080&fit=crop&s=bbb1e7cb084969c28741fb3da08da0b2">
      </div>
    </div>
  </div>
  <a href="#" class="material-icons arrow right">arrow_right</a>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/enahom99/a-pen-by-nahom-ebssa-QmEEJB */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
* a {
  text-decoration: none;
  color: inherit;
}

.pages {
  height: 360px;
  width: 640px;
  overflow: hidden;
}
.pages .slide {
  display: flex;
  height: 100%;
  width: 400%;
}
.pages .slide .page {
  display: flex;
  align-items: center;
}
.pages .slide .page img {
  max-height: 100%;
  width: 100%;
}

.slider {
  display: flex;
}
.slider a.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  color: white;
  background: rgba(0, 0, 0, 0.16);
  z-index: 100;
}
.slider a.arrow.left {
  margin-right: -50px;
}
.slider a.arrow.right {
  margin-left: -50px;
}

Comments