首页 > 软件开发 > HTML >

html+css3图书3D动画

来源:互联网 2023-03-16 19:10:14 289

html css3图书3D动画scn办公区 - 实用经验教程分享!

工具/原料

  • adobe dreamweaver

方法/步骤

  • 1

    准备好需要用到的图标。scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

  • 2

    新建html文档。scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

  • 2本页面未经许可获取自百度经验
  • 3

    书写hmtl代码。scn办公区 - 实用经验教程分享!

    div class="container group">scn办公区 - 实用经验教程分享!

    h1 class="main-title">css3图书3D动画/h1>scn办公区 - 实用经验教程分享!

    a href="#" class="book-container">scn办公区 - 实用经验教程分享!

    div class="book">scn办公区 - 实用经验教程分享!

    div class="book-cover"> img src="images/cover.jpg" alt="" /> /div>scn办公区 - 实用经验教程分享!

    div class="book-spine">scn办公区 - 实用经验教程分享!

    h1>Photography for Chinaz/h1>scn办公区 - 实用经验教程分享!

    /div>scn办公区 - 实用经验教程分享!

    /div>scn办公区 - 实用经验教程分享!

    /a> /div>scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

  • 4

    初始化css代码。scn办公区 - 实用经验教程分享!

    style>scn办公区 - 实用经验教程分享!

    html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, dialog, figure, footer, header, hgroup, menu, nav, section, menu, time, mark, audio, video { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }scn办公区 - 实用经验教程分享!

    body { line-height: 1; margin: 0; }scn办公区 - 实用经验教程分享!

    article, aside, dialog, figure, footer, header, hgroup, nav, section { display: block; }scn办公区 - 实用经验教程分享!

    nav ul { list-style: none; }scn办公区 - 实用经验教程分享!

    blockquote, q { quotes: none; }scn办公区 - 实用经验教程分享!

    blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; }scn办公区 - 实用经验教程分享!

    a { margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; background: transparent; outline: 0; }scn办公区 - 实用经验教程分享!

    ins { background-color: #ff9; color: #000; text-decoration: none; }scn办公区 - 实用经验教程分享!

    mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }scn办公区 - 实用经验教程分享!

    del { text-decoration: line-through; }scn办公区 - 实用经验教程分享!

    abbr[title], dfn[title] { border-bottom: 1px dotted #000; cursor: help; }scn办公区 - 实用经验教程分享!

    table { border-collapse: collapse; border-spacing: 0; }scn办公区 - 实用经验教程分享!

    hr { display: block; height: 1px; border: 0; border-top: 1px solid #cccccc; margin: 1em 0; padding: 0; }scn办公区 - 实用经验教程分享!

    input, select { vertical-align: middle; }scn办公区 - 实用经验教程分享!

    /style>scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

  • 5

    书写css代码。scn办公区 - 实用经验教程分享!

    .group:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }scn办公区 - 实用经验教程分享!

    * html .group { height: 1%; }scn办公区 - 实用经验教程分享!

    *:first-child html .group { min-height: 1px; }scn办公区 - 实用经验教程分享!

    body { line-height: 1.9em; color: #fff; background: #0b3065 url(images/bg.jpg) center top fixed no-repeat; background-size: cover; font-family: arial, sans-serif; }scn办公区 - 实用经验教程分享!

    .container { max-width: 60em; margin: 0 auto; padding: 0 2em; }scn办公区 - 实用经验教程分享!

    .text.container { max-width: 38em; text-align: center; margin: 50px auto 100px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75); }scn办公区 - 实用经验教程分享!

    a { color: #da9803; text-decoration: none; }scn办公区 - 实用经验教程分享!

    a:hover { text-decoration: underline; }scn办公区 - 实用经验教程分享!

    h1.main-title { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #fff; font-weight: normal; margin: 1.25em; text-align: center; font-size: 2.75em; letter-spacing: -1px; }scn办公区 - 实用经验教程分享!

    p { margin-bottom: 1em; font-size: 1.25em; }scn办公区 - 实用经验教程分享!

    hr { margin: 2em 0; }scn办公区 - 实用经验教程分享!

    .book-container { width: 375px; margin: 0 auto; display: block; -webkit-perspective: 1200px; -moz-perspective: 1200px; perspective: 1200px; }scn办公区 - 实用经验教程分享!

    .book { z-index: 5; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); -webkit-transition: 0.75s; -moz-transition: 0.75s; transition: 0.75s; -webkit-transform-style: preserve-3d; -moz-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-transform-origin: 125px 0; -moz-transform-origin: 125px 0; transform-origin: 125px 0; }scn办公区 - 实用经验教程分享!

    .book:after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 7px; background: url(images/ridge.png) repeat-y; z-index: 20; -webkit-transform: translateZ(1px); /* Fix for flickering in Chrome */ }scn办公区 - 实用经验教程分享!

    .book:hover { -webkit-transform: translateX(-10px) translateZ(35px) translateX(35px) rotateY(45deg); -moz-transform: translateX(-10px) translateZ(35px) translateX(35px) rotateY(45deg); transform: translateX(-10px) translateZ(35px) translateX(35px) rotateY(45deg); }scn办公区 - 实用经验教程分享!

    .book-cover { position: relative; z-index: 10; }scn办公区 - 实用经验教程分享!

    .book-cover img { vertical-align: bottom; max-width: 100%; height: auto; }scn办公区 - 实用经验教程分享!

    .book-spine { position: absolute; color: #fff; position: absolute; bottom: 0; top: 0; width: 50px; z-index: 5; overflow: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); background: url(images/spine.jpg) -64px 0 no-repeat; background-size: auto 100%; -webkit-transform: rotateY(-90deg) translateX(-49px); -moz-transform: rotateY(-90deg) translateX(-49px); transform: rotateY(-90deg) translateX(-49px); -webkit-transform-origin: 0 0; -moz-transform-origin: 0 0; transform-origin: 0 0; }scn办公区 - 实用经验教程分享!

    .book-spine h1 { display: block; width: 325px; text-align: left; color: #fff; position: absolute; top: 0; left: 39px; text-indent: 43px; text-transform: uppercase; font-family: "league_gothic_condensedRg", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 2em; opacity: 0.75; font-weight: normal; -webkit-font-smoothing: antialiased; -webkit-transform: rotateZ(90deg); -moz-transform: rotateZ(90deg); transform: rotateZ(90deg); -webkit-transform-origin: 0 0; -moz-transform-origin: 0 0; transform-origin: 0 0; }scn办公区 - 实用经验教程分享!

    .book-spine:before { display: block; content: ""; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); }scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

  • 6

    代码整体结构。scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

  • 7

    查看效果。scn办公区 - 实用经验教程分享!

    html css3图书3D动画scn办公区 - 实用经验教程分享!

  • 以上方法由办公区教程网编辑摘抄自百度经验可供大家参考!scn办公区 - 实用经验教程分享!


    标签: HTML

    办公区 Copyright © 2016-2023 www.bgqu.net. Some Rights Reserved. 备案号:湘ICP备2020019561号统计代码