adobe dreamweaver
新建html文档。
书写hmtl代码。
Repaintless.css 演示页面
点击 PLAY按钮开始元素动画。你可以分别点击各个按钮来显示或隐藏相应的动画。
书写css代码。.related { margin-top: 50px; color: #fff; background: #494A5F; text-align: center; font-size: 1.25em; padding: 0.5em 0; overflow: hidden; }.related > a { vertical-align: top; width: calc(100% - 20px); max-width: 340px; display: inline-block; text-align: center; margin: 20px 10px; padding: 25px; font-family: 'Microsoft YaHei', '宋体', 'Segoe UI', 'Lucida Grande', Helvetica, Arial, sans-serif, FreeSans, Arimo; }.related a { display: inline-block; text-align: left; margin: 20px auto; padding: 10px 20px; opacity: 0.8; -webkit-transition: opacity 0.3s; transition: opacity 0.3s; -webkit-backface-visibility: hidden; }.related a:hover, .related a:active { opacity: 1; }.related a img { max-width: 100%; opacity: 0.8; border-radius: 4px; }.related a:hover img, .related a:active img { opacity: 1; }.related h3 { font-family: 'Microsoft YaHei', sans-serif; }.related a h3 { font-weight: 300; margin-top: 0.15em; color: #fff; }.icon-htmleaf-home-outline:before { content: '\e5000'; }.icon-htmleaf-arrow-forward-outline:before { content: '\e5001'; } @media screen and (max-width: 50em) {.htmleaf-header { padding: 3em 10% 4em; }.htmleaf-header h1 { font-size: 2em; }} @media screen and (max-width: 40em) {.htmleaf-header h1 { font-size: 1.5em; }} @media screen and (max-width: 30em) {.htmleaf-header h1 { font-size: 1.2em; }}
书写并添加js代码。
代码整体结构。
查看效果。