CSS3 动画综合示例

CSS 动画1 个文件更新于 2026-04-21
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;
    }

登录后可以查看完整源码、在线编辑并实时预览运行效果。