8.23笔记

动画:

1.创建动画:@keyframes

2.调用动画:animation

<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../重置css样式.css">
    <style>
        .box {
            width: 100px;
            height: 100px;
            background-color: rosybrown;
            animation: move 3s linear;
            animation-iteration-count: infinite;
        }
        @keyframes move{
            25% {
                transform: translate(300px,0);
                background-color: aqua;
            }
            50% {
                transform: translate(300px,300px);
                background-color: black;
            }
            75% {
                transform: translate(0,300px);
                background-color: #fff;
            }
        }
         /* @keyframes move{
            100% {
                width: 600px;
            }
         } */
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>

animation参数值:

参数值效果
animation-name规定 @keyframes 动画的名称。
animation-duration规定动画完成一个周期所花费的秒或毫秒。默认是 0
animation-timing-function规定动画的速度曲线。默认是 "ease"
animation-delay规定动画何时开始。默认是 0
animation-iteration-count规定动画被播放的次数(number类型)。默认是 1,(infinite: 无限次)
animation-direction规定动画是否在下一周期逆向地播放。默认是 "normal" ,‘alternate'
animation-play-state规定动画是否正在运行或暂停。默认是 "running",'paused'
animation-fill-mode规定对象动画时间之外的状态.forwards,backwards默认值

多列布局:

列宽column-width

列数column-count

列间距column-gap

列与列之间的边框column-rule

横跨多少列column-span  参数值只有两个1/all
 

  • 7
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值