$n: 72;
$l: 3em;
$a: 36deg;
$bbase: 'http://imgsrc.hubblesite.org/hu/db/images/hs-';
$bsuf: '-thumb.jpg';
$bdif: 
  '2013-23-a', '2005-29-e', '2012-10-c', 
  '2007-25-d', '1999-19-b', '2005-16-b', 
  '2010-03-c', '2010-22-a', '2008-09-g', 
  '2013-13-a', '2008-31-a', '2004-07-n', 
  '1997-11-b', '2012-01-a', '2004-27-a', 
  '2006-01-a', '2001-15-c', '2004-10-a';

html {
  height: 100%;
  perspective: 40em;
  background: dimgrey;
}
.strip {
  position: relative;
  padding: 0;
  margin: $l*2 0 0;
  list-style: none;
  transform-style: preserve-3d;
}
.tile {
  position: absolute;
  top: 50%; left: 50%;
  margin: -$l/2;
  width: $l; height: $l;
  box-shadow: 1px 1px .2em black;
  @for $i from 1 through $n/4 {
    &:nth-child(#{$n/4}n + #{$i}) {
      background: url($bbase + nth($bdif, $i) + $bsuf);
      background-size: cover;
    }
  }
}
@for $i from 1 through $n {
  .tile:nth-child(#{$i}) {
    $oi: abs(180 - ($a*$i)%360)/180;
    opacity: $oi;
    animation: rot#{$i} 30s linear -15s infinite;
  }
  @keyframes rot#{$i} {
    @for $j from 0 through 10 {
      $o: abs(180deg - ($a*($i + $j))%360deg)/180deg;
      @if round($o) == $o or $j%10 == 0 {
        #{$j*10%} {
          @if round($o) == $o { opacity: $o; }
          @if $j%10 == 0 {
            transform: translateY($i*6px) 
                       rotateY($a*($i + $j)) 
                       translateZ(6.5em) 
                       rotate(3.2deg);
          }
        }
      }
    }
  }
}
