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.

            
              <svg class="svg svg--rays" _viewBox="0 0 500 500">
    <circle r="50%" cx="50%" cy="50%" class="c-rays"></circle>
</svg>

<svg viewBox="0 0 280 280" class="svg svg--bird">
    <defs>
        <mask id="mask" maskunits="userSpaceOnUse"
              maskcontentunits="userSpaceOnUse">
            <image xlink:href="https://img-fotki.yandex.ru/get/15520/5091629.a4/0_8d416_118079e_orig" 
                   width="277" height="293"></image>
        </mask>
        
        <linearGradient id="gr-1" x1="0" y1="0" x2="100%" y2="100%">
              <stop offset="15%" class="stop-color stop-color--1"/>
              <stop offset="45%" class="stop-color stop-color--2"/>
              <stop offset="55%" class="stop-color stop-color--2"/>
              <stop offset="85%" class="stop-color stop-color--3"/>
        </linearGradient>
        
        <linearGradient id="gr-2" x1="0" y1="100%" x2="100%" y2="0%">
              <stop offset="15%" class="stop-color stop-color--4"/>
              <stop offset="45%" class="stop-color stop-color--5" stop-opacity="0"/>
              <stop class="stop-color stop-color--5" stop-opacity="0"/>
              <stop offset="85%" class="stop-color stop-color--6"/>
        </linearGradient>
    </defs>

    <g mask="url(#mask)" class="g-container">
        <rect 
              fill="url(#gr-1)" 
              width="100%" height="100%"
              ></rect>
        <rect 
              fill="url(#gr-2)" 
              width="100%" height="100%"
              ></rect>
    </g>
</svg>
            
          
!
            
              BODY {
    overflow: hidden;    
    background: #000;
}

.svg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
    
    &--rays {
        width: 100%;
        height: 100%;
    }
    &--bird {
        top: -60px;
        left: -30px;
        width: 280px;
        height: 280px;
    }
}

.stop-color {
    stop-color: crimson;
    animation: colors 3s linear infinite;
    
    &--2 {
        animation-delay: -1s;
    }
    &--3 {
        animation-delay: -.5s;
    }
    &--4 {
        animation-delay: -2s;
    }
    &--5 {
        animation-delay: -2.5s;
    }
    &--6 {
        animation-delay: -1.5s;
    }
}

@keyframes colors {
    0% {
        stop-color: maroon;
    }
    10% {
        stop-color: crimson;
    }
    20% {
        stop-color: orangered;
    }
    30% {
        stop-color: gold;
    }
    40% {
        stop-color: yellowgreen;
    }
    50% {
        stop-color: skyblue;
    }
    60% {
        stop-color: steelblue;
    }
    70% {
        stop-color: slateblue;
    }
    80% {
        stop-color: darkviolet;
    }
    90% {
        stop-color: purple;
    }
}

.svg--bird {
    animation: up-down 1.68s infinite ease-out;
}

@keyframes up-down {
    50% {
        transform: translate(0, 30px);
    }
}

.c-rays {
    stroke: hsl(0, 0, .9);
    stroke-width: 100%;
    stroke-dasharray: 5%;
    animation: rotate 20s linear infinite;
    transform-origin: 50% 50%;
    }

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}
            
          
!
999px
Loading ..................

Console