wangzhonglu преди 1 година
родител
ревизия
5483f01e05
променени са 3 файла, в които са добавени 78 реда и са изтрити 22 реда
  1. 49
    0
      css/comm.css
  2. 23
    22
      index.html
  3. 6
    0
      js/transform.js

+ 49
- 0
css/comm.css Целия файл

@@ -53,6 +53,7 @@ body {
53 53
 .header_root.bg_white {
54 54
   color: #333;
55 55
   background-color: #fff;
56
+  box-shadow: 0 0 1rem 0.4rem rgba(0, 0, 0, 0.082);
56 57
 }
57 58
 .header_root:hover {
58 59
   color: #333;
@@ -89,4 +90,52 @@ body {
89 90
 .header_stitle {
90 91
   padding-top: 0.3rem;
91 92
   font-size: 0.16rem;
93
+}
94
+/* 动画 */
95
+/* 向下移动30像素 */
96
+.translateY_30 {
97
+  -webkit-transform: translateY(30px);
98
+  -ms-transform: translateY(30px);
99
+  transform: translateY(30px);
100
+  -webkit-transition: opacity 1s, -webkit-transform 1s;
101
+  transition: opacity 1s, -webkit-transform 1s;
102
+  -o-transition: transform 1s, opacity 1s;
103
+  transition: transform 1s, opacity 1s;
104
+  transition: transform 1s, opacity 1s, -webkit-transform 1s;
105
+  opacity: 0;
106
+  -webkit-transition-delay: 0.5s;
107
+  -o-transition-delay: 0.5s;
108
+  transition-delay: 0.5s;
109
+}
110
+/* 旋转图片 */
111
+@-webkit-keyframes Rotimg {
112
+  0% {
113
+      transform: rotateY(0deg);
114
+  }
115
+
116
+  to {
117
+      transform: rotateY(360deg)
118
+  }
119
+}
120
+
121
+@keyframes Rotimg {
122
+  0% {
123
+      transform: rotateY(0deg);
124
+  }
125
+
126
+  to {
127
+      transform: rotateY(360deg)
128
+  }
129
+}
130
+
131
+.rotate_img {
132
+  -webkit-animation: Rotimg 2s linear;
133
+  animation: Rotimg 2s linear;
134
+}
135
+/* 还原 */
136
+.original_point {
137
+  -webkit-transform: none;
138
+  -ms-transform: none;
139
+  transform: none;
140
+  opacity: 1;
92 141
 }

+ 23
- 22
index.html Целия файл

@@ -69,43 +69,43 @@
69 69
       </div>
70 70
     </div>
71 71
     <div class="home_main">
72
-      <div class="home_superiority_title">我们的优势</div>
72
+      <div class="home_superiority_title translateY_30">我们的优势</div>
73 73
       <div class="home_superiority_info">
74
-        <div class="superiority_item">
74
+        <div class="superiority_item translateY_30">
75 75
           <img
76
-            class="superiority_item_img"
76
+            class="superiority_item_img original_img"
77 77
             src="./img/home/superiority/datong.png"
78 78
           />
79
-          <div class="superiority_item_title">打通教育全流程</div>
80
-          <div class="superiority_item_stitle">
79
+          <div class="superiority_item_title translateY_30">打通教育全流程</div>
80
+          <div class="superiority_item_stitle translateY_30">
81 81
             为K12全流程、全方位<br />提供智能服务
82 82
           </div>
83 83
         </div>
84
-        <div class="superiority_item">
84
+        <div class="superiority_item translateY_30">
85 85
           <img
86
-            class="superiority_item_img"
86
+            class="superiority_item_img original_img"
87 87
             src="./img/home/superiority/zhuanzhu.png"
88 88
           />
89
-          <div class="superiority_item_title">专注K12智慧教育</div>
90
-          <div class="superiority_item_stitle">
89
+          <div class="superiority_item_title translateY_30">专注K12智慧教育</div>
90
+          <div class="superiority_item_stitle translateY_30">
91 91
             为教育行业提供全方位<br />实时音频解决方案
92 92
           </div>
93 93
         </div>
94
-        <div class="superiority_item">
94
+        <div class="superiority_item translateY_30">
95 95
           <img
96
-            class="superiority_item_img"
96
+            class="superiority_item_img original_img"
97 97
             src="./img/home/superiority/shuju.png"
98 98
           />
99
-          <div class="superiority_item_title">数据安全及稳定性</div>
100
-          <div class="superiority_item_stitle">数据安全及稳定性有保障</div>
99
+          <div class="superiority_item_title translateY_30">数据安全及稳定性</div>
100
+          <div class="superiority_item_stitle translateY_30">数据安全及稳定性有保障</div>
101 101
         </div>
102
-        <div class="superiority_item">
102
+        <div class="superiority_item translateY_30">
103 103
           <img
104
-            class="superiority_item_img"
104
+            class="superiority_item_img original_img"
105 105
             src="./img/home/superiority/fuwu.png"
106 106
           />
107
-          <div class="superiority_item_title">服务保障</div>
108
-          <div class="superiority_item_stitle">全流程、全方位服务保障</div>
107
+          <div class="superiority_item_title translateY_30">服务保障</div>
108
+          <div class="superiority_item_stitle translateY_30">全流程、全方位服务保障</div>
109 109
         </div>
110 110
       </div>
111 111
       <div class="home_scheme_info">
@@ -172,32 +172,32 @@
172 172
     </div>
173 173
     <div class="home_serve">
174 174
       <div class="home_serve_main">
175
-        <div class="home_serve_title">
175
+        <div class="home_serve_title translateY_30">
176 176
           多项服务保障<br />让学校、老师、学生无忧
177 177
         </div>
178 178
         <div class="home_serve_item_box">
179
-          <div class="home_serve_item">
179
+          <div class="home_serve_item translateY_30">
180 180
             <img src="./img/home/serve/hailiangshujuziyuan.png" />
181 181
             <div class="home_serve_item_title">海量数据资源</div>
182 182
             <div class="home_serve_item_stitle">
183 183
               优质海量资源,教师不需要重新收集整理
184 184
             </div>
185 185
           </div>
186
-          <div class="home_serve_item">
186
+          <div class="home_serve_item translateY_30">
187 187
             <img src="./img/home/serve/jingzhunhuaxiang.png" />
188 188
             <div class="home_serve_item_title">精准画像</div>
189 189
             <div class="home_serve_item_stitle">
190 190
               全程采集教学数据,深度挖掘开发精准画像,指导师生发展
191 191
             </div>
192 192
           </div>
193
-          <div class="home_serve_item">
193
+          <div class="home_serve_item translateY_30">
194 194
             <img src="./img/home/serve/jiaoxueshujufenxi.png" />
195 195
             <div class="home_serve_item_title">教学数据分析</div>
196 196
             <div class="home_serve_item_stitle">
197 197
               薄弱知识点,归纳错因,体现能力变化曲线,帮助学生针对性训练
198 198
             </div>
199 199
           </div>
200
-          <div class="home_serve_item">
200
+          <div class="home_serve_item translateY_30">
201 201
             <img src="./img/home/serve/zhihuipiyuejishu.png" />
202 202
             <div class="home_serve_item_title">智慧批阅技术</div>
203 203
             <div class="home_serve_item_stitle">
@@ -212,5 +212,6 @@
212 212
     <script src="./librarys/swiper@3.4.2/swiper.jquery.min.js"></script>
213 213
     <script src="../js/header.js"></script>
214 214
     <script src="./js/index.js"></script>
215
+    <script src="./js/transform.js"></script>
215 216
   </body>
216 217
 </html>

+ 6
- 0
js/transform.js Целия файл

@@ -0,0 +1,6 @@
1
+$(function () {
2
+  setTimeout(function() {
3
+    $(".translateY_30").addClass("original_point");
4
+    $(".original_img").addClass("rotate_img");
5
+  }, 500);
6
+});

Loading…
Отказ
Запис