android - ionic 框架 : conditional animation depending on the os

标签 android angularjs animation cordova ionic-framework

我正在尝试禁用适用于 Android 操作系统的 Ionic Framework 中的动画。我试过:

<body ng-app="myApp" animation="{'no-animation': ionic.Platform.is('android')}">

这行不通。当我将 animation 更改为 ng-animation 时,它会将类“no-animation”添加到导航栏,但不会禁用动画。有什么方法可以针对 Ionic Framework 中的特定操作系统?

最佳答案

查看 Ionic.Platform:http://ionicframework.com/docs/api/utility/ionic.Platform/此外,Cordova 的通用设备插件可以提供帮助。

关于android - ionic 框架 : conditional animation depending on the os,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25995803/

相关文章:

javascript - jQuery - 在开始时找到 div 的 CSS 底部,而不是在悬停动画期间

java - 如何使用来自 Firebase Google Maps API Android 的数据更新标记位置

android - 我该如何在计时码表的准确时间内播放声音?

android - 在广播接收器中显示通知

javascript - ionic : The back button is not showing when I refresh the page in the browser

javascript - Angular 范围项目+1不返回多次点击

JavaFX - 调整大小和/或移动节点(例如文本字段)

Android:SharedPreference:启动时未设置默认值

javascript - 每 500 毫秒 http 请求一次,直到请求完成 Angular

javascript - jQuery 中的可暂停打字机效果