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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

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.

              <p><strong>IE bug with keyframe animations</strong></p>
<p>Internet Explorer, including the current version 11, does not respect CSS keyframe animations, when they are declared inside a media query block.</p>
<p>This animation on the box's color <strong>will NOT work only in IE</strong>.</p>
<p>Bug filed <a href="https://connect.microsoft.com/IE/feedback/details/1052487" target="_blank">here:</a> </p>

<div class="box-animate">

<p>Simple solution <a href="https://codepen.io/imohkay/pen/KwgyjW">here</a></p>
<p>And <a href="http://blog.karenmenezes.com/2014/dec/26/ie-bug-keyframe-animations/">full article here</a></p>
              body {
  font-family: 'Open Sans', sans-serif;

.box-animate {
  width: 100px;
  height: 100px;
  background: teal;

@media only screen and (min-width: 600px) {
  @keyframes box-animate {
    50% {
      background: darkblue;

  .box-animate {
    animation: box-animate infinite ease 2000ms forwards;
Loading ..................