前端学记CSS-变形、动画

变形

1、变形-2d

//顺时针方向旋转40度
transform: rotate(40deg);
//移动50px
transform: translate(50px,50px);
//缩放
transform: scale(1.3);
//倾斜度数
transform: skew(10deg);
//设置轴心,变形基点
transform-origin: center;

2、变形-3d

//透视效果
perspective: none;
//透视角度
perspective-origin: center;
//xyz移动
transform: translate3d(10px,10px,10px);
//xyz缩放
transform: scale3d(1.2,1.3,1);
//xyz旋转
transform: rotate3d(1,0,0,30deg);
//扁平化flat,3d化preserve-3d
transform-style: flat|preserve-3d;
//背面是否可见
backface-visibility: visible|hidden;

动画

//设置过度属性
transition-property: all;
//过度动画
transition-duration: 10s;

//插值器,加速度减速度
//贝塞尔曲线
transition-timing-function: ease;
transition-timing-function: cubic-bezier(0,0,1,1);

transition-timing-function: linear;
transition-timing-function: cubic-bezier(0,0,1,1);
//延时时间
transition-delay: 10s;
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值