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.

              <div id="box">Press to toggle</div>
<div id="box2">Press to toggle</div>

<!-- box uses a second, blurred image that matches the initial image and transitions opacity -->

<!-- box2 blurs the image directly, attempting to transition -->
div {
	  border: 1px solid #000;
  text-align: center;
	  position: relative;
	  height: 200px;
  width: 200px;
  margin: 0 auto;
	  background: rgb(245, 248, 250) url(https://danielcwilson.com/demos/ios7blur/back.png) top center no-repeat;
	  -webkit-background-size: 200px 1025px;
	  -moz-background-size: 200px 1025px;
	  background-size: 200px 1025px;
  margin: 0 10px 10px;
  display: inline-block;

#box::after {
		  content: "";
		  opacity: 0;
		  top: 0;
		  left: 0;
		  bottom: 0;
		  right: 0;
		  position: absolute;
		  z-index: 0;   

		  -webkit-transition: opacity .35s ease-in-out;
		  -moz-transition: opacity .35s ease-in-out;
		  transition: opacity .35s ease-in-out;

		  background: rgb(245, 248, 250) url(https://danielcwilson.com/demos/ios7blur/backBlurred.jpg) top center no-repeat;
		  -webkit-background-size: 295px 1025px;
		  -moz-background-size: 295px 1025px;
		  background-size: 295px 1025px;
#box.selected::after {
  opacity: 1;

#box2 {
		  -webkit-transition: -webkit-filter .35s ease-in-out;
		  transition: -webkit-filter .35s ease-in-out;
		  transition: filter .35s ease-in-out;
#box2.selected {
  -webkit-filter: blur(15px);
  filter: blur(15px);

              function toggler(e) {
document.getElementById('box').addEventListener('click', toggler, false);
document.getElementById('box2').addEventListener('click', toggler, false);
Loading ..................