做爰高潮a片〈毛片〉,尤物av天堂一区二区在线观看,一本久久A久久精品VR综合,添女人荫蒂全部过程av

最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當前位置: 首頁 - 科技 - 知識百科 - 正文

微信小程序實現彈出菜單動畫

來源:懂視網 責編:小采 時間:2020-11-27 21:54:48
文檔

微信小程序實現彈出菜單動畫

微信小程序實現彈出菜單動畫:微信小程序動畫之彈出菜單,供大家參考,具體內容如下 效果圖 js: Page({ data: { isPopping: false, animPlus: {}, animCollect: {}, animTranspond: {}, animInput: {}, animCloud:{}, aninWrite:{}, },
推薦度:
導讀微信小程序實現彈出菜單動畫:微信小程序動畫之彈出菜單,供大家參考,具體內容如下 效果圖 js: Page({ data: { isPopping: false, animPlus: {}, animCollect: {}, animTranspond: {}, animInput: {}, animCloud:{}, aninWrite:{}, },

微信小程序動畫之彈出菜單,供大家參考,具體內容如下

效果圖

js:

Page({
 data: {
 isPopping: false,
 animPlus: {},
 animCollect: {},
 animTranspond: {},
 animInput: {},
 animCloud:{},
 aninWrite:{},
 },
 //點擊彈出
 plus: function () {
 if (this.data.isPopping) {
 //縮回動畫
 this.popp();
 this.setData({
 isPopping: false
 })
 } else if (!this.data.isPopping) {
 //彈出動畫
 this.takeback();
 this.setData({
 isPopping: true
 })
 }
 },
 input: function () {
 console.log("input")
 },
 transpond: function () {
 console.log("transpond")
 },
 collect: function () {
 console.log("collect")
 },
 cloud:function(){
 console.log("cloud")
 },
 write: function () {
 console.log("cloud")
 },


 //彈出動畫
 popp: function () {
 //plus順時針旋轉
 var animationPlus = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationcollect = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationTranspond = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationInput = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationCloud = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationWrite = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 animationPlus.rotateZ(180).step();
 animationcollect.translate(-90, -100).rotateZ(180).opacity(1).step();
 animationTranspond.translate(-140, 0).rotateZ(180).opacity(1).step();
 animationInput.translate(-90, 100).rotateZ(180).opacity(1).step();
 animationCloud.translate(0, 135).rotateZ(180).opacity(1).step();
 animationWrite.translate(0, -135).rotateZ(180).opacity(1).step();
 this.setData({
 animPlus: animationPlus.export(),
 animCollect: animationcollect.export(),
 animTranspond: animationTranspond.export(),
 animInput: animationInput.export(),
 animCloud: animationCloud.export(),
 animWrite: animationWrite.export(),
 })
 },
 //收回動畫
 takeback: function () {
 //plus逆時針旋轉
 var animationPlus = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationcollect = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationTranspond = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationInput = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationCloud = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 var animationWrite = wx.createAnimation({
 duration: 400,
 timingFunction: 'ease-out'
 })
 animationPlus.rotateZ(0).step();
 animationcollect.translate(0, 0).rotateZ(0).opacity(0).step();
 animationTranspond.translate(0, 0).rotateZ(0).opacity(0).step();
 animationInput.translate(0, 0).rotateZ(0).opacity(0).step();
 animationCloud.translate(0, 0).rotateZ(0).opacity(0).step();
 animationWrite.translate(0, 0).rotateZ(0).opacity(0).step();
 this.setData({
 animPlus: animationPlus.export(),
 animCollect: animationcollect.export(),
 animTranspond: animationTranspond.export(),
 animInput: animationInput.export(),
 animCloud: animationCloud.export(),
 animWrite: animationWrite.export(),
 })
 },


 onLoad: function (options) {
 // 生命周期函數--監聽頁面加載
 },
 onReady: function () {
 // 生命周期函數--監聽頁面初次渲染完成
 },
 onShow: function () {
 // 生命周期函數--監聽頁面顯示
 },
 onHide: function () {
 // 生命周期函數--監聽頁面隱藏
 },
 onUnload: function () {
 // 生命周期函數--監聽頁面卸載
 },
 onPullDownRefresh: function () {
 // 頁面相關事件處理函數--監聽用戶下拉動作
 },
 onReachBottom: function () {
 // 頁面上拉觸底事件的處理函數
 },
 onShareAppMessage: function () {
 // 用戶點擊右上角分享
 return {
 title: 'title', // 分享標題
 desc: 'desc', // 分享描述
 path: 'path' // 分享路徑
 }
 }
})

wxml:

<view>
 <image src="../../image/1.png" class="img-style" animation="{{animWrite}}" bindtap="write"></image>
 <image src="../../image/4.png" class="img-style" animation="{{animCollect}}" bindtap="collect"></image>
 <image src="../../image/2.png" class="img-style" animation="{{animTranspond}}" bindtap="transpond"></image>
 <image src="../../image/3.png" class="img-style" animation="{{animInput}}" bindtap="input"></image>
 <image src="../../image/5.png" class="img-style" animation="{{animCloud}}" bindtap="cloud"></image>
 <image src="../../image/6.png" class="img-switch-style" animation="{{animPlus}}" bindtap="plus"></image>
</view>

wxss:

.img-switch-style {
 height: 120rpx;
 width: 120rpx;
 position: absolute;
 bottom: 250rpx;
 right: 100rpx;
 z-index: 100;
}
 
.img-style {
 height: 120rpx;
 width: 120rpx;
 position: absolute;
 bottom: 250rpx;
 right: 100rpx;
 opacity: 0;
}

聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

微信小程序實現彈出菜單動畫

微信小程序實現彈出菜單動畫:微信小程序動畫之彈出菜單,供大家參考,具體內容如下 效果圖 js: Page({ data: { isPopping: false, animPlus: {}, animCollect: {}, animTranspond: {}, animInput: {}, animCloud:{}, aninWrite:{}, },
推薦度:
  • 熱門焦點

最新推薦

猜你喜歡

熱門推薦

專題
Top
主站蜘蛛池模板: 夹江县| 镇平县| 诸暨市| 广汉市| 英吉沙县| 始兴县| 佛坪县| 射阳县| 芦山县| 永寿县| 冀州市| 茂名市| 安乡县| 八宿县| 咸宁市| 新建县| 揭西县| 乐亭县| 温州市| 东至县| 成安县| 临颍县| 南乐县| 桐庐县| 阿拉善盟| 宽甸| 环江| 隆林| 城口县| 栾川县| 巴林右旗| 深水埗区| 三穗县| 夏津县| 玉田县| 潢川县| 平顺县| 贵州省| 靖江市| 温泉县| 金门县|