]> gitweb.michael.orlitzky.com - charm-bypass.git/blobdiff - src/index.html.in
src/index.html.in: reduce the LCM of the bus/tram/train loops
[charm-bypass.git] / src / index.html.in
index 271651099a79f6d1c907f92caf0d5f9c6021579d..755f54020592ab630097dcaa7e4973f8aa47020d 100644 (file)
         font-family: "CharmBypass Ticket Text" !important;
       }
 
+      /************************/
+      /* Scrolling animations */
+      /************************/
+
+      /* Bus */
+      @keyframes busroll {
+       from {
+         transform: translateX(0%);
+       }
+       to {
+         transform: translateX(100%);
+       }
+      }
+
+      #bus {
+       animation: busroll 23s linear infinite;
+      }
+
+
+      /* Tram */
+      @keyframes tramroll {
+       from {
+         transform: translateX(0%);
+       }
+       to {
+         transform: translateX(100%);
+       }
+      }
+
+      #tram {
+       animation: tramroll 17s linear infinite;
+      }
+
+
+      /* Tram */
+      @keyframes trainroll {
+       from {
+         transform: translateX(0%);
+       }
+       to {
+         transform: translateX(100%);
+       }
+      }
+
+      #train {
+       animation: trainroll 11s linear infinite;
+      }
+
+
+      /* Clouds */
+      @keyframes cloudsfloat {
+       from {
+         transform: translateX(0%);
+       }
+       to {
+         transform: translateX(-50%);
+       }
+      }
+
+      #clouds {
+       animation: cloudsfloat 40s linear infinite;
+      }
+
+      @keyframes cloudscopyfloat {
+       from {
+         transform: translateX(0%);
+       }
+       to {
+         transform: translateX(-50%);
+       }
+      }
+
+      #cloudscopy {
+       animation: cloudscopyfloat 40s linear infinite;
+      }
+
+
+      /* Trees */
+      @keyframes treespass {
+       from {
+         transform: translateX(0%);
+       }
+       to {
+         transform: translateX(-50%);
+       }
+      }
+
+      #trees {
+        /* The trees move a little faster than the clouds */
+       animation: treespass 30s linear infinite;
+      }
+
+      @keyframes treescopypass {
+       from {
+         transform: translateX(0%);
+       }
+       to {
+         transform: translateX(-50%);
+       }
+      }
+
+      #treescopy {
+        /* The trees move a little faster than the clouds */
+       animation: treescopypass 30s linear infinite;
+      }
     </style>
   </head>