Skip to content

Commit 853e1da

Browse files
committed
opactiy animation
1 parent e864d9b commit 853e1da

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

src/components/common/shoplist.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="shoplist_container">
3-
<ul v-load-more="loaderMore" v-if="!shopListArr.length" type="1">
3+
<ul v-load-more="loaderMore" v-if="shopListArr.length" type="1">
44
<router-link :to="{path: 'shop', query:{geohash, id: item.id}}" v-for="item in shopListArr" tag='li' :key="item.id" class="shop_li">
55
<section>
66
<img :src="imgBaseUrl + item.image_path" class="shop_img">
@@ -45,7 +45,7 @@
4545
</hgroup>
4646
</router-link>
4747
</ul>
48-
<ul v-else>
48+
<ul v-else class="animation_opactiy">
4949
<li class="list_back_li" v-for="item in 10" :key="item">
5050
<img src="../../images/shopback.svg" class="list_back_svg">
5151
</li>
@@ -206,7 +206,7 @@ export default {
206206
margin-right: 0.4rem;
207207
}
208208
.list_back_li{
209-
height: 5.85rem;
209+
height: 4.85rem;
210210
.list_back_svg{
211211
@include wh(100%, 100%)
212212
}

src/page/msite/msite.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</div>
2626
<div class="swiper-pagination"></div>
2727
</div>
28-
<img src="../../images/fl.svg" class="fl_back" v-else>
28+
<img src="../../images/fl.svg" class="fl_back animation_opactiy" v-else>
2929
</nav>
3030
<div class="shop_list_container">
3131
<header class="shop_header">

src/style/common.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,16 @@ html,body{
9696

9797
.paddingTop{
9898
padding-top: 1.95rem;
99+
}
100+
101+
@keyframes backOpacity{
102+
0% { opacity: 1 }
103+
25% { opacity: .5 }
104+
50% { opacity: 1 }
105+
75% { opacity: .5 }
106+
100% { opacity: 1 }
107+
}
108+
109+
.animation_opactiy{
110+
animation: backOpacity 2s ease-in-out infinite;
99111
}

0 commit comments

Comments
 (0)