纯css3动画实现画轴展开效果代码

下载地址

基本上都能看懂 .mapBox{ box-sizing: border-box; width: 800px; margin: auto; background-color: #e2deda; font-size: 30px; color: #aaa; } .map{ box-sizing: inherit; height: 100px; width: inherit; position: relative; margin: auto; } .left{ box-sizing: border-box; position: absolute; top:0; left:0; width: 50%; height: 100px; line-height: 100px; background-color: #FAFAFA; text-align: center; } .leftMask{ box-sizing: border-box; position: absolute; z-index: 3; top:0; left:0; width: 400px; height: 100px; background-color: #e2deda; animation: leftSpread 5s ease forwards; } .right{ box-sizing: border-box; position: absolute; top:0; right:0; width:400px; height: 100px; line-height: 100px; text-align: center; background-color: #FAFAFA; } .rightMask{ box-sizing: border-box; position: absolute; z-index: 3; top:0; left:50%; right: 0; height: 100px; background-color: #e2deda; animation: rightSpread 5s ease forwards; } .mask{ box-sizing: border-box; z-index: 5; height: 100px; animation: spread 5s ease forwards; background-size: 13%; border-top:10px solid #e2deda; border-left:10px solid black; border-right:10px solid black; border-bottom:10px solid #e2deda; position: absolute; left: 50%; right: 50%; top:0; bottom: 0; } @keyframes spread { from { } to { left: 0; right: 0; } } @keyframes leftSpread { from { width: 50%; } to { width: 0; } } @keyframes rightSpread { from { } to { left: 100%; } }

1639aa367b47d1e3ccbca2f8afe6efe2147566.png

dd:

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值