V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
learnshare

微信浏览器及开发者工具的 Bug

  •  
  •   learnshare · Oct 18, 2018 · 1791 views
    This topic created in 2747 days ago, the information mentioned may be changed or developed.

    环境

    • Android 5.1.1,微信 6.7.3
    • macOS 10.14 ,微信开发者工具 1.02.1809260

    问题

    场景一

    a b {
      transform: translateX(100px);
      transition: all 0.5s ease-out;
    }
    
    a.show b {
      transform: translateX(0);
    }
    

    通过 JS 改变 a 的 class 为 show 时,b 的过渡动画完全没有。

    经尝试,断定任意 transition 均无效。

    场景二

    b {
      transform: translateX(100px);
      transition: all 0.5s ease-out;
    }
    
    b.show {
      transform: translateX(0);
    }
    

    过渡动画正常。

    其他

    使用 transform: scale()animation 导致页面帧率很低,设备发热严重。

    1 replies    2018-10-19 12:02:39 +08:00
    asadegg
        1
    asadegg  
       Oct 19, 2018
    老哥,我建议你小程序社区也发一份
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3468 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:53 · PVG 18:53 · LAX 03:53 · JFK 06:53
    ♥ Do have faith in what you're doing.