cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <html>
<head>
</head>
  <body>
    <h1>动画,display 的影响</h1>
    <p>研究 display 对animation的影响,其实主要是研究 display 对个个 css 的影响。</p>
    <ul>
      <li>rotate:影响块状类型的元素</li>
      <li>width:影响块状类型的元素</li>
      <li>height: 影响块状类型的元素</li>
    </ul>
    <div>
      <div class="span-container"><span class="fa fa-refresh" style="display:inline;"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:block;"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:inline-block;"></span></div>

      <div class="span-container"><span class="fa fa-refresh" style="display:flex"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:grid"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:inline-flex"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:inline-table"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:list-item"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:none"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:run-in"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:table"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:table-caption"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:tabel-cell"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:table-column"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:table-column-group"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:table-footer-group"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:table-header-group"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:table-row"></span></div>
      <div class="span-container"><span class="fa fa-refresh" style="display:table-row-group"></span></div>
    </div>
  </body>
</html>
            
          
!
            
              body {
  margin: 1em;
}
@keyframes standard {
  0%   {
    transform: rotate(0deg);
    width: 3em;
    height: 3em;
  }
  100% {
    transform: rotate(360deg);
    width: 6em;
    height: 6em;
  }
}
.span-container {
  float:left;
  width: 10em;
  height: 10em;
  border: 1px solid black;
}
.span-container:before {
  content: "before";
}
.fa.fa-refresh {

  border: 1px solid red;
  margin: 1em;
  animation: standard 5s infinite linear;
}


.fa.fa-refresh:after {
  content: "" attr(style) "";
}


            
          
!
999px
Loading ..................

Console