动画CSS列间隙属性
要使用CSS在column-gap属性上实现动画,您可以尝试运行以下代码-
示例
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 600px;
height: 300px;
background: white;
border: 10px solid red;
animation: myanim 3s infinite;
bottom: 30px;
position: absolute;
column-count: 4;
}
@keyframes myanim {
20% {
bottom: 100px;
box-shadow: 30px 45px 70px orange;
column-gap: 70px;
}
}
</style>
</head>
<body>
<h2>Performing Animation on column gap property</h2>
<div>This is demo text! This is demo text! This is demo text!
This is demo text! This is demo text! This is demo text!
This is demo text! This is demo text! This is demo text!
This is demo text! This is demo text! This is demo text!
This is demo text! This is demo text! This is demo text!
This is demo text! This is demo text! This is demo text!
This is demo text! This is demo text! This is demo text!
This is demo text! This is demo text! This is demo text!
This is demo text!
</div>
</body>
</html>热门推荐
10 生活老师离别祝福语简短
11 祝福语大全短句简短英语
12 老爸的祝福语简短独特
13 打麻将祝福语简短英文
14 新年祝福语简短俏皮文案
15 给长辈冬至祝福语 简短
16 集体年会祝福语简短创意
17 元旦英文祝福语大全简短
18 新婚贺词祝福语创意简短