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.

            
              <!--
 * Replace the iframes src attribute to test the same effect on other websites 
 *
 * ;)
 *
-->
<div class="main">
	<iframe height="3000" frameborder="0" scrolling="no" src="//www.ubuntu.com"></iframe>
	</div>
	<div class="blurred">
		<iframe height="3000" frameborder="0" scrolling="no" src="//www.ubuntu.com"></iframe>
		<p>Vague.js</p>
</div>
            
          
!
            
              @import "compass/css3";

	@import url(https://fonts.googleapis.com/css?family=Satisfy);
	iframe{
		position:absolute;
		top:0;
		left:0;
		overflow:hidden;
		width:100%;
      /* fix for the stupid safari */
      -webkit-transform: translate3d(0,0,0);
	}
	iframe.main {
		position:absolute;
		height:100%;
		width:100%;
	}
	.blurred {
		box-shadow: 0 5px 50px rgba(0,0,0,0.4);
		overflow:hidden;
		position:fixed;
		bottom:-10px;
		left:0;
		height:200px;
		width:100%;
	}
	.blurred p {
		font-family: 'Satisfy', cursive;
		position:absolute;
		top:50px;
		width:100%;
		color:white;
		text-align: center;
		text-shadow:1px 1px 2px black;
		font-size:70px;
	}
            
          
!
            
              /**
*
* Author: Gianluca Guarini
* Contact: gianluca.guarini@gmail.com
* Website: http://www.gianlucaguarini.com/
* Twitter: @gianlucaguarini
* https://gianlucaguarini.github.io/vague.js/
*
* Copyright (c) 2013 Gianluca Guarini
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
**/

var $window = $(window),
    $main = $('.mainIframe');
    $blurred = $('.blurred');
var vague = $blurred.find('iframe').Vague({
  intensity:5 //blur intensity
});
vague.blur();

var scrollIframe = function () {
  $blurred.find('iframe').css({
    top: -$blurred.offset().top
  });
};
$window.on('scroll',scrollIframe);

scrollIframe();
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console