Skip to content

Commit

Permalink
opactiy animation
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu committed May 31, 2017
1 parent e864d9b commit 853e1da
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/common/shoplist.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="shoplist_container">
<ul v-load-more="loaderMore" v-if="!shopListArr.length" type="1">
<ul v-load-more="loaderMore" v-if="shopListArr.length" type="1">
<router-link :to="{path: 'shop', query:{geohash, id: item.id}}" v-for="item in shopListArr" tag='li' :key="item.id" class="shop_li">
<section>
<img :src="imgBaseUrl + item.image_path" class="shop_img">
Expand Down Expand Up @@ -45,7 +45,7 @@
</hgroup>
</router-link>
</ul>
<ul v-else>
<ul v-else class="animation_opactiy">
<li class="list_back_li" v-for="item in 10" :key="item">
<img src="../../images/shopback.svg" class="list_back_svg">
</li>
Expand Down Expand Up @@ -206,7 +206,7 @@ export default {
margin-right: 0.4rem;
}
.list_back_li{
height: 5.85rem;
height: 4.85rem;
.list_back_svg{
@include wh(100%, 100%)
}
Expand Down
2 changes: 1 addition & 1 deletion src/page/msite/msite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>
<div class="swiper-pagination"></div>
</div>
<img src="../../images/fl.svg" class="fl_back" v-else>
<img src="../../images/fl.svg" class="fl_back animation_opactiy" v-else>
</nav>
<div class="shop_list_container">
<header class="shop_header">
Expand Down
12 changes: 12 additions & 0 deletions src/style/common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,16 @@ html,body{

.paddingTop{
padding-top: 1.95rem;
}

@keyframes backOpacity{
0% { opacity: 1 }
25% { opacity: .5 }
50% { opacity: 1 }
75% { opacity: .5 }
100% { opacity: 1 }
}

.animation_opactiy{
animation: backOpacity 2s ease-in-out infinite;
}

0 comments on commit 853e1da

Please sign in to comment.