Commit 1380f28c authored by chenyishuai@singsingenglish.com's avatar chenyishuai@singsingenglish.com

Merge branch 'dev' of http://git.singsingenglish.com/new-sing/wechat into dev

parents 80612b8d cd4f9632
...@@ -96,8 +96,8 @@ ...@@ -96,8 +96,8 @@
<div class="trs"></div> <div class="trs"></div>
</div> </div>
<div class="borderDiv"></div> <div class="borderDiv"></div>
<img :class="{imgMonkey:true,monkeyAnimation:animationBg}" :src="img_monkey" /> <img :class="{imgMonkey:true, monkeyAnimation:animationBg}" :src="img_monkey" />
<img :class="{imgTip:true,tipAnimation:animationBg}" :src="img_tip" /> <img :class="{imgTip:true, tipAnimation:animationBg}" :src="img_tip" />
<!-- <div class="share-btn" @click="showShare()"> <!-- <div class="share-btn" @click="showShare()">
<i class="iconfont icon-pengyouquan"></i>&nbsp;&nbsp; <i class="iconfont icon-pengyouquan"></i>&nbsp;&nbsp;
<span>保存图片·分享至朋友圈</span> <span>保存图片·分享至朋友圈</span>
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
.then(canvas => { .then(canvas => {
setTimeout(() => { setTimeout(() => {
this.animationBg = true; this.animationBg = true;
},1000) },500)
let dataURL = canvas.toDataURL("image/jpg", 1.0); let dataURL = canvas.toDataURL("image/jpg", 1.0);
this.canvasData = dataURL; this.canvasData = dataURL;
}) })
...@@ -701,90 +701,90 @@ export default { ...@@ -701,90 +701,90 @@ export default {
} }
}; };
</script> </script>
<style scoped lang="less">
@import "../../util/public"; <style lang="less">
@tocurrentvw : 1/2 * @toVw; @import "../../util/public";
@tocurrentvh : 1/2 * @toVh; .imgMonkey {
.test {
position: fixed;
}
.share_close {
position: fixed;
width: 20 * @toVw;
top: 26 * @toVw;
right: 14 * @toVw;
z-index: 1301;
color: white;
font-size: 16 * @toVw;
}
.imgMonkey {
position: fixed; position: fixed;
top: 482 * @toVw; top: 482 * @toVw;
left: -60 * @toVw; left: 22 * @toVw;
z-index: 1301; z-index: 1301;
width: 55 * @toVw; width: 56 * @toVw;
pointer-events: none; pointer-events: none;
transform: translateX(-(22 + 56) * @toVw);
@keyframes imgMonkey { @keyframes imgMonkey {
from { from {
top: 482 * @toVw; transform: translateX(-(22 + 56) * @toVw);
left: -60 * @toVw;
} }
to { to {
top: 482 * @toVw; transform: translateX(0);
left: 20 * @toVw;
} }
} }
}
} .monkeyAnimation{
.monkeyAnimation{ animation: imgMonkey 0.4s ease-out;
animation: imgMonkey 0.375s ease; /*animation: imgMonkey 0.4s cubic-bezier(0, 0, 0.29, 1.58);*/
animation-fill-mode: forwards; animation-fill-mode: forwards;
} }
.imgTip {
.imgTip {
position: fixed; position: fixed;
top: 452 * @toVw;
left: 86 * @toVw; left: 86 * @toVw;
width: 267 * @toVw;
top: 482 * @toVw;
z-index: 1301; z-index: 1301;
width: 0;
pointer-events: none; pointer-events: none;
transform: scale(0.01);
opacity: 0;
transform-origin: -11vw center;
@keyframes imgTip { @keyframes imgTip {
0% { 0% {
left: 66 * @toVw; opacity: 0;
width: 0; transform: scale(0.01);
top: 452 * @toVw;
} }
30%{ 50%{
left: 86 * @toVw; opacity: 1;
width: 267 * @toVw; transform: scale(1) translateX(2vw);
top: 482 * @toVw;
} }
70%{ 65%{
left: 86 * @toVw; transform: translateX(-2vw);
width: 267 * @toVw;
top: 482 * @toVw;
} }
80% { 80% {
left: 80 * @toVw; transform: translateX(1vw);
width: 267 * @toVw;
top: 482 * @toVw;
} }
90% { 95% {
left: 90 * @toVw; transform: translateX(-1vw);
width: 267 * @toVw;
top: 482 * @toVw;
} }
100% { 100% {
left: 86 * @toVw; opacity: 1;
width: 267 * @toVw; transform: none;
top: 482 * @toVw; }
} }
} }
.tipAnimation{
animation: imgTip 1.1s 0.55s ease-out;
animation-fill-mode: forwards; animation-fill-mode: forwards;
}
</style>
<style scoped lang="less">
@import "../../util/public";
@tocurrentvw : 1/2 * @toVw;
@tocurrentvh : 1/2 * @toVh;
.test {
position: fixed;
} }
.tipAnimation{ .share_close {
animation: imgTip 0.975s 0.375s ease; position: fixed;
animation-fill-mode: forwards; width: 20 * @toVw;
top: 26 * @toVw;
right: 14 * @toVw;
z-index: 1301;
color: white;
font-size: 16 * @toVw;
} }
.share-btn { .share-btn {
position: fixed; position: fixed;
top: 510 * @toVw; top: 510 * @toVw;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment