简体   繁体   English

翻转动画-CSS-移动浏览器

[英]Flip Animation - CSS - Mobile Browsers

I created a Fiddle: 我创建了一个小提琴:

https://jsfiddle.net/6zkmg2cn/ https://jsfiddle.net/6zkmg2cn/

I tried to add code but it wouldn't show the HTML from the fiddle?

This fiddle works fine on a PC, but the same fiddle on a mobile browser doesn't work. 这种提琴在PC上工作正常,但在移动浏览器上的提琴却不起作用。

As you will see, it just flips the "front" 180 degrees but never shows the "back" 如您所见,它只会将“前”翻转180度,但从不显示“后”

any idea what I'm doing wrong? 知道我在做什么错吗?

or does anyone know a better way to use a "flipper" animation that works on mobile devices? 还是有谁知道在移动设备上使用“ flipper”动画的更好方法? I just want a basic "click this and it flips" animation. 我只想要一个基本的“单击它并翻转”动画。

EDIT: I'm sorry, I should have added more information: It turns out it does work on Android Chrome and Firefox, but where I am seeing it not work is iOS Chrome (56.0.2924.79) and iOS Safari (10.1.1 iOS) and iOS FireFox (6.1) 编辑:对不起,我应该添加更多信息:事实证明它确实可以在Android Chrome和Firefox上运行,但是我发现它不起作用的地方是iOS Chrome(56.0.2924.79)和iOS Safari(10.1.1 iOS) )和iOS FireFox(6.1)

Obviously this is something I'm missing with a -webkit flag in CSS or something? 显然这是CSS中缺少-webkit标志的东西吗? The link in the comments that show what's its compatible with suggests it should be working with these browsers, so leads me to believe its my code. 注释中的链接显示了它的兼容性,这表明它应该与这些浏览器兼容,因此让我相信它的代码。 Sorry again. 再次抱歉。

it was: 它是:

-webkit-backface-visibility: hidden; -webkit-backface-visibility:隐藏;

that I needed to add. 我需要添加。

Thank you guys, your comments helped me to find this answer. 谢谢大家,您的意见帮助我找到了这个答案。 I appreciate it. 我很感激。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM