Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel includes JSX processing.

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.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                audio#audio
    source#audio(src="https://rawcdn.githack.com/ricardoolivaalonso/Codepen/cc4996b50006214d2f3a1e8059bee90a7455d298/Space/audio.mp3",type="audio/mpeg")
        
svg.svg-icon(version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 122.88 65.79' style='enable-background:new 0 0 122.88 65.79' xml:space='preserve')
    g
        path.st0(d='M13.37,31.32c-22.23,12.2,37.65,19.61,51.14,19.49v-7.44l11.21,11.2L64.51,65.79v-6.97 C37.4,59.85-26.41,42.4,11.97,27.92c0.36,1.13,0.8,2.2,1.3,3.2L13.37,31.32L13.37,31.32z M108.36,8.31c0-2.61,0.47-4.44,1.41-5.48 c0.94-1.04,2.37-1.56,4.3-1.56c0.92,0,1.69,0.12,2.28,0.34c0.59,0.23,1.08,0.52,1.45,0.89c0.38,0.36,0.67,0.75,0.89,1.15 c0.22,0.4,0.39,0.87,0.52,1.41c0.26,1.02,0.38,2.09,0.38,3.21c0,2.49-0.42,4.32-1.27,5.47c-0.84,1.15-2.29,1.73-4.36,1.73 c-1.15,0-2.09-0.19-2.8-0.55c-0.71-0.37-1.3-0.91-1.75-1.62c-0.33-0.51-0.59-1.2-0.77-2.07C108.45,10.34,108.36,9.38,108.36,8.31 L108.36,8.31z M26.47,10.49l-9-1.6c0.75-2.86,2.18-5.06,4.31-6.59C23.9,0.77,26.91,0,30.8,0c4.47,0,7.69,0.83,9.69,2.5 c1.99,1.67,2.98,3.77,2.98,6.29c0,1.48-0.41,2.82-1.21,4.01c-0.81,1.2-2.02,2.25-3.65,3.15c1.32,0.33,2.34,0.71,3.03,1.15 c1.14,0.7,2.02,1.63,2.65,2.77c0.63,1.15,0.95,2.51,0.95,4.1c0,2-0.52,3.91-1.56,5.75c-1.05,1.83-2.55,3.24-4.51,4.23 c-1.96,0.99-4.54,1.48-7.74,1.48c-3.11,0-5.57-0.37-7.36-1.1c-1.8-0.73-3.28-1.8-4.44-3.22c-1.16-1.41-2.05-3.19-2.67-5.33 l9.53-1.27c0.38,1.92,0.95,3.26,1.74,4.01c0.78,0.74,1.78,1.12,3,1.12c1.27,0,2.33-0.47,3.18-1.4c0.85-0.93,1.27-2.18,1.27-3.74 c0-1.59-0.41-2.82-1.22-3.69c-0.81-0.87-1.92-1.31-3.32-1.31c-0.74,0-1.77,0.18-3.07,0.56l0.49-6.81c0.52,0.08,0.93,0.12,1.22,0.12 c1.23,0,2.26-0.4,3.08-1.19c0.82-0.79,1.24-1.72,1.24-2.81c0-1.05-0.31-1.88-0.93-2.49c-0.62-0.62-1.48-0.93-2.55-0.93 c-1.12,0-2.02,0.34-2.72,1.01C27.19,7.62,26.72,8.8,26.47,10.49L26.47,10.49z M75.15,8.27l-9.48,1.16 c-0.25-1.32-0.66-2.24-1.24-2.78c-0.59-0.54-1.31-0.81-2.16-0.81c-1.54,0-2.74,0.77-3.59,2.33c-0.62,1.13-1.09,3.52-1.38,7.19 c1.14-1.16,2.31-2.01,3.5-2.56c1.2-0.55,2.59-0.83,4.16-0.83c3.06,0,5.64,1.09,7.75,3.27c2.11,2.19,3.17,4.96,3.17,8.31 c0,2.26-0.53,4.32-1.6,6.2c-1.07,1.87-2.55,3.29-4.44,4.25c-1.9,0.96-4.27,1.44-7.13,1.44c-3.43,0-6.18-0.58-8.25-1.76 c-2.07-1.17-3.73-3.03-4.97-5.59c-1.24-2.56-1.86-5.95-1.86-10.18c0-6.18,1.3-10.71,3.91-13.59C54.13,1.44,57.74,0,62.36,0 c2.73,0,4.88,0.31,6.46,0.94c1.58,0.63,2.9,1.56,3.94,2.76C73.81,4.92,74.61,6.44,75.15,8.27L75.15,8.27z M57.62,23.55 c0,1.86,0.47,3.31,1.4,4.36c0.94,1.05,2.08,1.58,3.44,1.58c1.25,0,2.3-0.48,3.14-1.43c0.84-0.95,1.26-2.37,1.26-4.26 c0-1.93-0.44-3.41-1.31-4.42c-0.88-1.01-1.96-1.52-3.26-1.52c-1.32,0-2.44,0.49-3.34,1.48C58.06,20.32,57.62,21.72,57.62,23.55 L57.62,23.55z M77.91,17.57c0-6.51,1.17-11.07,3.52-13.67C83.77,1.3,87.35,0,92.14,0c2.31,0,4.2,0.29,5.68,0.85 c1.48,0.57,2.69,1.31,3.62,2.22c0.94,0.91,1.68,1.87,2.21,2.87c0.54,1.01,0.97,2.18,1.3,3.52c0.64,2.55,0.96,5.22,0.96,8 c0,6.22-1.05,10.76-3.16,13.64c-2.1,2.88-5.72,4.32-10.87,4.32c-2.88,0-5.21-0.46-6.99-1.38c-1.78-0.92-3.23-2.27-4.37-4.05 c-0.82-1.26-1.47-2.98-1.93-5.17C78.14,22.64,77.91,20.22,77.91,17.57L77.91,17.57z M87.34,17.59c0,4.36,0.38,7.34,1.16,8.94 c0.77,1.6,1.89,2.39,3.36,2.39c0.97,0,1.8-0.34,2.51-1.01c0.71-0.68,1.23-1.76,1.56-3.22c0.34-1.47,0.5-3.75,0.5-6.85 c0-4.55-0.38-7.6-1.16-9.18c-0.77-1.56-1.93-2.35-3.47-2.35c-1.58,0-2.71,0.8-3.42,2.39C87.69,10.31,87.34,13.27,87.34,17.59 L87.34,17.59z M112.14,8.32c0,1.75,0.15,2.94,0.46,3.58c0.31,0.64,0.76,0.96,1.35,0.96c0.39,0,0.72-0.13,1.01-0.41 c0.28-0.27,0.49-0.7,0.63-1.29c0.13-0.59,0.2-1.5,0.2-2.74c0-1.82-0.15-3.05-0.46-3.68c-0.31-0.63-0.77-0.94-1.39-0.94 c-0.63,0-1.09,0.32-1.37,0.96C112.28,5.4,112.14,6.59,112.14,8.32L112.14,8.32z M109.3,30.23c10.56,5.37,8.04,12.99-10.66,17.62 c-5.3,1.31-11.29,2.5-17.86,2.99v6.05c7.31-0.51,14.11-2.19,20.06-3.63c28.12-6.81,27.14-18.97,9.36-25.83 C109.95,28.42,109.65,29.35,109.3,30.23L109.3,30.23z')

div.main#h
    div.main-rotate
        div.shadows
            div.shadow-5.shadow
            div.shadow-4.shadow
            div.shadow-1.shadow
            div.shadow-2.shadow
            div.shadow-3.shadow
            div.light-1.shadow
            div.light-2.shadow
            div.light-3.shadow
            div.light-4.shadow
        
        div.wrapper-c1
            div.wrapper-c2
                div.wrapper-a
                    div.a
                        div.a__front.face.flex 
                            div.turbo
                                div.circle.flex
                                    div.circle-a  
                                        - var n = 0
                                        while n < 36
                                            div.circle-a__side
                                            - n++
                                        div.circle-a__bottom
                                        div.circle-a__top
                                div.circle.flex
                                    div.circle-b  
                                        - var n = 0
                                        while n < 36
                                            div.circle-b__side
                                            - n++
                                        div.circle-b__bottom
                                        div.circle-b__top
                    
                        div.a__back.face.flex.w1 
                            div.turbo-back
                                div.turbo-back__item
                                div.turbo-back__item
                                div.turbo-back__item
                                div.turbo-back__item

                            div.wave-1.wave
                            div.wave-2.wave
                            div.wave-3.wave
                            div.wave-4.wave
                            div.wave-5.wave
                                
                        div.a__right.face 
                        div.a__left.face 
                        div.a__top.face 
                            div.a__top-shadow.face
                            div.a__top-neon.face
                        div.a__bottom.face 
                    div.a
                        div.a__front.face.flex 
                            div.turbo
                                div.circle.flex
                                    div.circle-a  
                                        - var n = 0
                                        while n < 36
                                            div.circle-a__side
                                            - n++
                                        div.circle-a__bottom
                                        div.circle-a__top
                                div.circle.flex
                                    div.circle-b  
                                        - var n = 0
                                        while n < 36
                                            div.circle-b__side
                                            - n++
                                        div.circle-b__bottom
                                        div.circle-b__top
                                            
                        div.a__back.face.flex.w2
                            div.turbo-back
                                div.turbo-back__item
                                div.turbo-back__item
                                div.turbo-back__item
                                div.turbo-back__item
                            
                            div.wave-1.wave
                            div.wave-2.wave
                            div.wave-3.wave
                            div.wave-4.wave
                            div.wave-5.wave
                        div.a__right.face 
                        div.a__left.face 
                        div.a__top.face 
                            div.a__top-shadow.face
                            div.a__top-neon.face
                        div.a__bottom.face 
                    div.wings
                        div.wing
                            div.wing__front.face 
                            div.wing__back.face 
                            div.wing__right.face 
                            div.wing__left.face 
                            div.wing__top.face 
                            div.wing__bottom.face 
                        div.wing
                            div.wing__front.face 
                            div.wing__back.face 
                            div.wing__right.face 
                            div.wing__left.face 
                            div.wing__top.face 
                            div.wing__bottom.face 

                div.wrapper-b
                    div.b
                        div.b__front.face 
                        div.b__back.face 
                        div.b__right.face 
                        div.b__left.face 
                        div.b__top.face 
                        div.b__bottom.face 
                    div.c
                        div.c__front.face 
                            div.c__front-l.face 
                        div.c__back.face 
                        div.c__right.face 
                        div.c__left.face 
                        div.c__top.face 
                        div.c__bottom.face 
                    div.d
                        div.d__right.face 
                        div.d__left.face 
                        div.d__top.face 
                            div.d__top-l.face 
                        div.d__bottom.face 
                    div.e
                        div.e__front.face 
                            div.e__front-i.flex 
                                div.e__front-t.flex ◠‿◠
                        div.e__back.face 
                        div.e__right.face 
                        div.e__left.face 
                        div.e__bottom.face 
                    div.f
                        div.f__front.face 
                            div.f__front-i.face 
                        div.f__right.face 
                        div.f__left.face 
                        div.f__top.face 
                        div.f__bottom.face 
                    div.g
                        div.g__front.face 
                        div.g__right.face 
                        div.g__left.face 
                        div.g__top.face 
                        div.g__bottom.face 
                    div.h
                        div.h__front.face 
                        div.h__back.face 
                        div.h__right.face 
                        div.h__left.face 
                        div.h__top.face 
                        div.h__bottom.face 
                    div.i
                        div.i__right.face 
                        div.i__left.face 
              
            
!

CSS

              
                $unit: 1vw;
//
$bg-1: darken(#30beff, 8);
$bg-2: darken(#259bfd, 6);
$bg-3: darken(#1d7ce8, 4);
$blue-1: #32c8fe;
$blue-2: #27a2fe;
$blue-3: #1d88fe;
$blue-4: #0f55d7;
$blue-5: #042f7f;
$black-1: #363636;
$black-2: #1a1919;
$black-3: #0a0a0a;
$neon: #6bffff;
/***********************/
@mixin cylinder($base, $sides, $degree, $pi, $width, $color) {
    display: flex;
    justify-content: center;
    align-items: center;
	position: absolute;

    &__side{
        position: absolute;
        height: ( 2 * $pi * ($base / 2) ) / $sides ;
        width: $width;
        background-color: darken($color, 15);

        @for $var from 1 to ($sides + 1) {
            &:nth-of-type(#{$var}){ transform: rotateX( $var * $degree / $sides ) translateZ($base / 2); }
        }
        @for $var from 1 to 20 {
            &:nth-of-type(#{$var}){ background-color: darken($color, $var * .5); }
        }
        @for $var from 1 to 20 {
            &:nth-last-of-type(#{$var}){ background-color: darken($color, $var * .5); }
        }
    }
    &__top,
    &__bottom{
        position: absolute;
        width: $base;
        height: $base;
        border-radius: 50%;
        transform: rotateY(90deg) translateZ( $width / 2 );
    }
    &__bottom{ transform: rotateY(90deg) translateZ( $width / -2 );}
}
@mixin cube($width, $height, $depth) {
    &__front{ @include cube-front($width, $height, $depth); }
    &__back{ @include cube-back($width, $height, $depth); }
    &__right{ @include cube-right($width, $height, $depth); }
    &__left{ @include cube-left($width, $height, $depth); }
    &__top{ @include cube-top($width, $height, $depth);}
    &__bottom{ @include cube-bottom($width, $height, $depth); }
}
//----------------------
@mixin cube-front($width, $height, $depth) {
    width: $width;
    height: $height;
    transform-origin: bottom left;
    transform: rotateX(-90deg) translateZ( -($height - ($depth * 2) ) );
}
@mixin cube-back($width, $height, $depth) {
    width: $width;
    height: $height;
    transform-origin: top left;
    transform: rotateX(-90deg) rotateY(180deg) translateX(-$width) translateY(-$height) ;
}
@mixin cube-right($width, $height, $depth) {
    width: $depth * 2;
    height: $height;
    transform-origin: top left;
    transform: rotateY(90deg) rotateZ(-90deg) translateZ($width) translateX(-$depth * 2) translateY(-$height);
}
@mixin cube-left($width, $height, $depth) {
    width: $depth * 2;
    height: $height;
    transform-origin: top left;
    transform: rotateY(-90deg) rotateZ(90deg) translateY(-$height);
}
@mixin cube-top($width, $height, $depth) {
    width: $width;
    height: $depth * 2;
    transform-origin: top left;
    transform: translateZ($height) ;
}
@mixin cube-bottom($width, $height, $depth) {
    width: $width;
    height: $depth * 2;
    transform-origin: top left;
    transform: rotateY(180deg) translateX(-$width);
}
/***********************/
/***********************/
*, *::after, *::before {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
    transform-style: preserve-3d;

	user-select: none;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    font-family: 'Press Start 2P', cursive;
}
/***********************/
/***********************/
body{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;

    color: $blue-3;
    font-weight: bolder;
    overflow: hidden;
    background-image: linear-gradient(to bottom, $bg-3, $bg-2, $bg-1, darken($bg-1, 5));
}
.face{ position: absolute; }
.flex{
    display: flex;
    justify-content: center;
    align-items: center;
}
.svg-icon{
    position: absolute;
    left: 50%;
    bottom: 50px;
    width: 50px;
    height: 50px;

    z-index: 1;
    opacity: .65;
    transform: translateX(-50%);
    cursor: pointer;

    &:hover{ opacity: .9; }
    @media (max-height: 400px) { left: 50px; }

}
.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
	fill: white;
}
.svg-icon circle {
	stroke: white;
	stroke-width: 1;
}
/***********************/
/***********************/
.main{
    position: absolute;
    width: 24 * $unit;
    height: 25 * $unit;
    transform:
        perspective(300 * $unit)
        rotateX(60deg)
        rotateZ(30deg)
        translateZ(-8 * $unit)
    ;
    transition: transform 550ms ease-out;

    &-rotate{
        position: absolute;
        width: 100%;
        height: 100%;
    }
}
.wrapper-c1,
.wrapper-c2{
    width: 100%;
    height: 100%;
    position: absolute;
}
.wrapper-a{
    position:absolute;
    width: 100%;
    height: 100%;
    transform: translateZ(1 * $unit);

}
.wrapper-b{
    position:absolute;
    left: 50%;
    width: 9.5 * $unit;
    height: 100%;
    transform: translateX(-50%) translateZ(2 * $unit);
}
.shadows{
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(.85 * $unit);
}
.shadow{
    position: absolute;
    top: 0;
    border-radius: 2 * $unit;
    box-shadow: 0 0 2 * $unit lighten($blue-4, 10);
    background-image: radial-gradient(rgba(darken($blue-5, 3), .8) 40%, rgba(darken($blue-4, 3), .8) 70%);
}
.shadow-1,
.shadow-2{
    width: 8 * $unit;
    height: 17 * $unit;
}
.shadow-1{ left: -.5 * $unit; }
.shadow-2{ right: -.5 * $unit; }
.shadow-3{
    top: 4 * $unit;
    left: 50%;
    width: 11 * $unit;
    height: 20 * $unit;
    transform: translateX(-50%);
}
.shadow-4{
    top: 4 * $unit;
    width: 100%;
    height: 12 * $unit;
}
.shadow-5{
    top: 5 * $unit;
    left: -15%;
    width: 130%;
    height: 4 * $unit;
}
.light-1,
.light-2,
.light-3,
.light-4,{
    top: 14 * $unit;
    width: 5 * $unit;
    height: 24 * $unit;
    border-radius: 50%;
    box-shadow: 0 0 .5 * $unit lighten($neon, 10);
    background-image: linear-gradient(to bottom, rgba($neon, .185), rgba($neon, .4) 20%, rgba($neon, .25) 60%, rgba($neon, .05) );
}
.light-1{ left: 0; }
.light-2{ right: 0; }

.light-3,
.light-4{
    top: -10 * $unit;
    width: 7 * $unit;
    height: 16 * $unit;
}
.light-3{ left: 0; }
.light-4{ right: 0; }

.wave{
    position: absolute;
    border-radius: 50%;
}
// ==========================
.a{
    $width-el: 7 * $unit;
    $height-el: 7 * $unit;
    $depth-el: 8 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;
    position: absolute;

    &__front,
    &__back{
        background-position:
            0 0,
            0 100%,
            100% 0,
            100% 100%,
            49% 0
        ;
        background-size:
            10% 50%,
            10% 50%,
            10% 50%,
            10% 50%,
            82% 100%
        ;
        background-repeat: no-repeat;
    }
    &__back{
        box-shadow:  inset 0 0 0 .25 * $unit $neon;
        border-radius: 1.15 * $unit;
    }
    &__top,
    &__bottom{
        &::before,
        &::after{
            content: '';
            position: absolute;
            width: 1.1 * $unit;
            height: 100%;
        }
        &::before{
            left: 89%;
            transform-origin: left;
            transform: rotateY(45deg);
        }
        &::after{
            right: 89%;
            transform-origin: right;
            transform: rotateY(-45deg);
        }
    }
    &__bottom{ background-image: linear-gradient(to right, transparent 10%, $blue-4 10%, darken($blue-4, 4) 90%, transparent 90% ); }

    &:nth-of-type(1){
        left: 0;
        .a__front{
            background-image:
                linear-gradient(-45deg, $blue-2 2.4125 * $unit, transparent 2.4125 * $unit),
                linear-gradient(45deg, transparent .525 * $unit, darken($blue-3, 10) .525 * $unit, $blue-2),
                linear-gradient(45deg, $blue-2 2.4125 * $unit, transparent 2.4125 * $unit),
                linear-gradient(-45deg, transparent .525 * $unit, darken($blue-3, 10) .525 * $unit, $blue-2),
                linear-gradient(to bottom, $blue-2 50%, darken($blue-3, 10))
            ;
        }
        .a__back{
            background-image:
                linear-gradient(-45deg, $blue-3  2.4125 * $unit, transparent 2.4125 * $unit),
                linear-gradient(45deg, transparent .525 * $unit, darken($blue-3, 5) .525 * $unit, $blue-3),
                linear-gradient(45deg, $blue-3 2.4125 * $unit, transparent 2.4125 * $unit),
                linear-gradient(-45deg, transparent .525 * $unit, darken($blue-3, 5) .525 * $unit, $blue-3),
                linear-gradient(to bottom, $blue-3 50%, darken($blue-3, 5))
            ;
        }
        .a__top{
            background-image: linear-gradient(to right,  transparent 10%, lighten($blue-1, 4) 10%, darken($blue-1, 4) 90%, transparent 90% );
            &::before{ background-color: lighten($blue-2, 1); }
            &::after{ background-color: lighten($blue-1, 5); }

            &-shadow{
                top: 2.75 * $unit;
                right: 1 * $unit;
                width: 3 * $unit;
                height: 9 * $unit;

                transform-origin: bottom right;
                transform: skewY(-40deg) translateZ(1px);
                background-image: linear-gradient(to left, rgba($blue-1, .6), rgba($neon, .4), rgba($neon, .2) );
                filter: blur(.45 * $unit);
            }

            &-neon{
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                width: .5 * $unit;
                height: 100%;

                background-color: lighten($neon, 5);
                box-shadow: inset 0 0 .15 * $unit $blue-5;
            }
        }
        .a__right{ background-image: linear-gradient(to bottom, transparent 10%, darken($blue-3, 10) 10%, darken($blue-3, 16) 90%, transparent 90%); }
        .a__left{
            background-image: linear-gradient(to bottom, transparent 10%, lighten($blue-1, 3) 10%, darken($blue-1, 6) 90%, transparent 90%);

            &::before{
                content: '';
                position: absolute;
                bottom: 10%;
                right: 7 * $unit;
                width: 4 * $unit;
                height: 2.5 * $unit;

                transform-origin: top left;
                transform: skewX(20deg);
                background-image: linear-gradient(to bottom, darken($blue-2, 2), rgba($blue-2,.2));
                filter: blur(.15 * $unit);
            }
        }
        .a__bottom{
            &::before{ background-color: $blue-3; }
            &::after{ background-color: $blue-4; }
        }
    }
    &:nth-of-type(2){
        right: 0;
        .a__front{
            background-image:
                linear-gradient(-45deg, darken($blue-2, 6) 2.4125 * $unit, transparent 2.4125 * $unit),
                linear-gradient(45deg, transparent .525 * $unit, darken($blue-3, 14) .525 * $unit, $blue-2),
                linear-gradient(45deg, darken($blue-2, 6) 2.4125 * $unit, transparent 2.4125 * $unit),
                linear-gradient(-45deg, transparent .525 * $unit, darken($blue-3, 14) .525 * $unit, darken($blue-2, 6)),
                linear-gradient(to bottom, darken($blue-2, 6) 50%, darken($blue-3, 14))
            ;
        }
        .a__back{
            background-image:
                linear-gradient(-45deg, darken($blue-3, 3)  2.4125 * $unit, transparent 2.4125 * $unit),
                linear-gradient(45deg, transparent .525 * $unit, darken($blue-3, 6) .525 * $unit, $blue-3),
                linear-gradient(45deg, darken($blue-3, 3) 2.4125 * $unit, transparent 2.4125 * $unit),
                linear-gradient(-45deg, transparent .525 * $unit, darken($blue-3, 6) .525 * $unit, $blue-3),
                linear-gradient(to bottom, darken($blue-3, 3) 50%, darken($blue-3, 6))
            ;
        }
        .a__top{
            background-image:
                linear-gradient(60deg, rgba($blue-2, .8), rgba($blue-2, .45) 48%, transparent 50% ),
                linear-gradient(to right, transparent 10%, $blue-1 10%, darken($blue-1, 4) 90%, transparent 90% )
            ;
            background-size:
                80% 100%,
                100% 100%
            ;
            background-position:
                52% 0,
                0 0
            ;
            background-repeat: no-repeat;

            &::before{ background-image: linear-gradient(to right, $blue-2, $blue-3); }
            &::after{ background-image: linear-gradient(to left, darken($blue-1, 5), $blue-3); }

            &-shadow{
                top: 2.75 * $unit;
                left: 1.5 * $unit;
                width: 3 * $unit;
                height: 9 * $unit;

                transform-origin: bottom left;
                transform: skewY(40deg) translateZ(1px);
                background-image: linear-gradient(to right, rgba($neon, .1), rgba($neon, .315), rgba($neon, .215) );
                filter: blur(.5 * $unit);
            }
            &-neon{
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                width: .5 * $unit;
                height: 100%;

                background-color: $neon;
                box-shadow: inset 0 0 .15 * $unit $blue-5;
            }
        }
        .a__right{
            background-image: linear-gradient(to bottom, transparent 10%, darken($blue-3, 3) 10%, darken($blue-3, 13) 90%, transparent 90%);
            &::before{
                content: '';
                position: absolute;
                bottom: 10%;
                left: 7 * $unit;

                width: 4 * $unit;
                height: 2.5 * $unit;
                transform-origin: top left;
                transform: skewX(-20deg);
                background-image: linear-gradient(to bottom, rgba($blue-4,.9), rgba($blue-4,.2));
                filter: blur(.15 * $unit);
            }
        }
        .a__left{ background-image: linear-gradient(to bottom, transparent 10%, darken($blue-3, 2) 10%, darken($blue-3, 15) 90%, transparent 90%); }
        .a__bottom{
            &::before{ background-color: $blue-4; }
            &::after{ background-color: $blue-4; }
        }
    }
}

.b{
    $width-el: 9.5 * $unit;
    $height-el: 10 * $unit;
    $depth-el: 5 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;
    position: absolute;
    top: 2.1 * $unit;

    &__front{ background-color: $blue-5; }
    &__back{
        background-image: linear-gradient(to bottom, lighten($blue-3, 4), $blue-3 20% ,darken($blue-3, 12));

        &::before{
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            padding: .75 * $unit;

            background-image:
                radial-gradient(rgba($neon, .2) 20%, transparent 21%),
                radial-gradient(rgba($neon, .2) 20%, transparent 21%)
            ;
            background-size: .75 * $unit .75 * $unit;
            background-repeat: repeat;
            background-clip: content-box;
        }
    }
    &__left,
    &__right{
        padding: .6 * $unit;
        &::before{
            content: '';
            display: block;
            width: 100%;
            height: 2 * $unit;
        }
    }
    &__left{
        background-image: linear-gradient(to bottom, lighten($blue-1, 4), $blue-1 30%, $blue-4 );

        &::before{
            background-image: linear-gradient(to bottom, lighten($neon, 5), $neon);
            box-shadow:
                0 0 .95 * $unit lighten($neon, 5),
                inset 0 0 .5 * $unit lighten($neon, 5);
        }
    }
    &__right{
        background-image: linear-gradient(to bottom, $blue-3, darken($blue-3, 5) 30%, darken($blue-3, 20) );

        &::before{
            background-image: linear-gradient(to top, darken($neon, 5), $neon);
            box-shadow:
                0 0 .95 * $unit darken($neon, 5),
                inset 0 0 .5 * $unit darken($neon, 10);
        }
    }
    &__top{ background-image: linear-gradient(to right, darken($blue-1, 1) , darken($blue-1, 10) ); }
    &__bottom{ background-color: $blue-4; }
}
.c{
    $width-el: 9.5 * $unit;
    $height-el: 10 * $unit;
    $depth-el: 2.5 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;
    position: absolute;
    top: 12.25 * $unit;

    &__front{
        background-color: $blue-2;

        &-l{
            position: absolute;
            top: 0;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(to bottom, transparent 15%, rgba($neon, .3) 15%, rgba($neon, .4));
        }
    }
    &__back{ background-color: $blue-5; }
    &__left{ background-image: linear-gradient(to bottom, lighten($blue-1, 4), $blue-1 30%, $blue-4 );}
    &__right{ background-image: linear-gradient(to bottom, $blue-3, darken($blue-3, 5) 30%, darken($blue-3, 20) ); }
    &__top{ background-image: linear-gradient(to right, darken($blue-1, 1) , darken($blue-1, 10) ); }
    &__bottom{ background-color: $blue-4; }
}

.d{
    $width-el: 9.5 * $unit;
    $height-el: .6 * $unit;
    $depth-el: 2.875 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;
    position: absolute;

    &__left{ background-image: linear-gradient(to right, darken($blue-3, 5), $blue-1); }
    &__right{ background-image: linear-gradient(to left, darken($blue-3, 10), $blue-3 ); }
    &__top{
        background-image: linear-gradient(to bottom, darken($blue-3, 14), darken($blue-3, 8) 40%, darken($blue-3, 3));

        &-l{
            position: absolute;
            top: 0;
            width: 100%;
            height: 100%;
            background-image: linear-gradient(to right, rgba($neon, .3), rgba($neon, .4));
        }
    }
    &__bottom{ background-color: $blue-4; }

    bottom: 2 * $unit;
}
.e{
    $width-el: 9.5 * $unit;
    $height-el: 8.5 * $unit;
    $depth-el: .3 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;
    position: absolute;
    bottom: 1.4 * $unit;

    &__front{
        background-color: $blue-2;
        padding: .6 * $unit;

        &-i{
            width: 100%;
            height: 2 * $unit;

            background-image: linear-gradient(to bottom, $neon, darken($neon, 2));
            box-shadow:
                0 0 .95 * $unit darken($neon, 5),
                inset 0 0 .25 * $unit darken($neon, 10);
            overflow: hidden;

            &::before{
                content: '';
                position: absolute;
                width: 3 * $unit;
                height: 100%;
                left: 0;

                transform-origin: top left;
                transform: skewX(20deg);
                background-image: linear-gradient(to right, rgba($neon, .075), transparent) ;
                filter: blur(.2 * $unit);
            }
        }
        &-t{
            position: absolute;
            width: 100%;
            height: 100%;
            font-size: 1 * $unit;
        }
    }
    &__back{ background-color: $blue-1; }
    &__left{ background-image: linear-gradient(to bottom, lighten($blue-1, 4), $blue-1 ); }
    &__right{ background-color:  $blue-3; }
    &__bottom{ background-color: $blue-4; }
}
.f{
    $width-el: 9.5 * $unit;
    $height-el: .6 * $unit;
    $depth-el: 3.15 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;
    position: absolute;

    bottom: 1.5 * $unit;
    transform: translateZ(8.5 * $unit);

    &__front{
        &-i{
            position: absolute;
            bottom: 0;

            width: 100%;
            height: 2.8 * $unit;
            transform-origin: bottom;
            transform: rotateX(78deg);
            background-image: linear-gradient(to right, darken($blue-1, 1) , darken($blue-1, 10) );

        }
    }
    &__left{
        background-image: linear-gradient(12deg, lighten($blue-1, 4) 70%, transparent 70%);
        &::before{
            content: '';
            position: absolute;
            top: 100%;
            right: .5 * $unit;
            width: 40%;
            height: 200%;
            background-image: linear-gradient(12deg, transparent 70%, lighten($blue-1, 5) 70%);
        }
    }
    &__right{
        background-image: linear-gradient(-12deg, $blue-3 70%, transparent 70%);
        &::before{
            content: '';
            position: absolute;
            top: 100%;
            left: .5 * $unit;
            width: 40%;
            height: 200%;
            background-image: linear-gradient(-12deg, transparent 70%, $blue-3 70%);
        }
    }
    &__top{
        background-image: linear-gradient(to bottom, $blue-1 60%, transparent 60%);

        &::after{
            content: '';
            position: absolute;
            top: 0;
            width: 100%;
            height: 60%;
            background-image: linear-gradient(to right, darken($blue-1, 1) , darken($blue-1, 10) );
        }
    }
    &__bottom{ background-color: $blue-1;  }
}

.g{
    $width-el: 9.5 * $unit;
    $height-el: 5 * $unit;
    $depth-el: .5 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;
    position: absolute;
    bottom: .5 * $unit;

    &__front{
        background-image: linear-gradient(to top, darken($blue-2, 5) 3.9 * $unit, transparent 3.9 * $unit);

        &::before{
            content: '';
            position: absolute;
            bottom: 1.75 * $unit;
            height: .5 * $unit;
            width: 100%;
            background-color: $neon;
            box-shadow:
                inset 0 0 .15 * $unit $blue-5,
                0 0 .15 * $unit $neon
            ;
        }

    }
    &__left{ background-image: linear-gradient(45deg, $blue-1 3.55 * $unit, transparent 3.55 * $unit); }
    &__right{ background-image: linear-gradient(-45deg, $blue-3 3.55 * $unit, transparent 3.55 * $unit); }
    &__top{
        &::before{
            content: '';
            display: block;
            height: 1.5 * $unit;
            transform-origin: top left;
            transform: rotateX(-46deg);
            background-image: linear-gradient(to right, $blue-1, darken($blue-1, 3));
        }

    }
    &__bottom{ background-color: $blue-4; }
}
.h{
    $width-el: .425 * $unit;
    $height-el: 1 * $unit;
    $depth-el: 6.35 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;

    position: absolute;
    transform: translateX(-50%) translateZ(10.1 * $unit);
    left: 50%;
    bottom: 9 * $unit;

    &__front{ background-color: $blue-2; }
    &__back{ background-image: linear-gradient(to bottom, $blue-3, darken($blue-3, 5) 80%); }
    &__left{ background-image: linear-gradient(to bottom, lighten($blue-1, 5), lighten($blue-1, 2) ); }
    &__right{ background-image: linear-gradient(to bottom, $blue-3, darken($blue-3, 4)); }
    &__top{
        background-color: $neon;
        box-shadow: 0 0 .5 * $unit lighten($neon, 5);
    }
    &__bottom{
        background-color: $blue-3;

        &::before{
            content: '';
            position: absolute;
            right: 0%;
            width: 2.25 * $unit;
            height: 100%;

            background-image: linear-gradient(to right, rgba($blue-2, .5) 10%, darken($blue-2, 10));
            transform-origin: right bottom;
            transform: skewY(-20deg);
            filter: blur(.2 * $unit);
        }
    }
}
.i{
    $width-el: 9 * $unit;
    $height-el: 8  * $unit;
    $depth-el: 2.85 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;
    position: absolute;
    bottom: 2 * $unit;
    left: .25 * $unit;
    transform:  translateZ(.6 * $unit);


    &__left{
        background-image: linear-gradient(to bottom, lighten($neon, 5), $neon);
        box-shadow:inset 0 0 .5 * $unit lighten($neon, 5);
    }
    &__right{
        background-image: linear-gradient(to top, darken($neon, 10), $neon);
        box-shadow: inset 0 0 .5 * $unit darken($neon, 10);
    }
}
.wing{
    $width-el: 4 * $unit;
    $height-el: .5 * $unit;
    $depth-el: 2 * $unit;

    @include cube($width-el, $height-el, $depth-el);
    width: $width-el;
    height: $depth-el * 2;

    position: absolute;
    top: 5 * $unit;

    transform: translateZ(3 * $unit);

    &:nth-of-type(1){
        left: 100%;
        .wing__front{
            &::before{
                content: '';
                position: absolute;
                left: 0;
                width: 145%;
                height: 100%;
                transform-origin: bottom left;
                transform: rotateY(45deg);
                background-image: linear-gradient(to right, $blue-3, $blue-2);
            }
        }
        .wing__back{ background-image: linear-gradient(to bottom, darken($blue-3, 2) 50%,darken($blue-3, 10)); }
        .wing__left{ background-image: linear-gradient(to bottom, lighten($blue-1, 4), $blue-1 ); }
        .wing__top{ background-image: linear-gradient(-45deg, transparent 50%, $blue-1 50%, darken($blue-2, 1) ); }
        .wing__bottom{ background-image: linear-gradient(45deg, transparent 50%, $blue-4 50%); }

    }
    &:nth-of-type(2){
        right: 100%;
        .wing__front{

            &::before{
                content: '';
                position: absolute;
                right: 0;
                width: 145%;
                height: 100%;
                transform-origin:  bottom right;
                transform: rotateY(-45deg);
                background-image: linear-gradient(to right, $blue-2, darken($blue-2, 5));
            }
        }
        .wing__back{ background-image: linear-gradient(to bottom, darken($blue-3, 2) 50%,darken($blue-3, 10));}
        // .wing__left{ background-image: linear-gradient(to bottom, lighten($blue-1, 4), $blue-1 ); }
        .wing__right{ background-image: linear-gradient(to bottom, $blue-3, darken($blue-3, 4)); }
        .wing__top{ background-image: linear-gradient(45deg, transparent 50%, lighten($blue-1, 3) 50%, $blue-1 ); }
        .wing__bottom{ background-image: linear-gradient(-45deg, transparent 50%, $blue-4 50%); }
    }
}
/*---------------------*/
.turbo{
    position: absolute;
    width: 5.5 * $unit;
    height: 5.5 * $unit;
}
.circle{
    $sides: 36;
    $degree: 360deg;
    $width: 1 * $unit;

    width: 5.5 * $unit;
    height: 5.5 * $unit;
    position: absolute;

    &-a{
        $base: 5.5 * $unit;
        $pi: 3.5;

        position: absolute;
        width: $width;
        height: $base;
        transform: rotateY(90deg) translateX(-50%);

        @include cylinder($base, $sides, $degree, $pi, $width, lighten($black-2, 4));
        &__bottom{
            border: .115 * $unit solid $neon;
            background-image: radial-gradient(circle, transparent 50%, $black-3 50%);

        }
        &__top{
            outline: .2 * $unit solid rgba($blue-3, .9);
            box-shadow:  0 0 1 * $unit darken($neon, 10);
        }
    }
    &-b{
        $base: 4 * $unit;
        $pi: 3.5;

        position: absolute;
        width: $width;
        height: $base;
        transform: rotateY(90deg) translateX(-50%);

        @include cylinder($base, $sides, $degree, $pi, $width, darken($neon, 40));
        &__bottom{
            background-image: radial-gradient(circle, $neon 30%, darken($neon, 20));
            box-shadow:
                inset 0 0 1 * $unit .25 * $unit lighten($neon, 15),
                0 0 1 * $unit .5 * $unit $blue-5
            ;
            transform: rotateY(90deg) translateZ( .45 * $unit );
        }
    }
}
.turbo-back{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-gap: .25 * $unit;
    justify-items: center;
    align-items: center;

    width: 85%;
    height: 85%;

    &__item{
        width: 2.5 * $unit;
        height: 2.5 * $unit;

        background-color: $neon;
        border-radius: 50%;
        box-shadow:
            inset 0 0 .5 * $unit .125 * $unit rgba($black-1, .25),
            0 0 .5 * $unit .25 * $unit rgba($blue-4, .125),
            0 0 .5 * $unit darken($neon, 10)

        ;
    }
}

              
            
!

JS

              
                /*
		Designed by: Adam Witton
		Original image: https://dribbble.com/shots/3958361-Mini-Spaceship
*/

gsap.registerPlugin()

const vw = (size) => window.innerWidth * ( size/100 )
const svg = document.querySelector('.svg-icon')
const a = document.querySelector("#audio");
const rotate = new TimelineMax({ paused: true })
const wings = new TimelineMax({ reversed: true })

const rotateSpaceFunc = () => {
    rotate.paused(!rotate.paused())
    wings.reversed(!wings.reversed())

    a.loop = true
    if(a.paused) { a.play() }
    else {
        a.pause()
        a.currentTime = 0
    }
}

svg.addEventListener('click',  rotateSpaceFunc)

// ===========================
wings.staggerTo(".wrapper-a",.3, {
    z: vw(2.125),
    ease: "power1.inOut"
})

rotate.staggerTo(".main-rotate", 8, {
    rotation: 360,
    repeat: -1,
    ease: 'none'
})

gsap.to(".wrapper-c1", {
    z: vw(1.85),
    duration: .75,
    repeat: -1,
    yoyo: true,
    ease: "power1.inOut"
})

gsap.to(".wrapper-c2", { keyframes:[
    {
        rotationX: 0,
        rotationY: 0,
        repeat: -1,
        yoyo: true,
    },
    {
        rotationX: -3,
        rotationY: 2,
        repeat: -1,
        yoyo: true,
    },
    {
        rotationX: 3,
        rotationY: 0,
        repeat: -1,
        yoyo: true,
    },
    {
        rotationX: -1,
        rotationY: 0,
        repeat: -1,
        yoyo: true,
    }

], ease: "sine" })

gsap.to(".shadows", {
    transform: "scale(.935)",
    opacity: .75,
    duration: .75,
    webkitFilter: `blur(${vw(1)})`,
    repeat: -1,
    yoyo: true,
    ease: "power1.inOut"
})

gsap.to(".light-3, .light-4", {
    height: vw(15),
    y: vw(1),
    duration: .1,
    repeat: -1,
    yoyo: true,
    ease: "linear",
})

gsap.to(".w1 .wave", {
    height: vw(10),
    width: vw(10),
    z: vw(16),
    duration: .5,
    repeat: -1,
    stagger: 0.1,
    delay: .5,
    border: `${vw(.025)}vw solid rgba(255,255,255,0)`,
    ease: "power1",
})

gsap.to(".w2 .wave", {
    height: vw(10),
    width: vw(10),
    z: vw(16),
    duration: .5,
    repeat: -1,
    stagger: 0.1,
    delay: .5,
    border: `${vw(.025)}vw solid rgba(255,255,255,0)`,
    ease: "power1",
})

gsap.to(".e__front-t", {
    opacity: 0,
    repeat: -1,
    duration: 2,
    ease: CustomEase.create("custom", "M0,0,C0.037,0,0.014,0.938,0.05,0.948,0.353,1.03,0.737,-0.058,0.944,-0.004,0.944,-0.004,0.944,-0.004,0.944,-0.004,0.998,0.01,0.959,0.942,1,1"),
})

              
            
!
999px

Console