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 class="container">
  <svg 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="600px" height="600px" viewBox="0 0 600 600" enable-background="new 0 0 600 600"
      <mask id="gradMask">
        <path id="tube" fill="#FFFFFF" d="M484.5,315.5h-369c-8.5,0-15.5-7-15.5-15.5v0c0-8.5,7-15.5,15.5-15.5h369
	c8.5,0,15.5,7,15.5,15.5v0C500,308.5,493,315.5,484.5,315.5z" />
      <pattern id="gradPattern" width="400" height="62.4" x="0" y="0" patternUnits="userSpaceOnUse">
        <rect x="0" y="0" fill="url(#rainbowGrad)" width="400" height="62.4" />
    <filter id="drop" x="-150%" y="-150%" width="280%" height="280%">
      <feOffset result="offOut" in="SourceGraphic" dx="0" dy="4" />
      <feGaussianBlur in="offOut" stdDeviation="16" result="blur" />

        <feFuncA type="linear" slope="0.7" intercept="0" />

      <feComposite in="SourceGraphic" operator="over" />


    <linearGradient id="rainbowGrad" gradientUnits="userSpaceOnUse" x1="00" y1="300" x2="400" y2="300">
      <stop offset="0" style="stop-color:#FFEB3B" />
      <stop offset="0.2" style="stop-color:#FFEB3B" />
      <stop offset="0.2" style="stop-color:#FF5722" />
      <stop offset="0.4" style="stop-color:#FF5722" />
      <stop offset="0.4" style="stop-color:#E91E63" />
      <stop offset="0.6" style="stop-color:#E91E63" />
      <stop offset="0.6" style="stop-color:#03A9F4" />
      <stop offset="0.8" style="stop-color:#03A9F4" />
      <stop offset="0.8" style="stop-color:#8CC63F" />
      <stop offset="1" style="stop-color:#8CC63F" />

    <g filter="url(#drop)">
      <g mask="url(#gradMask)">
        <rect id="grad" x="100" y="268.8" fill="url(#gradPattern)" width="400" height="62.4" />
    <line id="shine" fill="none" stroke="rgba(255,255,255,0.4)" stroke-width="4" stroke-linecap="round" stroke-miterlimit="10" stroke-dasharray="346,7" x1="124" y1="293" x2="479" y2="293" />


              body {
  overflow: hidden;

html {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;


              var xmlns = "http://www.w3.org/2000/svg",
  select = function(s) {
    return document.querySelector(s);
  selectAll = function(s) {
    return document.querySelectorAll(s);
  container = select('.container')

//center the container cos it's pretty an' that
TweenMax.set(container, {
  position: 'absolute',
  top: '50%',
  left: '50%',
  xPercent: -50,
  yPercent: -50
TweenMax.set('svg', {

var tl = new TimelineMax({repeat:-1});
tl.to('#gradPattern', 5, {
Loading ..................