Sfoglia il codice sorgente

style(DCard): 添加卡片悬停时的边框颜色过渡效果

piks 3 settimane fa
parent
commit
1932e51a4a
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      app/components/about/DCard.vue

+ 5 - 0
app/components/about/DCard.vue

@@ -84,6 +84,11 @@ const dcards = [
     flex-direction: column;
     align-items: center;
     color: #FFF;
+    transition: border-color 0.3s ease;
+
+    &:hover {
+      border-color: #ADA8FF;
+    }
 
     &::before {
       content: "";