Commit 14d5eaa8548f5bf6280d6ffea454ad7c3114226f
1 parent
b9dfb040
swiper
Showing
6 changed files
with
202 additions
and
34 deletions
css/swiper.css
@@ -22,6 +22,7 @@ | @@ -22,6 +22,7 @@ | ||
22 | width: 1200px; | 22 | width: 1200px; |
23 | height: 100%; | 23 | height: 100%; |
24 | margin: 0 auto; | 24 | margin: 0 auto; |
25 | + position: relative; | ||
25 | } | 26 | } |
26 | .swiper-container-no-flexbox .swiper-slide { | 27 | .swiper-container-no-flexbox .swiper-slide { |
27 | float: left; | 28 | float: left; |
images/parkpoint-blue.png
0 → 100755
1.12 KB
images/parkpoint-green.png
0 → 100755
1.14 KB
index.html
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | <meta name="description" content=""> | 7 | <meta name="description" content=""> |
8 | <meta name="viewport" content="width=device-width, initial-scale=1"> | 8 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
9 | 9 | ||
10 | - <link type="text/css" rel="icon" href="img/header-logo1.png"> | 10 | + <link type="text/css" rel="icon" href="images/logo.png"> |
11 | <!-- Place favicon.ico in the root directory --> | 11 | <!-- Place favicon.ico in the root directory --> |
12 | 12 | ||
13 | <!-- Google Fonts --> | 13 | <!-- Google Fonts --> |
@@ -118,20 +118,29 @@ | @@ -118,20 +118,29 @@ | ||
118 | 118 | ||
119 | <div class="swiper-container"> | 119 | <div class="swiper-container"> |
120 | <div class="swiper-wrapper"> | 120 | <div class="swiper-wrapper"> |
121 | - <!--<div class="swiper-slide swiper-slide-1" >--> | ||
122 | - <!--<div class="swiper-slide-main">--> | ||
123 | - <!--<div class="swiper-slide-large">物联改变时代 智慧停车 从现在开始</div>--> | ||
124 | - <!--<div class="swiper-slide-middle">快速、高效、不停车、不拥堵</div>--> | ||
125 | - <!--<div class="swiper-slide-more">了解更多</div>--> | ||
126 | - <!--</div>--> | ||
127 | - <!--</div>--> | ||
128 | - <!--<div class="swiper-slide swiper-slide-2">--> | ||
129 | - <!--<div class="swiper-slide-main swiper-slide-main-2">--> | ||
130 | - <!--<div class="swiper-slide-large">云端saas服务,大并发高可用架构</div>--> | ||
131 | - <!--<div class="swiper-slide-middle">为您的数字资产保驾护航 数据全方位呵护</div>--> | ||
132 | - <!--<div class="swiper-slide-more">了解更多</div>--> | ||
133 | - <!--</div>--> | ||
134 | - <!--</div>--> | 121 | + <div class="swiper-slide swiper-slide-1" > |
122 | + <div class="swiper-slide-main"> | ||
123 | + <div class="park-point"> | ||
124 | + <div class="parkpoint1 parkpoint"></div> | ||
125 | + <div class="parkpoint2 parkpoint"></div> | ||
126 | + <div class="parkpoint3 parkpoint"></div> | ||
127 | + <div class="parkpoint4 parkpoint"></div> | ||
128 | + <div class="parkpoint5 parkpoint"></div> | ||
129 | + <div class="parkpoint6 parkpoint"></div> | ||
130 | + <div class="parkpoint7 parkpoint"></div> | ||
131 | + </div> | ||
132 | + <div class="swiper-slide-large">物联改变时代 智慧停车 从现在开始</div> | ||
133 | + <div class="swiper-slide-middle">快速、高效、不停车、不拥堵</div> | ||
134 | + <div class="swiper-slide-more">了解更多</div> | ||
135 | + </div> | ||
136 | + </div> | ||
137 | + <div class="swiper-slide swiper-slide-2"> | ||
138 | + <div class="swiper-slide-main swiper-slide-main-2"> | ||
139 | + <div class="swiper-slide-large">云端saas服务,大并发高可用架构</div> | ||
140 | + <div class="swiper-slide-middle">为您的数字资产保驾护航 数据全方位呵护</div> | ||
141 | + <div class="swiper-slide-more">了解更多</div> | ||
142 | + </div> | ||
143 | + </div> | ||
135 | <div class="swiper-slide swiper-slide-3"> | 144 | <div class="swiper-slide swiper-slide-3"> |
136 | <div class="swiper-slide-main swiper-slide-main-3"> | 145 | <div class="swiper-slide-main swiper-slide-main-3"> |
137 | <div class="swiper-slide-large">全方位解决方案 全数据云服务 全时空可视化</div> | 146 | <div class="swiper-slide-large">全方位解决方案 全数据云服务 全时空可视化</div> |
@@ -931,6 +940,6 @@ | @@ -931,6 +940,6 @@ | ||
931 | <script type="text/javascript" src="js/jquery.counterup.min.js"></script> | 940 | <script type="text/javascript" src="js/jquery.counterup.min.js"></script> |
932 | <script type="text/javascript" src="js/swiper.js"></script> | 941 | <script type="text/javascript" src="js/swiper.js"></script> |
933 | <script type="text/javascript" src="js/gmaps.min.js"></script> | 942 | <script type="text/javascript" src="js/gmaps.min.js"></script> |
934 | -<script type="text/javascript" src="js/main.js"></script> | 943 | +<script type="text/javascript" src="js/main.js?a=1"></script> |
935 | </body> | 944 | </body> |
936 | </html> | 945 | </html> |
js/main.js
@@ -179,21 +179,21 @@ | @@ -179,21 +179,21 @@ | ||
179 | }); | 179 | }); |
180 | }); | 180 | }); |
181 | 181 | ||
182 | - // var mySwiper = new Swiper ('.swiper-container', { | ||
183 | - // direction: 'horizontal', | ||
184 | - // loop: true, | ||
185 | - // speed: 500, //设置轮播时长 可以不设置 会有个默认值 | ||
186 | - // autoplay: true,//可选选项,自动滑动 | ||
187 | - // // // 如果需要分页器 | ||
188 | - // // pagination: { | ||
189 | - // // el: '.swiper-pagination', | ||
190 | - // // }, | ||
191 | - // autoplay: { | ||
192 | - // disableOnInteraction: false, //点击后继续轮播(这个很重要) | ||
193 | - // delay: 1000, //自动轮播的每次的时间 可以不设置 会有个默认值 | ||
194 | - // }, | ||
195 | - // // 如果需要前进后退按钮 | ||
196 | - // | ||
197 | - // | ||
198 | - // }) | 182 | + var mySwiper = new Swiper ('.swiper-container', { |
183 | + direction: 'horizontal', | ||
184 | + loop: true, | ||
185 | + speed: 500, //设置轮播时长 可以不设置 会有个默认值 | ||
186 | + autoplay: true,//可选选项,自动滑动 | ||
187 | + // 如果需要分页器 | ||
188 | + pagination: { | ||
189 | + el: '.swiper-pagination', | ||
190 | + }, | ||
191 | + autoplay: { | ||
192 | + disableOnInteraction: false, //点击后继续轮播(这个很重要) | ||
193 | + delay: 1000, //自动轮播的每次的时间 可以不设置 会有个默认值 | ||
194 | + }, | ||
195 | + // 如果需要前进后退按钮 | ||
196 | + | ||
197 | + | ||
198 | + }) | ||
199 | 199 |
style.css
@@ -392,7 +392,165 @@ a:hover{ | @@ -392,7 +392,165 @@ a:hover{ | ||
392 | width: 100%; | 392 | width: 100%; |
393 | height: 600px; | 393 | height: 600px; |
394 | } | 394 | } |
395 | - | 395 | +.parkpoint{ |
396 | + position: absolute; | ||
397 | + width: 25px; | ||
398 | + height: 39px; | ||
399 | +} | ||
400 | +@keyframes breath{ | ||
401 | + from{opacity:0.1} | ||
402 | + 50%{opacity:1} | ||
403 | + to{opacity:0.1} | ||
404 | +} | ||
405 | +@-moz-keyframes breath{ | ||
406 | + from{opacity:0.1} | ||
407 | + 50%{opacity:1} | ||
408 | + to{opacity:0.1} | ||
409 | +} | ||
410 | +@-webkit-keyframes breath{ | ||
411 | + from{opacity:0.1} | ||
412 | + 50%{opacity:1} | ||
413 | + to{opacity:0.1} | ||
414 | +} | ||
415 | +.parkpoint1,.parkpoint2,.parkpoint3{ | ||
416 | + background: url("images/parkpoint-green.png") no-repeat; | ||
417 | +} | ||
418 | +.parkpoint4,.parkpoint5,.parkpoint6,.parkpoint7{ | ||
419 | + background: url("images/parkpoint-blue.png") no-repeat; | ||
420 | +} | ||
421 | +.parkpoint1{ | ||
422 | + left: 100px; | ||
423 | + top:428px; | ||
424 | + animation-name: breath; | ||
425 | + animation-duration: 3s; | ||
426 | + animation-delay:0.1s; | ||
427 | + animation-timing-function: ease-in-out; | ||
428 | + animation-iteration-count: infinite; | ||
429 | + -webkit-animation-name: breath; | ||
430 | + -webkit-animation-duration: 3s; | ||
431 | + -webkit-animation-delay:0.1s; | ||
432 | + -webkit-animation-timing-function: ease-in-out; | ||
433 | + -webkit-animation-iteration-count: infinite; | ||
434 | + -moz-animation-name: breath; | ||
435 | + -moz-animation-duration: 3s; | ||
436 | + -moz-animation-delay:0.1s; | ||
437 | + -moz-animation-timing-function: ease-in-out; | ||
438 | + -moz-animation-iteration-count: infinite; | ||
439 | +} | ||
440 | +.parkpoint2{ | ||
441 | + left: 500px; | ||
442 | + top:341px; | ||
443 | + animation-name: breath; | ||
444 | + animation-duration: 3s; | ||
445 | + animation-delay:0.2s; | ||
446 | + animation-timing-function: ease-in-out; | ||
447 | + animation-iteration-count: infinite; | ||
448 | + -webkit-animation-name: breath; | ||
449 | + -webkit-animation-duration: 3s; | ||
450 | + -webkit-animation-delay:0.2s; | ||
451 | + -webkit-animation-timing-function: ease-in-out; | ||
452 | + -webkit-animation-iteration-count: infinite; | ||
453 | + -moz-animation-name: breath; | ||
454 | + -moz-animation-duration: 3s; | ||
455 | + -moz-animation-delay:0.2s; | ||
456 | + -moz-animation-timing-function: ease-in-out; | ||
457 | + -moz-animation-iteration-count: infinite; | ||
458 | +} | ||
459 | +.parkpoint3{ | ||
460 | + left: 700px; | ||
461 | + top:97px; | ||
462 | + animation-name: breath; | ||
463 | + animation-duration: 3s; | ||
464 | + animation-delay:0.3s; | ||
465 | + animation-timing-function: ease-in-out; | ||
466 | + animation-iteration-count: infinite; | ||
467 | + -webkit-animation-name: breath; | ||
468 | + -webkit-animation-duration: 3s; | ||
469 | + -webkit-animation-delay:0.3s; | ||
470 | + -webkit-animation-timing-function: ease-in-out; | ||
471 | + -webkit-animation-iteration-count: infinite; | ||
472 | + -moz-animation-name: breath; | ||
473 | + -moz-animation-duration: 3s; | ||
474 | + -moz-animation-delay:0.3s; | ||
475 | + -moz-animation-timing-function: ease-in-out; | ||
476 | + -moz-animation-iteration-count: infinite; | ||
477 | +} | ||
478 | +.parkpoint4{ | ||
479 | + left: 700px; | ||
480 | + top:371px; | ||
481 | + animation-name: breath; | ||
482 | + animation-duration: 3s; | ||
483 | + animation-delay:0.4s; | ||
484 | + animation-timing-function: ease-in-out; | ||
485 | + animation-iteration-count: infinite; | ||
486 | + -webkit-animation-name: breath; | ||
487 | + -webkit-animation-duration: 3s; | ||
488 | + -webkit-animation-delay:0.4s; | ||
489 | + -webkit-animation-timing-function: ease-in-out; | ||
490 | + -webkit-animation-iteration-count: infinite; | ||
491 | + -moz-animation-name: breath; | ||
492 | + -moz-animation-duration: 3s; | ||
493 | + -moz-animation-delay:0.4s; | ||
494 | + -moz-animation-timing-function: ease-in-out; | ||
495 | + -moz-animation-iteration-count: infinite; | ||
496 | +} | ||
497 | +.parkpoint5{ | ||
498 | + left: 800px; | ||
499 | + top:442px; | ||
500 | + animation-name: breath; | ||
501 | + animation-duration: 3s; | ||
502 | + animation-delay:0.5s; | ||
503 | + animation-timing-function: ease-in-out; | ||
504 | + animation-iteration-count: infinite; | ||
505 | + -webkit-animation-name: breath; | ||
506 | + -webkit-animation-duration: 3s; | ||
507 | + -webkit-animation-delay:0.5s; | ||
508 | + -webkit-animation-timing-function: ease-in-out; | ||
509 | + -webkit-animation-iteration-count: infinite; | ||
510 | + -moz-animation-name: breath; | ||
511 | + -moz-animation-duration: 3s; | ||
512 | + -moz-animation-delay:0.5s; | ||
513 | + -moz-animation-timing-function: ease-in-out; | ||
514 | + -moz-animation-iteration-count: infinite; | ||
515 | +} | ||
516 | +.parkpoint6{ | ||
517 | + left: 850px; | ||
518 | + top:230px; | ||
519 | + animation-name: breath; | ||
520 | + animation-duration: 3s; | ||
521 | + animation-delay:0.6s; | ||
522 | + animation-timing-function: ease-in-out; | ||
523 | + animation-iteration-count: infinite; | ||
524 | + -webkit-animation-name: breath; | ||
525 | + -webkit-animation-duration: 3s; | ||
526 | + -webkit-animation-delay:0.6s; | ||
527 | + -webkit-animation-timing-function: ease-in-out; | ||
528 | + -webkit-animation-iteration-count: infinite; | ||
529 | + -moz-animation-name: breath; | ||
530 | + -moz-animation-duration: 3s; | ||
531 | + -moz-animation-delay:0.6s; | ||
532 | + -moz-animation-timing-function: ease-in-out; | ||
533 | + -moz-animation-iteration-count: infinite; | ||
534 | +} | ||
535 | +.parkpoint7{ | ||
536 | + left: 950px; | ||
537 | + top:274px; | ||
538 | + animation-name: breath; | ||
539 | + animation-duration: 3s; | ||
540 | + animation-delay:0.7s; | ||
541 | + animation-timing-function: ease-in-out; | ||
542 | + animation-iteration-count: infinite; | ||
543 | + -webkit-animation-name: breath; | ||
544 | + -webkit-animation-duration: 3s; | ||
545 | + -webkit-animation-delay:0.7s; | ||
546 | + -webkit-animation-timing-function: ease-in-out; | ||
547 | + -webkit-animation-iteration-count: infinite; | ||
548 | + -moz-animation-name: breath; | ||
549 | + -moz-animation-duration: 3s; | ||
550 | + -moz-animation-delay:0.7s; | ||
551 | + -moz-animation-timing-function: ease-in-out; | ||
552 | + -moz-animation-iteration-count: infinite; | ||
553 | +} | ||
396 | /*=================== | 554 | /*=================== |
397 | End swiper CSS | 555 | End swiper CSS |
398 | =====================*/ | 556 | =====================*/ |