]> git.ardis.lu - css-loaders/commitdiff
Add arrow-movement-2
authorArdis Lu <ardisglu@gmail.com>
Mon, 22 Jan 2024 06:44:51 +0000 (22:44 -0800)
committerArdis Lu <ardisglu@gmail.com>
Mon, 22 Jan 2024 06:44:51 +0000 (22:44 -0800)
index.html

index 511281abe7d730f88fb10a2ab2de0697aa81a484..20905ed2ed0e409c9b4f66064aa54451c6077ef0 100644 (file)
       transition: translate 200ms;
     }
 
+    .arrow-movement-2::after {
+      content: "→";
+      display: inline-block;
+      margin-inline-start: 4px;
+      rotate: -45deg;
+      transition: rotate 400ms;
+    }
+
+    :is(.arrow-movement-2:hover, .arrow-movement-2:focus)::after {
+      rotate: 0deg;
+      transition: rotate 200ms;
+    }
+
     .gradient-shadow {
       position: relative;
     }
 
       <button class="arrow-movement">Arrow movement</button>
 
+      <button class="arrow-movement-2">Arrow movement 2</button>
+
       <button class="gradient-shadow">Gradient drop shadow</button>
 
       <button class="radiating-shadow">Radiating drop shadow</button>
This page took 0.040209 seconds and 4 git commands to generate.