添加英雄的gif动画

This commit is contained in:
cebgcontract 2022-09-28 19:34:35 +08:00
parent 00299a78cf
commit 81ef4eef6f
26 changed files with 36 additions and 19 deletions

BIN
src/desktop/img/home/001.gif Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
src/desktop/img/home/002.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
src/desktop/img/home/004.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 KiB

BIN
src/desktop/img/home/005.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
src/desktop/img/home/006.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 KiB

BIN
src/desktop/img/home/007.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
src/desktop/img/home/008.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
src/desktop/img/home/009.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 KiB

BIN
src/desktop/img/home/010.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 KiB

After

Width:  |  Height:  |  Size: 215 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 174 KiB

View File

@ -176,30 +176,39 @@
</div>
<div class="swiper-slide">
<img src="img/home/002.png" />
<img src="img/home/002.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/003.png" />
<img src="img/home/003.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/004.png" />
<img src="img/home/004.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/005.png" />
<img src="img/home/005.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/006.png" />
<img src="img/home/006.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/007.png" />
<img src="img/home/007.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/008.png" />
<img src="img/home/008.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/009.png" />
<img src="img/home/009.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/010.png" />
<img src="img/home/010.gif" class="aniIcon" />
</div>
</div>
</div>

View File

@ -502,11 +502,11 @@
$('.hero-item-c a').click(function () {
var bigImg = $(this).data('bigimg')
var imgDetail = $(this).data('imgdetail')
$('.hero-view')
.slideDown(250)
.find('.hero-d-p img')
.attr('src', bigImg)
$('.hero-view').find('.hero-d-data img').attr('src', '')
$('.hero-view').find('.hero-d-p img').attr('src', '')
$('.hero-view').find('.hero-d-data img').attr('src', imgDetail)
$('.hero-view').find('.hero-d-p img').attr('src', bigImg)
$('.hero-view').slideDown(250)
})
$('.hero-d-close').click(function () {
@ -517,11 +517,11 @@
var _index = $(this).index()
var bigImg = $(this).data('bigimg')
var imgDetail = $(this).data('imgdetail')
$('.weapon-view')
.slideDown(250)
.find('.hero-d-p img')
.attr('src', bigImg)
$('.weapon-view').find('.hero-d-data img').attr('src', '')
$('.weapon-view').find('.hero-d-p img').attr('src', '')
$('.weapon-view').find('.hero-d-data img').attr('src', imgDetail)
$('.weapon-view').find('.hero-d-p img').attr('src', bigImg)
$('.weapon-view').slideDown(250)
mySwiper2 = $('.weapon-silder .swiper-container-0').swiper({
// loop: true,

View File

@ -528,11 +528,10 @@
var bigImg = $(this).data('bigimg')
var imgDetail = $(this).data('imgdetail')
$('.hero-view').find('.hero-d-data img').attr('src', '')
$('.hero-view')
.slideDown(250)
.find('.hero-d-p img')
.attr('src', bigImg)
$('.hero-view').find('.hero-d-p img').attr('src', '')
$('.hero-view').find('.hero-d-p img').attr('src', bigImg)
$('.hero-view').find('.hero-d-data img').attr('src', imgDetail)
$('.hero-view').slideDown(250)
stopBodyScroll(true)
})
@ -545,11 +544,11 @@
var _index = $(this).index()
var bigImg = $(this).data('bigimg')
var imgDetail = $(this).data('imgdetail')
$('.weapon-view')
.slideDown(250)
.find('.hero-d-p img')
.attr('src', bigImg)
$('.weapon-view').find('.hero-d-p img').attr('src', '')
$('.weapon-view').find('.hero-d-data img').attr('src', '')
$('.weapon-view').find('.hero-d-p img').attr('src', bigImg)
$('.weapon-view').find('.hero-d-data img').attr('src', imgDetail)
$('.weapon-view').slideDown(250)
stopBodyScroll(true)
mySwiper2 = $('.weapon-silder .swiper-container-0').swiper({
// loop: true,

BIN
src/mobile/img/home/001.gif Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
src/mobile/img/home/002.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 KiB

BIN
src/mobile/img/home/003.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
src/mobile/img/home/004.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 KiB

BIN
src/mobile/img/home/005.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
src/mobile/img/home/006.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 848 KiB

BIN
src/mobile/img/home/007.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

BIN
src/mobile/img/home/008.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

BIN
src/mobile/img/home/009.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 KiB

BIN
src/mobile/img/home/010.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -139,35 +139,44 @@
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="imgMobile/home/001.png" />
<img src="img/home/001.png" />
<img src="img/home/001.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="imgMobile/home/002.png" />
<img src="img/home/002.png" />
<img src="img/home/002.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="imgMobile/home/003.png" />
<img src="img/home/003.png" />
<img src="img/home/003.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/004.png" />
<img src="img/home/004.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/005.png" />
<img src="img/home/005.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/006.png" />
<img src="img/home/006.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/007.png" />
<img src="img/home/007.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/008.png" />
<img src="img/home/008.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/009.png" />
<img src="img/home/009.gif" class="aniIcon" />
</div>
<div class="swiper-slide">
<img src="img/home/010.png" />
<img src="img/home/010.gif" class="aniIcon" />
</div>
</div>
</div>