示例1(盾牌动画):

<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>盾牌动画</title>
<link rel="shortcut icon" href="bkq.ico" type="image/x-icon"/>
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: #ff3040;
}
div {
width: 440px;
margin: 100px auto;
}
div img {
transition: all 1s;
}
div img:nth-child(1) {
transform: translate(200px,-100px) rotate(60deg);
}
div img:nth-child(2) {
transform: translate(-300px,-150px) rotate(90deg);
}
div img:nth-child(3) {
transform: translate(-100px,180px

本文介绍了三个CSS 2D动画示例:盾牌动画、楚乔传旋转动画和音乐盒子,展示了如何使用CSS创建丰富的2D动态效果。
最低0.47元/天 解锁文章
687

被折叠的 条评论
为什么被折叠?



