LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

Zero

One

Two

Three

CSS
[carrousel] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  background-color: #47cf73;
  border-radius: 10px;
}
[carrousel]::before {
  content: '';
  display: block;
  padding-bottom: 50%;
}
[carrousel] [name~="carrousel"] {
  display: none;
}
[carrousel] [name~="carrousel"]:checked + .slide {
  pointer-events: auto;
  opacity: 1;
}
[carrousel] [name~="carrousel"]:checked + .slide .slide-content {
  opacity: 1;
}
[carrousel] .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
[carrousel] .slide-content {
  opacity: 0;
  -webkit-transition: opacity 1s;
  transition: opacity 1s;
}
[carrousel] .back,
[carrousel] .forward {
  display: block;
  position: absolute;
  top: calc(50% - 2rem);
  height: 4rem;
  width: 2rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  font-size: .5rem;
  background-color: #d5f4df;
  border-radius: 100px;
  color: #0f3b1d;
  -webkit-box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 0 0 rgba(0, 0, 0, 0.1);
  -webkit-transform: scale(0.9);
          transform: scale(0.9);
  -webkit-transition: -webkit-transform .2s;
  transition: -webkit-transform .2s;
  transition: transform .2s;
  transition: transform .2s, -webkit-transform .2s;
}
[carrousel] .back:hover,
[carrousel] .forward:hover {
  -webkit-transform: scale(1);
          transform: scale(1);
  background-color: white;
}
[carrousel] .back {
  left: calc(0% + 1rem);
}
[carrousel] .forward {
  right: calc(0% + 1rem);
}

body {
  padding: 1rem;
}

[carrousel] h1 {
  font-size: 5rem;
  color: white;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}
JS
// No JS here
Term
Sat, 01/13/2018 - 07:26

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv