文章内容
2021/5/18 10:29:07,作 者: 黄兵
CSS transform相关理解
最近在使用transform变换,使用的是旋转,具体css样式如下:
panelHeader.children(".mat-expansion-indicator").css({
'transform': 'rotate(180deg)',
'transformOrigin': 'center',
'transitionDuration': '100ms'
});
这里使用的是jquery设置旋转样式,设置了旋转180°,中间变换,所用时间100ms。
参考资料:
评论列表