css3 - iphone6 plus 微信浏览器下transition动画无效求破
巴扎黑
巴扎黑 2017-04-17 11:16:22
0
6
805

iphone6 plus 微信浏览器下transition动画无效
但在safari下是ok的,什么原因

  opacity: 0;
  background-color: #378ef1;
  transform: translateY(100%);
  -webkit-transform: translateY(100%);
  transition-property: transform, opacity, -webkit-transform;
  -webkit-transition-property: transform, opacity, -webkit-transform;
  transition-duration: 0.4s;
  -webkit-transition-duration: 0.4s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -webkit-transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);

active

  transform: translateY(0);
  -webkit-transform: translateY(0);
  opacity: 1;
巴扎黑
巴扎黑

reply all(6)
迷茫

If you don’t post the code, how can you break it?

伊谢尔伦

What about css prefixes? Written?

迷茫

WeChat uses the "X5 kernel" of QQ browser, and needs to add -webkit-transition to support transition.

伊谢尔伦

Encountered the same problem. Adding the webkit prefix still doesn't solve the problem
Other test machines including iPhone 6 can work, but the 6s plus I remember can't

Update: Caching problem, it has been verified that adding a prefix can solve it

伊谢尔伦

It's an opacity problem. It will be easier to use if you remove it

阿神

I don’t know if you have the same error as me~
Please put the code for calling animation in the window.onload = function(){} method~~

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template