]> gitweb.michael.orlitzky.com - charm-bypass.git/commitdiff
src/index.html.in: animate the trees
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 11 Oct 2023 00:35:41 +0000 (20:35 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 11 Oct 2023 00:35:41 +0000 (20:35 -0400)
src/index.html.in

index ff5410f137a5e1c850d7cc1f7c3706fa3661ad66..d6f421324f24046eb2b9c84a7453dcedd13c1dd2 100644 (file)
@@ -58,6 +58,8 @@
       /************************/
       /* Scrolling animations */
       /************************/
+
+      /* Bus */
       @keyframes busroll {
        from {
          transform: translateX(0%);
@@ -71,6 +73,8 @@
        animation: busroll 20s linear infinite;
       }
 
+
+      /* Tram */
       @keyframes tramroll {
        from {
          transform: translateX(0%);
@@ -84,6 +88,8 @@
        animation: tramroll 15s linear infinite;
       }
 
+
+      /* Clouds */
       @keyframes cloudsfloat {
        from {
          transform: translateX(0%);
       #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>