CSS3 动画综合示例
html公开前 25 行,完整代码需登录
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.container {
display: flex;
gap: 30px;
padding: 50px;
flex-wrap: wrap;
}
/* 示例1: transform + transition - 简单交互 */
.example1 {
width: 120px;
height: 120px;
background-color: #3498db;
transform: scale(1) rotate(0deg);
transition: transform 0.3s ease, background-color 0.3s ease;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
}