<!DOCTYPE html>
<html lang="en">
 <head>
  <style>
   @import url(https://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css);
* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(0, 0, 0);
}

.clearfix {
  zoom: 1;
}
.clearfix:before, .clearfix:after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden;
}
.clearfix:after {
  clear: both;
}

body {
  background: #ecf0f1;
  flex-direction: column;
  color: #2c3e50;
}

label {
  display: block;
  margin-bottom: 3em;
  font-size: 16px;
  font-family: "Monaco", monospace;
}

select {
  font-size: 1em;
  font-family: inherit;
  background: #ecf0f1;
  color: #2c3e50;
  border: 1px solid #2c3e50;
  height: 2em;
}

.triangles {
  width: 7em;
  height: 2em;
  font-size: 40px;
}

.triangle {
  width: 0;
  height: 0;
  border-width: 0 0.57em 1em;
  border-color: transparent transparent #2c3e50;
  border-style: solid;
  display: inline-block;
  -webkit-animation: flip 1s infinite linear;
          animation: flip 1s infinite linear;
}
.triangle:nth-child(even) {
  transform: rotate(2turn);
  -webkit-animation-delay: -0.5s;
          animation-delay: -0.5s;
}
.triangle:nth-child(n+6) {
  border-bottom-color: rgba(44, 62, 80, 0.8);
}

@-webkit-keyframes flip {
  to {
    transform: rotate(1turn);
  }
}

@keyframes flip {
  to {
    transform: rotate(1turn);
  }
}
  </style>
 </head>
 <body translate="no">
  <div class="container" ng-app="myApp">
   <label>
    transform-origin:
    <select ng-init="origin='center'" ng-model="origin" ng-options="option as option for option in ['center','top','right','bottom','left']">
    </select>
   </label>
   <div class="triangles">
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
    <div class="triangle" style="-webkit-transform-origin: {{ origin }}; -ms-transform-origin: {{ origin }}; transform-origin: {{ origin }};">
    </div>
   </div>
  </div>
 </body>
</html>
