Browse Source

update css3 index

wangnan 7 years ago
parent
commit
c254334d6b
1 changed files with 24 additions and 130 deletions
  1. 24 130
      sites/doc/index.vue

+ 24 - 130
sites/doc/index.vue

@@ -588,6 +588,7 @@ export default {
       line-height: 64px;
       cursor: pointer;
       color: #fff;
+      position: relative;
       & > a {
         display: block;
         height: 100%;
@@ -605,8 +606,28 @@ export default {
       margin-left: 20px;
       font-size: 12px;
     }
-    li:hover {
-      border-bottom: 2px solid #fff;
+    
+    li::before{
+      content:'';
+      position: absolute;
+      top:0;
+      left:100%;
+      width:0;
+      height:100%;
+      border-bottom:2px solid #fff;
+      transition:0.2s all linear;
+
+    }
+    li:hover:before{
+      width:100%;
+      top:0;
+      left:0;
+      transition-delay:0.1s;
+      border-bottom-color:#fff;
+      z-index:-1;
+    }
+    li:hover ~ li::before{
+      left:0;
     }
     .github-icon {
       display: inline-block;
@@ -777,7 +798,7 @@ export default {
   }
 }
 
-<<<<<<< HEAD
+
 .css-animation{
 	position: absolute;
   top:0;
@@ -912,133 +933,6 @@ export default {
 		}
 	}
 
-=======
-.css-animation {
-  position: absolute;
-  top: 0;
-  right: 0;
-  transform: scale3d(1.06, 1.06, 1.06);
-
-  .blue-bg {
-    background: url("//img12.360buyimg.com/uba/jfs/t1/22824/40/3136/6504/5c24a3f4E76fdafde/802d02d1ec5d3d55.png")
-      0 0 no-repeat;
-    height: 757px;
-    width: 963px;
-    background-size: 100% 100%;
-    position: absolute;
-    right: 0;
-    top: 0;
->>>>>>> fd9c2b1a875256700418a2f379f3e4c67e1c1f84
-
-    .phone {
-      background: url("//img10.360buyimg.com/uba/jfs/t1/19171/19/3175/23282/5c24a440Ee2a94261/45321aeaf173f237.png")
-        0 0 no-repeat;
-      height: 419px;
-      width: 227px;
-      background-size: 100% 100%;
-      position: absolute;
-      right: 350px;
-      top: 250px;
-      display: inline-block;
-    }
-    .goods {
-      background: url("//img14.360buyimg.com/uba/jfs/t1/21115/40/3224/5652/5c24a411E03ef9eb6/83781b97e59da905.png")
-        0 0 no-repeat;
-      height: 165px;
-      width: 117px;
-      background-size: 100% 100%;
-      position: absolute;
-      display: inline-block;
-      top: 500px;
-      right: 710px;
-    }
-    .people {
-      background: url("//img12.360buyimg.com/uba/jfs/t1/9330/16/10894/8662/5c24a42aE708692b3/14455d20eca1ccee.png");
-      width: 184px;
-      height: 334px;
-      background-size: 100% 100%;
-      position: absolute;
-      top: 334px;
-      right: 500px;
-    }
-    .flower {
-      position: absolute;
-      right: 195px;
-      top: 510px;
-      height: 160px;
-      width: 208px;
-      .leaf_1 {
-        position: absolute;
-        background: url(./asset/css/i/leaf_1.png) 0 0 no-repeat;
-        height: 113px;
-        width: 60px;
-        background-size: 100% 100%;
-        bottom: 36px;
-        right: 79px;
-        animation: leafShake 8s infinite;
-      }
-      .leaf_2 {
-        position: absolute;
-        background: url(./asset/css/i/leaf_2.png) 0 0 no-repeat;
-        height: 64px;
-        width: 66px;
-        background-size: 100% 100%;
-        bottom: 36px;
-        right: 35px;
-        animation: leafShake 8s infinite 0.6s;
-      }
-      .leaf_3 {
-        position: absolute;
-        background: url(./asset/css/i/leaf_3.png) 0 0 no-repeat;
-        height: 28px;
-        width: 64px;
-        background-size: 100% 100%;
-        bottom: 38px;
-        right: 42px;
-        //animation:leafShake 3s infinite 0.5s;
-      }
-      .leaf_4 {
-        position: absolute;
-        background: url(./asset/css/i/leaf_4.png) 0 0 no-repeat;
-        height: 113px;
-        width: 99px;
-        background-size: 100% 100%;
-        bottom: 38px;
-        left: 2px;
-        //animation:leafShake 3s infinite 0.2s;
-      }
-      .flowerpot {
-        position: absolute;
-        background: url(./asset/css/i/flowerpot.png) 0 0 no-repeat;
-        height: 42px;
-        width: 130px;
-        bottom: 0;
-        right: 5px;
-        background-size: 100% 100%;
-      }
-    }
-    .nut {
-      position: absolute;
-      height: 46px;
-      width: 46px;
-      background: url(./asset/css/i/nut-icon.png) 0 0 no-repeat;
-      background-size: 100% 100%;
-      top: 308px;
-      right: 493px;
-      animation: fadeInRight 2s both;
-    }
-    .fengche {
-      position: absolute;
-      background: url(./asset/css/i/fengche.png) 0 0 no-repeat;
-      background-size: 100% 100%;
-      width: 679px;
-      height: 476px;
-      top: 195px;
-      right: 180px;
-      animation: fadeIn 1s both 2s;
-    }
-  }
-}
 @media screen and (max-width: 1500px) {
     .css-animation{
       .blue-bg{