Ignore:
Timestamp:
2015-05-30T11:15:24+12:00 (9 years ago)
Author:
davidb
Message:

Animated drum visual

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/respooled/collect/popup-video-respooled/transform/pages/document.xsl

    r29902 r29940  
    17361736        pointer-events: none;
    17371737      }
     1738
     1739.drum.hit {
     1740  animation: drumHit .15s linear infinite;
     1741  -webkit-animation: drumHit .15s linear infinite;
     1742  -moz-animation: drumHit .15s linear infinite;
     1743  -ms-animation: drumHit .15s linear infinite;
     1744  -o-animation: drumHit .15s linear infinite;
     1745}
     1746
     1747@keyframes: drumHit; {
     1748  0%   { background-size: 100%;}
     1749  10%  { background-size: 95%; }
     1750  30%  { background-size: 97%; }
     1751  50%  { background-size: 100%;}
     1752  60%  { background-size: 98%; }
     1753  70%  { background-size: 100%;}
     1754  80%  { background-size: 99%; }
     1755  100% { background-size: 100%;}
     1756}
     1757
     1758@-webkit-keyframes drumHit {
     1759  0%   { background-size: 100%;}
     1760  10%  { background-size: 105%; }
     1761  30%  { background-size: 103%; }
     1762  50%  { background-size: 100%;}
     1763  60%  { background-size: 102%; }
     1764  70%  { background-size: 100%;}
     1765  80%  { background-size: 101%; }
     1766  100% { background-size: 100%;}
     1767}
     1768
     1769@-moz-keyframes drumHit {
     1770  0%   { background-size: 100%;}
     1771  10%  { background-size: 105%; }
     1772  30%  { background-size: 103%; }
     1773  50%  { background-size: 100%;}
     1774  60%  { background-size: 102%; }
     1775  70%  { background-size: 100%;}
     1776  80%  { background-size: 101%; }
     1777  100% { background-size: 100%;}
     1778}
     1779
     1780@-o-keyframes drumHit {
     1781  0%   { background-size: 100%;}
     1782  10%  { background-size: 105%; }
     1783  30%  { background-size: 103%; }
     1784  50%  { background-size: 100%;}
     1785  60%  { background-size: 102%; }
     1786  70%  { background-size: 100%;}
     1787  80%  { background-size: 101%; }
     1788  100% { background-size: 100%;}
     1789}
     1790
     1791@-ms-keyframes drumHit {
     1792  0%   { background-size: 100%;}
     1793  10%  { background-size: 105%; }
     1794  30%  { background-size: 103%; }
     1795  50%  { background-size: 100%;}
     1796  60%  { background-size: 102%; }
     1797  70%  { background-size: 100%;}
     1798  80%  { background-size: 101%; }
     1799  100% { background-size: 100%;}
     1800}
     1801
     1802
     1803
    17381804    </style>
    17391805    <div id="drumkit-area" class="documenttext" style="display: none; position: absolute: left: 0px; top: 0px;">
     
    17421808          <div style="display:inline-block;">
    17431809        <div style="position: relative;">
     1810<!--
    17441811          <img style="position: relative;" width="148" height="148"
    17451812               src="{$httpCollection}/images/cymbal-overview.png" class="drum" id="drum1" border="0" />
     1813-->
     1814          <div style="position: relative; width: 148px; height: 148px; background-image: url({$httpCollection}/images/cymbal-overview.png); background-repeat: no-repeat; background-size: 148px 148px" class="drum" id="drum1" border="0" ><xsl:comment>drum background</xsl:comment></div>
    17461815          <div class="drumcontainer" style="color: #555555">
    17471816            <span style="white-space: nowrap;">&lt;Shift-C&gt;</span>
     
    17511820          <div style="display:inline-block;">
    17521821        <div style="position: relative;">
     1822<!--
    17531823          <img style="position: relative;" width="148" height="144"
    17541824              src="{$httpCollection}/images/drum-overview.png" class="drum" id="drum3" border="0" />
     1825-->
     1826          <div style="position: relative; width: 148px; height: 144px; background-image: url({$httpCollection}/images/drum-overview.png); background-repeat: no-repeat; background-size: 148px 144px" class="drum" id="drum3" border="0" ><xsl:comment>drum background</xsl:comment></div>
    17551827          <div class="drumcontainer" >
    17561828            <span style="white-space: nowrap;">&lt;Shift-V&gt;</span>
     
    17601832          <div style="display:inline-block;">
    17611833        <div style="position: relative;">
     1834<!--
    17621835          <img style="position: relative;"  width="167" height="163"
    17631836               src="{$httpCollection}/images/drum-overview.png" class="drum" id="drum2" border="0" />
     1837-->
     1838          <div style="position: relative; width: 167px; height: 163px; background-image: url({$httpCollection}/images/drum-overview.png); background-repeat: no-repeat; background-size: 167px 163px" class="drum" id="drum2" border="0" ><xsl:comment>drum background</xsl:comment></div>
    17641839          <div class="drumcontainer" >
    17651840            <span style="white-space: nowrap;">&lt;Shift-B&gt;</span>
     
    17691844          <div style="display:inline-block;">
    17701845        <div style="position: relative;">
     1846<!--
    17711847          <img style="position: relative;" width="197" height="192"
    17721848               src="{$httpCollection}/images/drum-overview.png" class="drum" id="drum4" border="0" />
     1849-->
     1850          <div style="position: relative; width: 197px; height: 192px; background-image: url({$httpCollection}/images/drum-overview.png); background-repeat: no-repeat; background-size: 197px 192px" class="drum" id="drum4" border="0" ><xsl:comment>drum background</xsl:comment></div>
    17731851          <div class="drumcontainer" >
    17741852            <span style="white-space: nowrap;">&lt;Shift-N&gt;</span>
     
    17781856          <div style="display:inline-block;">
    17791857        <div style="position: relative;">
     1858<!--
    17801859          <img style="position: relative;" width="216" height="211"
    17811860               src="{$httpCollection}/images/drum-overview.png" class="drum" id="drum5" border="0" />
     1861-->
     1862          <div style="position: relative; width: 216px; height: 211px; background-image: url({$httpCollection}/images/drum-overview.png); background-repeat: no-repeat; background-size: 216px 211px" class="drum" id="drum5" border="0" ><xsl:comment>drum background</xsl:comment></div>
    17821863          <div class="drumcontainer" >
    1783            <span style="white-space: nowrap;"> &lt;Space-M&gt;</span>
     1864           <span style="white-space: nowrap;"> &lt;Shift-M&gt;</span>
    17841865          </div>
    17851866        </div>
Note: See TracChangeset for help on using the changeset viewer.