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.

              <div id="container">  
  <div class="blur">
    <div class="circle1"></div>
    <div class="circle2"></div>
    <div class="circle3"></div>
    <div class="circle4"></div>
    <div class="circle5"></div>
    <div class="circle6"></div>
    <div class="circle7"></div>
    <div class="circle8"></div>
    <div class="circle9"></div>
    <div class="circle10"></div>
	color: white;
	margin: 0px
	color: white;
	background-color: #0ff;
	text-align: center;
	position: absolute;
	top: 50%;
	left: 0px;
	width: 100%;	
	/*overflow: visible;*/
	visibility: visible;
	display: block
  -webkit-filter: blur(15px);
  -moz-filter: blur(15px);
  -o-filter: blur(15px);
  -ms-filter: blur(15px);
  filter: blur(15px);
.blur {
  background-color: #fafafa;
	position: absolute;
	top: -150px;
	width: 100%;
	height: 300px;
	visibility: visible;
  overflow: hidden;
  -webkit-filter: blur(20px);
  -moz-filter: blur(20px);
  -o-filter: blur(20px);
  filter: blur(20px);
.circle1, .circle2, .circle3, .circle4, .circle5,
.circle6, .circle7, .circle8, .circle9, .circle10{
	border-radius: 50%;
  width: 100px;
	height: 100px; 
  background: rgba(180,45,153,0.20);
	/* width and height can be anything, as long as they're equal */
.circle2 {
  width: 70px;
	height: 70px; 
  background: rgba(129,34,53, 0.25);
.circle3 {
  width: 50px;
	height: 50px; 
  background: rgba(40,229,64,0.80);
.circle4 {
  width: 30px;
	height: 30px; 
  background: rgba(200,129,34,0.50);
.circle5 {
  width: 130px;
	height: 130px; 
  background: rgba(100,29,134,0.45);
.circle6 {
  width: 200px;
	height: 200px; 
  background: rgba(220,29,134,0.75);
.circle7 {
  width: 80px;
	height: 80px; 
  background: rgba(40,210,134,0.34);
.circle8 {
  width: 180px;
	height: 180px; 
  background: rgba(150,29,134,0.75);
.circle9 {
  width: 100px;
	height: 100px; 
  background: rgba(36,210,134,0.55);
.circle10 {
  width: 500px;
	height: 500px; 
  background: rgba(180,180,180,0.25);
              $(document).ready(function() {

function makeNewPosition($container) {
    // Get viewport dimensions (remove the dimension of the div)
    $container = ($container || $(window))
    var h = $container.height() - 50;
    var w = $container.width() - 50;

    var nh = Math.floor(Math.random() * h);
    var nw = Math.floor(Math.random() * w);

    return [nh, nw];


function animateDiv(itemToMove) {
    var $target = $(itemToMove);
    var newq = makeNewPosition($target.parent());
    var oldq = $target.offset();
    var speed = calcSpeed([oldq.top, oldq.left], newq);

        top: newq[0],
        left: newq[1]
    }, speed, function() {

function calcSpeed(prev, next) {

  var x = Math.abs(prev[1] - next[1]);
    var y = Math.abs(prev[0] - next[0]);
    var greatest = x > y ? x : y;
    var speedModifier = 0.1;
    var speed = Math.ceil(greatest / speedModifier);

    return speed;
Loading ..................