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.

            
              <!-- Generator: Adobe Illustrator 19.2.1, SVG Export Plug-In  -->
<svg id="surface" version="1.1"
	 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
	 x="0px" y="0px" width="589.6px" height="589.6px" viewBox="0 0 589.6 589.6" enable-background="new 0 0 589.6 589.6"
	 xml:space="preserve">
<defs>
</defs>
<g>
	<circle fill="none" stroke-linecap="round" stroke-width="25" stroke-miterlimit="10" cx="294.8" cy="294.8" r="282.3"/>
	<circle fill="none" stroke-linecap="round" stroke-width="25" stroke-miterlimit="10" cx="294.8" cy="294.8" r="238.6"/>
	<circle fill="none" stroke-linecap="round" stroke-width="25" stroke-miterlimit="10" cx="294.8" cy="294.8" r="194.9"/>
	<circle fill="none" stroke-linecap="round" stroke-width="25" stroke-miterlimit="10" cx="294.8" cy="294.8" r="154.4"/>
	<circle fill="none" stroke-linecap="round" stroke-width="25" stroke-miterlimit="10" cx="294.8" cy="294.8" r="117.9"/>
</g>
</svg>

            
          
!
            
              var s = new Snap('#surface');

var colors = [
  '#e9edef', '#efad42', '#e9435a', '#4aadad', '#83cead'
];
var circles = s.selectAll('circle');
var circleGroups = [];

for (var i = 0; i < circles.length; i += 1) {
  var group = [];
  
  for (var j = 0; j < colors.length; j += 1) {
    var c = circles[i].clone();
    c.attr({
      stroke: colors[j]
    });
    
    var startPos = Math.random() * 1000; 
    var endPos = Math.random() * 100;
    
    var startLength = 3;
    var endLength = 10 + Math.random() * 30;
    
    var startLine = startPos + " " + startPos + startLength;
    var endLine = endPos + "% " + (endPos + endLength) + "%";
    var delay = (colors.length - j) / 10;
    
    TweenMax.fromTo(c.node, 3, {drawSVG: startLine}, {
      drawSVG: endLine, 
      delay: delay,
      ease: Quint.easeInOut,
      repeat: -1,
      repeatDelay: 0.25,
      yoyo: true
    });
    
    TweenMax.to(c.node, 3, {
      transformOrigin: '50% 50%', 
      rotation: '360deg', 
      ease: Back.easeInOut,
      delay: delay,
      repeat: -1, 
      repeatDelay: 0.25,
      yoyo: true
    });
    group.push(c);
  }
  
  circleGroups.push(group);
  circles[i].remove();
}


            
          
!
999px
Loading ..................

Console