cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

            
              <section id="hangout">
  <header>Pure CSS</header>
  <span class="hangout-icon"><span></span></span>
</section>

<section id="original">
  <header>Original</header>
</section>
            
          
!
            
              html, body {
			height: 100%;
			margin: 0;
		}
		#original, #hangout {
			position: relative;
			width: 50%;
			min-height: 100%;
			-webkit-box-sizing: border-box;
			-moz-box-sizing: border-box;
			box-sizing: border-box;
			border: solid #aaa;
			border-width: 0 3px 0 0;
			float: left;
		}
		#original {
			border-width: 0 0 0 3px;
			background: url('http://l33t.roydukkey.com/google-hangout/hangouts_oldtv.gif') center center no-repeat;
		}
		header {
			padding: 15px;
			font: bold 20px/25px sans-serif;
			color: #888;
		}

		/*-----------------------
		-- Hangout Bubble Icon --	
		-----------------------*/
		.hangout-icon, .hangout-icon span {
			position: absolute; top: 50%; left: 50%;
			height: 68px; width: 84px;
			margin: -41px 0 0 -34px;

			-webkit-border-radius: 6px;
			-moz-border-radius: 6px;
			border-radius: 6px;
			-moz-background-clip: padding;
			-webkit-background-clip: padding-box;
			background-clip: padding-box;

			background-color: #d3d3d3;
			background-image: linear-gradient(rgba(255, 255, 255, .75) 66%, rgba(255, 255, 255, .6) 66%),
						url('http://l33t.roydukkey.com/google-hangout/noise.png');
			background-size: 31px 31px, 100px;

			-webkit-box-shadow: inset 0 0 1px rgba(0, 0, 0, .25),
						inset 0 0 25px rgba(0, 0, 0, .15);
			-moz-box-shadow: inset 0 0 1px rgba(0, 0, 0, .25),
						inset 0 0 25px rgba(0, 0, 0, .15);
			box-shadow: inset 0 0 1px rgba(0, 0, 0, .25),
						inset 0 0 25px rgba(0, 0, 0, .15);

			-webkit-animation: main-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
			-moz-animation: main-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
			-ms-animation: main-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
			-o-animation: main-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
			animation: main-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
		}

		/*-- Bubble Beak --*/
		.hangout-icon span {
			content: "";
			position: absolute; top: 100%; left: 16px;
			width: 25px;
			margin: -1px 0 0 0;
			-webkit-border-radius: 0;
			-moz-border-radius: 0;
			border-radius: 0;

			-webkit-box-shadow: inset 5px 0 25px rgba(0, 0, 0, 1);
			-moz-box-shadow: inset 5px 0 25px rgba(0, 0, 0, .1);
			box-shadow: inset 5px 0 25px rgba(0, 0, 0, .1);
			
			-webkit-animation: beak-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
			-moz-animation: beak-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
			-ms-animation: beak-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
			-o-animation: beak-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
			animation: beak-scan 2.9s linear 0s infinite,
						scan-jump 2.9s linear 0s infinite;
		}
		.hangout-icon:before {
			content: "";
			position: absolute; top: 100%; right: 43px;
			width: 60px; height: 60px;
			background: #fff;
			z-index: 1;

			-webkit-transform: rotate(-33deg);
			-moz-transform: rotate(-33deg);
			-ms-transform: rotate(-33deg);
			transform: rotate(-33deg);
			-webkit-transform-origin: 100% 0;
			-moz-transform-origin: 100% 0;
			-ms-transform-origin: 100% 0;
			transform-origin: 100% 0;
		}

		/*-- Inner Icon Body --*/
		.hangout-icon:after {
			position: relative;
			display: block;
			width: 32px; height: 29px;
			margin: 20px 0 0 20px;
		}
		.hangout-icon:after {
			content: "";
			position: absolute; top: 0; left: 0;
			-webkit-border-radius: 2px;
			-moz-border-radius: 2px;
			border-radius: 2px;
			-moz-background-clip: padding;
			-webkit-background-clip: padding-box;
			background-clip: padding-box;
			background: #fff;
			z-index: 1;

			-webkit-box-shadow: 1px 0 rgba(0, 0, 0, .05),
						0 1px rgba(0, 0, 0, .05),
						-1px 0 rgba(0, 0, 0, .05);
			-moz-box-shadow: 1px 0 rgba(0, 0, 0, .05),
						0 1px rgba(0, 0, 0, .05),
						-1px 0 rgba(0, 0, 0, .05);
			box-shadow: 1px 0 rgba(0, 0, 0, .05),
						0 1px rgba(0, 0, 0, .05),
						-1px 0 rgba(0, 0, 0, .05);
		}

		/*-- Inner Icon Lens --*/
		.hangout-icon span:before, .hangout-icon span:after {
			content: "";
			position: absolute; top: -47px; right: -27px;
			border-style: dashed solid dashed dashed;
			border-color: transparent #fff transparent transparent;
			border-width: 14px 19px 14px 0;
			z-index: 2;
		}
		.hangout-icon span:before {
			top: -46px; right: -28px;
			border-right-color: rgba(0, 0, 0, .05);
			z-index: 0;
		}

		/*-- Television Scanning Keyframes --*/
		@-webkit-keyframes main-scan {
			0% { background-position: 0 85%, 0 100px; }

			10% { background-position: 0 76.5%, 100px 0; }
			20% { background-position: 0 68%, 0 100px; }
			30% { background-position: 0 59.5%, 100px 0; }
			40% { background-position: 0 51%, 0 100px; }
			50% { background-position: 0 42.5%, 100px 0; }
			60% { background-position: 0 34%, 0 100px; }
			70% { background-position: 0 25.5%, 100px 0; }
			80% { background-position: 0 17%, 0 100px; }
			90% { background-position: 0 8.5%, 100px 0; }

			100% { background-position: 0 0, 100px 100px; }
		}
		@-moz-keyframes main-scan {
			0% { background-position: 0 85%, 0 100px; }

			10% { background-position: 0 76.5%, 100px 0; }
			20% { background-position: 0 68%, 0 100px; }
			30% { background-position: 0 59.5%, 100px 0; }
			40% { background-position: 0 51%, 0 100px; }
			50% { background-position: 0 42.5%, 100px 0; }
			60% { background-position: 0 34%, 0 100px; }
			70% { background-position: 0 25.5%, 100px 0; }
			80% { background-position: 0 17%, 0 100px; }
			90% { background-position: 0 8.5%, 100px 0; }

			100% { background-position: 0 0, 100px 100px; }
		}
		@-o-keyframes main-scan {
			0% { background-position: 0 85%, 0 100px; }

			10% { background-position: 0 76.5%, 100px 0; }
			20% { background-position: 0 68%, 0 100px; }
			30% { background-position: 0 59.5%, 100px 0; }
			40% { background-position: 0 51%, 0 100px; }
			50% { background-position: 0 42.5%, 100px 0; }
			60% { background-position: 0 34%, 0 100px; }
			70% { background-position: 0 25.5%, 100px 0; }
			80% { background-position: 0 17%, 0 100px; }
			90% { background-position: 0 8.5%, 100px 0; }

			100% { background-position: 0 0, 100px 100px; }
		}
		@keyframes main-scan {
			0% { background-position: 0 85%, 0 100px; }

			10% { background-position: 0 76.5%, 100px 0; }
			20% { background-position: 0 68%, 0 100px; }
			30% { background-position: 0 59.5%, 100px 0; }
			40% { background-position: 0 51%, 0 100px; }
			50% { background-position: 0 42.5%, 100px 0; }
			60% { background-position: 0 34%, 0 100px; }
			70% { background-position: 0 25.5%, 100px 0; }
			80% { background-position: 0 17%, 0 100px; }
			90% { background-position: 0 8.5%, 100px 0; }

			100% { background-position: 0 0, 100px 100px; }
		}

		@-webkit-keyframes beak-scan {
			0% { background-position: 0% 70%, 0 100px; }

			10% { background-position: 0 61.5%, 100px 0; }
			20% { background-position: 0 53%, 0 100px; }
			30% { background-position: 0 44.5%, 100px 0; }
			40% { background-position: 0 36%, 0 100px; }
			50% { background-position: 0 27.5%, 100px 0; }
			60% { background-position: 0 19%, 0 100px; }
			70% { background-position: 0 10.5%, 100px 0; }
			80% { background-position: 0 2%, 0 100px; }
			90% { background-position: 0 -6.5%, 100px 0; }

			100% { background-position: 0% -15%, 100px 100px; }
		}
		@-moz-keyframes beak-scan {
			0% { background-position: 0% 70%, 0 100px; }

			10% { background-position: 0 61.5%, 100px 0; }
			20% { background-position: 0 53%, 0 100px; }
			30% { background-position: 0 44.5%, 100px 0; }
			40% { background-position: 0 36%, 0 100px; }
			50% { background-position: 0 27.5%, 100px 0; }
			60% { background-position: 0 19%, 0 100px; }
			70% { background-position: 0 10.5%, 100px 0; }
			80% { background-position: 0 2%, 0 100px; }
			90% { background-position: 0 -6.5%, 100px 0; }

			100% { background-position: 0% -15%, 100px 100px; }
		}
		@-o-keyframes beak-scan {
			0% { background-position: 0% 70%, 0 100px; }

			10% { background-position: 0 61.5%, 100px 0; }
			20% { background-position: 0 53%, 0 100px; }
			30% { background-position: 0 44.5%, 100px 0; }
			40% { background-position: 0 36%, 0 100px; }
			50% { background-position: 0 27.5%, 100px 0; }
			60% { background-position: 0 19%, 0 100px; }
			70% { background-position: 0 10.5%, 100px 0; }
			80% { background-position: 0 2%, 0 100px; }
			90% { background-position: 0 -6.5%, 100px 0; }

			100% { background-position: 0% -15%, 100px 100px; }
		}
		@keyframes beak-scan {
			0% { background-position: 0% 70%, 0 100px; }

			10% { background-position: 0 61.5%, 100px 0; }
			20% { background-position: 0 53%, 0 100px; }
			30% { background-position: 0 44.5%, 100px 0; }
			40% { background-position: 0 36%, 0 100px; }
			50% { background-position: 0 27.5%, 100px 0; }
			60% { background-position: 0 19%, 0 100px; }
			70% { background-position: 0 10.5%, 100px 0; }
			80% { background-position: 0 2%, 0 100px; }
			90% { background-position: 0 -6.5%, 100px 0; }

			100% { background-position: 0% -15%, 100px 100px; }
		}

		@-webkit-keyframes scan-jump {
			0% { background-size: 100% 31px, 100px; }

			14% { background-size: 100% 31px, 100px; }
			15% { background-size: 100% 29px, 100px; }
			16% { background-size: 100% 31px, 100px; }
			17% { background-size: 100% 35px, 100px; }
			18% { background-size: 100% 31px, 100px; }
			19% { background-size: 100% 33px, 100px; }
			20% { background-size: 100% 31px, 100px; }

			55% { background-size: 100% 31px, 100px; }
			15% { background-size: 100% 29px, 100px; }
			16% { background-size: 100% 31px, 100px; }
			17% { background-size: 100% 35px, 100px; }
			18% { background-size: 100% 31px, 100px; }
			19% { background-size: 100% 33px, 100px; }
			20% { background-size: 100% 31px, 100px; }

			90% { background-size: 100% 31px, 100px; }
			91% { background-size: 100% 35px, 100px; }
			92% { background-size: 100% 31px, 100px; }
			95% { background-size: 100% 31px, 100px; }
			96% { background-size: 100% 32px, 100px; }
			97% { background-size: 100% 31px, 100px; }
			98% { background-size: 100% 28px, 100px; }
			99% { background-size: 100% 31px, 100px; }

			100% { background-size: 100% 31px, 100px; }
		}
		@-moz-keyframes scan-jump {
			0% { background-size: 100% 31px, 100px; }

			14% { background-size: 100% 31px, 100px; }
			15% { background-size: 100% 29px, 100px; }
			16% { background-size: 100% 31px, 100px; }
			17% { background-size: 100% 35px, 100px; }
			18% { background-size: 100% 31px, 100px; }
			19% { background-size: 100% 33px, 100px; }
			20% { background-size: 100% 31px, 100px; }

			55% { background-size: 100% 31px, 100px; }
			15% { background-size: 100% 29px, 100px; }
			16% { background-size: 100% 31px, 100px; }
			17% { background-size: 100% 35px, 100px; }
			18% { background-size: 100% 31px, 100px; }
			19% { background-size: 100% 33px, 100px; }
			20% { background-size: 100% 31px, 100px; }

			90% { background-size: 100% 31px, 100px; }
			91% { background-size: 100% 35px, 100px; }
			92% { background-size: 100% 31px, 100px; }
			95% { background-size: 100% 31px, 100px; }
			96% { background-size: 100% 32px, 100px; }
			97% { background-size: 100% 31px, 100px; }
			98% { background-size: 100% 28px, 100px; }
			99% { background-size: 100% 31px, 100px; }

			100% { background-size: 100% 31px, 100px; }
		}
		@-o-keyframes scan-jump {
			0% { background-size: 100% 31px, 100px; }

			14% { background-size: 100% 31px, 100px; }
			15% { background-size: 100% 29px, 100px; }
			16% { background-size: 100% 31px, 100px; }
			17% { background-size: 100% 35px, 100px; }
			18% { background-size: 100% 31px, 100px; }
			19% { background-size: 100% 33px, 100px; }
			20% { background-size: 100% 31px, 100px; }

			55% { background-size: 100% 31px, 100px; }
			15% { background-size: 100% 29px, 100px; }
			16% { background-size: 100% 31px, 100px; }
			17% { background-size: 100% 35px, 100px; }
			18% { background-size: 100% 31px, 100px; }
			19% { background-size: 100% 33px, 100px; }
			20% { background-size: 100% 31px, 100px; }

			90% { background-size: 100% 31px, 100px; }
			91% { background-size: 100% 35px, 100px; }
			92% { background-size: 100% 31px, 100px; }
			95% { background-size: 100% 31px, 100px; }
			96% { background-size: 100% 32px, 100px; }
			97% { background-size: 100% 31px, 100px; }
			98% { background-size: 100% 28px, 100px; }
			99% { background-size: 100% 31px, 100px; }

			100% { background-size: 100% 31px, 100px; }
		}
		@keyframes scan-jump {
			0% { background-size: 100% 31px, 100px; }

			14% { background-size: 100% 31px, 100px; }
			15% { background-size: 100% 29px, 100px; }
			16% { background-size: 100% 31px, 100px; }
			17% { background-size: 100% 35px, 100px; }
			18% { background-size: 100% 31px, 100px; }
			19% { background-size: 100% 33px, 100px; }
			20% { background-size: 100% 31px, 100px; }

			55% { background-size: 100% 31px, 100px; }
			15% { background-size: 100% 29px, 100px; }
			16% { background-size: 100% 31px, 100px; }
			17% { background-size: 100% 35px, 100px; }
			18% { background-size: 100% 31px, 100px; }
			19% { background-size: 100% 33px, 100px; }
			20% { background-size: 100% 31px, 100px; }

			90% { background-size: 100% 31px, 100px; }
			91% { background-size: 100% 35px, 100px; }
			92% { background-size: 100% 31px, 100px; }
			95% { background-size: 100% 31px, 100px; }
			96% { background-size: 100% 32px, 100px; }
			97% { background-size: 100% 31px, 100px; }
			98% { background-size: 100% 28px, 100px; }
			99% { background-size: 100% 31px, 100px; }

			100% { background-size: 100% 31px, 100px; }
		}
            
          
!
            
              /*

  There are a couple techniques used here. Enjoy!

*/
            
          
!
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