博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[Angular2 Animation] Use Keyframes for Fine-Tuned Angular 2 Animations
阅读量:6892 次
发布时间:2019-06-27

本文共 991 字,大约阅读时间需要 3 分钟。

When easing isn’t enough to get the exact animation you want, you can leverage keyframes to define and precise styles and steps over time. Keyframes allow you to achieve pretty much any Angular 2 animation you want.

 

animations:[        trigger('signal', [            state('void', style({                'transform':'translateY(-100%)'            })),            state('go', style({                'background-color':'green',                'height':'100px'            })),            state('stop', style({                'background-color':'red',                'height':'50px'            })),            transition('void => *', animate(8000, keyframes([                style({
'transform':'scale(0)'}), style({
'transform':'scale(.1)'}), style({
'transform':'scale(.9)'}), style({
'transform':'scale(1)'}) ]))), transition('* => *', animate('2s 1s cubic-bezier(0.175, 0.885, 0.32, 1.275)')) ]) ],

 

转载地址:http://cvzdl.baihongyu.com/

你可能感兴趣的文章
MariaDB · 新特性 · 窗口函数
查看>>
thinkphp 3.2分布式数据库读写分离扩展阅读
查看>>
iOS流布局UICollectionView系列二——UICollectionView的代理方法
查看>>
我的友情链接
查看>>
offsetleft
查看>>
我的友情链接
查看>>
我的友情链接
查看>>
mysql5.6的安装(rpm)
查看>>
Gamebryo实例学习之八InputDemo
查看>>
关于CSDN2013博客之星的一些看法
查看>>
"安全删除硬件并弹出媒体"的列表中出现内置硬盘的解决办法.
查看>>
LINUX中JDK环境变量配置
查看>>
linux 切换用户之后变成-bash-3.2$的解决方法
查看>>
我的友情链接
查看>>
使用list
查看>>
Ubuntu 12.04 安装 gcc-4.8 及 gdb 7.6
查看>>
GII 和 DEBUG 模块出现 403 解决
查看>>
shell历史命令记录功能
查看>>
kali linux软件源
查看>>
cocos2d_x在windows环境下的方向键支持
查看>>