• <fieldset id="8imwq"><menu id="8imwq"></menu></fieldset>
  • <bdo id="8imwq"><input id="8imwq"></input></bdo>
    最新文章專(zhuān)題視頻專(zhuān)題問(wèn)答1問(wèn)答10問(wèn)答100問(wèn)答1000問(wèn)答2000關(guān)鍵字專(zhuān)題1關(guān)鍵字專(zhuān)題50關(guān)鍵字專(zhuān)題500關(guān)鍵字專(zhuān)題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關(guān)鍵字專(zhuān)題關(guān)鍵字專(zhuān)題tag2tag3文章專(zhuān)題文章專(zhuān)題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專(zhuān)題3
    問(wèn)答文章1 問(wèn)答文章501 問(wèn)答文章1001 問(wèn)答文章1501 問(wèn)答文章2001 問(wèn)答文章2501 問(wèn)答文章3001 問(wèn)答文章3501 問(wèn)答文章4001 問(wèn)答文章4501 問(wèn)答文章5001 問(wèn)答文章5501 問(wèn)答文章6001 問(wèn)答文章6501 問(wèn)答文章7001 問(wèn)答文章7501 問(wèn)答文章8001 問(wèn)答文章8501 問(wèn)答文章9001 問(wèn)答文章9501
    當(dāng)前位置: 首頁(yè) - 科技 - 知識(shí)百科 - 正文

    微信小程序?qū)崿F(xiàn)彈出菜單動(dòng)畫(huà)

    來(lái)源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-27 21:54:48
    文檔

    微信小程序?qū)崿F(xiàn)彈出菜單動(dòng)畫(huà)

    微信小程序?qū)崿F(xiàn)彈出菜單動(dòng)畫(huà):微信小程序動(dòng)畫(huà)之彈出菜單,供大家參考,具體內(nèi)容如下 效果圖 js: Page({ data: { isPopping: false, animPlus: {}, animCollect: {}, animTranspond: {}, animInput: {}, animCloud:{}, aninWrite:{}, },
    推薦度:
    導(dǎo)讀微信小程序?qū)崿F(xiàn)彈出菜單動(dòng)畫(huà):微信小程序動(dòng)畫(huà)之彈出菜單,供大家參考,具體內(nèi)容如下 效果圖 js: Page({ data: { isPopping: false, animPlus: {}, animCollect: {}, animTranspond: {}, animInput: {}, animCloud:{}, aninWrite:{}, },

    微信小程序動(dòng)畫(huà)之彈出菜單,供大家參考,具體內(nèi)容如下

    效果圖

    js:

    Page({
     data: {
     isPopping: false,
     animPlus: {},
     animCollect: {},
     animTranspond: {},
     animInput: {},
     animCloud:{},
     aninWrite:{},
     },
     //點(diǎn)擊彈出
     plus: function () {
     if (this.data.isPopping) {
     //縮回動(dòng)畫(huà)
     this.popp();
     this.setData({
     isPopping: false
     })
     } else if (!this.data.isPopping) {
     //彈出動(dòng)畫(huà)
     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")
     },
    
    
     //彈出動(dòng)畫(huà)
     popp: function () {
     //plus順時(shí)針旋轉(zhuǎn)
     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(),
     })
     },
     //收回動(dòng)畫(huà)
     takeback: function () {
     //plus逆時(shí)針旋轉(zhuǎn)
     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) {
     // 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面加載
     },
     onReady: function () {
     // 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面初次渲染完成
     },
     onShow: function () {
     // 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面顯示
     },
     onHide: function () {
     // 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面隱藏
     },
     onUnload: function () {
     // 生命周期函數(shù)--監(jiān)聽(tīng)頁(yè)面卸載
     },
     onPullDownRefresh: function () {
     // 頁(yè)面相關(guān)事件處理函數(shù)--監(jiān)聽(tīng)用戶(hù)下拉動(dòng)作
     },
     onReachBottom: function () {
     // 頁(yè)面上拉觸底事件的處理函數(shù)
     },
     onShareAppMessage: function () {
     // 用戶(hù)點(diǎn)擊右上角分享
     return {
     title: 'title', // 分享標(biāo)題
     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;
    }
    

    聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

    文檔

    微信小程序?qū)崿F(xiàn)彈出菜單動(dòng)畫(huà)

    微信小程序?qū)崿F(xiàn)彈出菜單動(dòng)畫(huà):微信小程序動(dòng)畫(huà)之彈出菜單,供大家參考,具體內(nèi)容如下 效果圖 js: Page({ data: { isPopping: false, animPlus: {}, animCollect: {}, animTranspond: {}, animInput: {}, animCloud:{}, aninWrite:{}, },
    推薦度:
    標(biāo)簽: 小程序 微信小程序 菜單
    • 熱門(mén)焦點(diǎn)

    最新推薦

    猜你喜歡

    熱門(mén)推薦

    專(zhuān)題
    Top
    主站蜘蛛池模板: 99久久免费国产精精品| 亚洲国产精品一区二区第一页| 亚洲欧美国产∧v精品综合网| 三级高清精品国产| 久久久亚洲精品蜜桃臀| 亚洲精品国精品久久99热| 亚洲级αV无码毛片久久精品| 久久se精品一区精品二区| 久久免费精品一区二区| 99久久99久久精品国产| 国产vA免费精品高清在线观看| 国产精品亚洲综合一区| 久久精品无码专区免费| 久久国产精品久久精品国产| 人妻熟妇乱又伦精品视频 | 精品久久无码中文字幕| 97久久精品国产精品青草| 亚洲精品成人a在线观看| 国产精品一区三区| 91精品国产91久久久久久青草| 大伊香蕉精品一区视频在线| 国产精品福利在线观看免费不卡| 久久中文精品无码中文字幕| 91久久精品电影| 国内精品久久久久| 2022国内精品免费福利视频 | 亚洲国产精品久久久天堂| 欧美日韩精品| 99精品国产丝袜在线拍国语| 无码欧精品亚洲日韩一区| 99久久成人国产精品免费| 精品国偷自产在线| 国内少妇偷人精品视频免费| 久久66热人妻偷产精品9| 亚洲国产精品国自产电影| 亚洲国产成人精品女人久久久 | 久久99热这里只有精品国产| 自拍偷自拍亚洲精品情侣| 久久国产乱子伦精品免费强| 国产精品对白交换视频| 久久精品国产亚洲一区二区三区|