space 风格 css Angular-2+ 动画
space in style css in Angular-2+ animations
https://angular.io/guide/animations in angular 状态样式中的4个动画为什么不支持前缀?
在这个 plunker
https://plnkr.co/edit/ALfIp5nfno2uxBgXEBST
当我尝试添加 css 样式时
animation-delay: 2s;
国风
state('visible', style({ left: '0', transition: '650ms ease-in-out', })),
它给我一个错误 (TypeScript ':' expected. (TS1005)
)
所以我想添加一些 css 规则来支持其他浏览器,比如 firefox(-moz 前缀)但它不接受任何前缀)
有任何解决方法或解决方案吗?
在指南中
Angular animations are built on top of the standard Web Animations API
and run natively on browsers that support it.
For other browsers, a polyfill is required. Uncomment the
web-animations-js polyfill from the polyfills.ts file.
这是在 polyfill.ts 文件中取消注释 web-animations-js 并安装它
https://angular.io/guide/animations in angular 状态样式中的4个动画为什么不支持前缀?
在这个 plunker
https://plnkr.co/edit/ALfIp5nfno2uxBgXEBST
当我尝试添加 css 样式时
animation-delay: 2s;
国风
state('visible', style({ left: '0', transition: '650ms ease-in-out', })),
它给我一个错误 (TypeScript ':' expected. (TS1005)
)
所以我想添加一些 css 规则来支持其他浏览器,比如 firefox(-moz 前缀)但它不接受任何前缀)
有任何解决方法或解决方案吗?
在指南中
Angular animations are built on top of the standard Web Animations API and run natively on browsers that support it.
For other browsers, a polyfill is required. Uncomment the web-animations-js polyfill from the polyfills.ts file.
这是在 polyfill.ts 文件中取消注释 web-animations-js 并安装它