LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
CLick to Toggle
CSS
* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Container Styling */
body {
  background-color: #fff1ce;
  font-family: frutiger, futura, helvetica sans-serif;
  text-transform: uppercase;
  text-align: center;
  color: #fff1ce;
  font-size: 1em;
}

.container {
  overflow: hidden;
  *zoom: 1;
  width: 85%;
  max-width: 700px;
  min-width: 400px;
  margin: 0 auto;
  border: 1px solid white;
  padding: 1em 4em 1em 4em;
  -webkit-perspective: 150;
  -moz-perspective: 150;
  perspective: 150;
  position: relative;
}
.container:after {
  content: "";
  position: absolute;
  width: 6px;
  left: 49.7%;
  background-color: #17607d;
  height: 100%;
}

/* Boxes Styling */
article {
  display: inline;
  position: relative;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  float: left;
  clear: left;
  width: 46%;
  padding-top: .6em;
  background-color: #002a4a;
  height: 150px;
  margin-top: 0.9em;
}

/* Boxes Tabs */
.FlapLeft:after, .FlapRight:after {
  content: "";
  position: absolute;
  right: -10px;
  top: 20%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.FlapLeft:after {
  border-left: 10px solid #002a4a;
}

.FlapRight:after {
  left: -10px;
  border-right: 10px solid #ff9311;
}

.container article:nth-child(even) {
  float: right;
  clear: right;
  background-color: #ff9311;
  margin-top: 1em;
  border-right: 10px solid #002a4a;
}
.container article:nth-child(even):after {
  border-right: 10px solid #ff9311;
}
.container article:nth-child(4n+3) {
  background-color: #e33200;
  border-left: 10px solid #002a4a;
}
.container article:nth-child(4n+3):after {
  border-left: 10px solid #e33200;
}
.container article:nth-child(4n+4) {
  background-color: #002a4a;
}
.container article:nth-child(4n+4):after {
  border-right: 10px solid #002a4a;
}
.container article:nth-child(1) {
  height: 3em;
  background-color: #17607d;
}
.container article:nth-child(1):after {
  display: none;
}
.container article:nth-child(2) {
  height: 100px;
  -moz-transition: all 0.6s ease-in-out 0.1s;
  -o-transition: all 0.6s ease-in-out 0.1s;
  -webkit-transition: all 0.6s ease-in-out;
  -webkit-transition-delay: 0.1s;
  transition: all 0.6s ease-in-out 0.1s;
}
.container article:nth-child(3) {
  -moz-transition: all 0.6s ease-in-out 0.2s;
  -o-transition: all 0.6s ease-in-out 0.2s;
  -webkit-transition: all 0.6s ease-in-out;
  -webkit-transition-delay: 0.2s;
  transition: all 0.6s ease-in-out 0.2s;
  height: 80px;
}
.container article:nth-child(4) {
  -moz-transition: all 0.6s ease-in-out 0.3s;
  -o-transition: all 0.6s ease-in-out 0.3s;
  -webkit-transition: all 0.6s ease-in-out;
  -webkit-transition-delay: 0.3s;
  transition: all 0.6s ease-in-out 0.3s;
}
.container article:nth-child(5) {
  -moz-transition: all 0.6s ease-in-out 0.4s;
  -o-transition: all 0.6s ease-in-out 0.4s;
  -webkit-transition: all 0.6s ease-in-out;
  -webkit-transition-delay: 0.4s;
  transition: all 0.6s ease-in-out 0.4s;
}
.container article:nth-child(6) {
  -moz-transition: all 0.6s ease-in-out 0.5s;
  -o-transition: all 0.6s ease-in-out 0.5s;
  -webkit-transition: all 0.6s ease-in-out;
  -webkit-transition-delay: 0.5s;
  transition: all 0.6s ease-in-out 0.5s;
}
.container article:nth-child(7) {
  -moz-transition: all 0.6s ease-in-out 0.7s;
  -o-transition: all 0.6s ease-in-out 0.7s;
  -webkit-transition: all 0.6s ease-in-out;
  -webkit-transition-delay: 0.7s;
  transition: all 0.6s ease-in-out 0.7s;
}
.container article:nth-child(8) {
  -moz-transition: all 0.6s ease-in-out 0.8s;
  -o-transition: all 0.6s ease-in-out 0.8s;
  -webkit-transition: all 0.6s ease-in-out;
  -webkit-transition-delay: 0.8s;
  transition: all 0.6s ease-in-out 0.8s;
}
.container article:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=94);
  opacity: 0.94;
  cursor: pointer;
}

/* Boxes Animations */
.container article {
  -moz-perspective: 150;
  -webkit-perspective: 150;
  perspective: 150;
  -moz-transform: rotateX(10deg);
  -ms-transform: rotateX(10deg);
  -webkit-transform: rotateX(10deg);
  transform: rotateX(10deg);
  -webkit-transform-origin: 0% 0%;
  -moz-transform-origin: 0% 0%;
  transform-origin: 0% 0%;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -moz-transition: all 0.6s ease-in-out;
  -o-transition: all 0.6s ease-in-out;
  -webkit-transition: all 0.6s ease-in-out;
  transition: all 0.6s ease-in-out;
}
.container article.FlapLeft {
  -moz-transform: rotateY(-10deg);
  -ms-transform: rotateY(-10deg);
  -webkit-transform: rotateY(-10deg);
  transform: rotateY(-10deg);
  -webkit-transform-origin: 100% 100%;
  -moz-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}
.container article.FlapRight {
  -moz-transform: rotateY(10deg);
  -ms-transform: rotateY(10deg);
  -webkit-transform: rotateY(10deg);
  transform: rotateY(10deg);
}
.container article.NoFlap {
  -moz-transform: rotateY(0deg);
  -ms-transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
}
.container article.FlapDown {
  -moz-transform: rotateX(10deg);
  -ms-transform: rotateX(10deg);
  -webkit-transform: rotateX(10deg);
  transform: rotateX(10deg);
}

.normal.container article {
  filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
  opacity: 1;
  -moz-transform: rotateX(0deg);
  -ms-transform: rotateX(0deg);
  -webkit-transform: rotateX(0deg);
  transform: rotateX(0deg);
}
Host Instantly Drag and Drop Website Builder

 

Description

experimenting with CSS3 perspective and transitions on load for a timeline.
Term
Mon, 11/27/2017 - 22:06

Related Codes

Pen ID
Pen ID
Pen ID