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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="wrapper">
        <div class="musical-note">
            <img src="https://image.flaticon.com/icons/svg/727/727204.svg">
        </div>
        <div class="musical-note-2">
            <img src="https://image.flaticon.com/icons/svg/727/727218.svg">
        </div>
        <div class="musical-note-3">
            <img src="https://image.flaticon.com/icons/svg/727/727204.svg">
        </div>
        <div class="musical-note-4">
            <img src="https://image.flaticon.com/icons/svg/727/727218.svg">
        </div>
        <div class="musical-note-5">
            <img src="https://image.flaticon.com/icons/svg/727/727204.svg">
        </div>
        <div class="backdrop"></div>
        <div class="button-1"></div>
        <div class="button-2"></div>
        <div class="button-3"></div>
        <div class="button-4"></div>
        <div class="button-5"></div>
        <div class="ariel-left"></div>
        <div class="ariel-right"></div>
        <div class="ariel-right-top"></div>
        <div class="ariel-left-top"></div>
        <div class="boombox-outer">
            <div class="boombox">
                
                <div class="radio-console"></div>
                <div class="radio-console-inner">
                    <div class="radio-frequency-1"></div>
                    <div class="radio-frequency-2"></div>
                    <div class="radio-frequency-3"></div>
                    <div class="radio-frequency-4"></div>
                    <div class="radio-frequency-5"></div>
                    <div class="radio-frequency-6"></div>
                    <div class="radio-frequency-7"></div>
                    <div class="radio-frequency-8"></div>
                    <div class="radio-frequency-9"></div>
                    <div class="radio-frequency-10"></div>
                </div>
                <div class="tape-deck"></div>
                <div class="tape-console"></div>
                <div class="tape-reel-1"></div>
                <div class="tape-reel-1-inner">
                    <div class="spindle"></div>
                </div>
                <div class="tape-reel-2"></div>
                <div class="tape-reel-2-inner">
                    <div class="spindle-right"></div>
                </div>
                <div class="tape-window-copy"></div>
                <div class="tape-window"></div>
                <div class="tape-button-1"></div>
                <div class="tape-button-2"></div>
                <div class="tape-button-3"></div>
                <div class="upper-speaker-left"></div>
                <div class="upper-speaker-left-inner"></div>
                <div class="upper-speaker-left-inner-copy"></div>
                <div class="upper-speaker-right"></div>
                <div class="upper-speaker-right-inner"></div>
                <div class="upper-speaker-right-inner-copy"></div>
                <div class="outer-speaker-left"></div>
                <div class="inner-speaker-left"></div>
                <div class="inner-speaker-left-copy"></div>
                <div class="inner-inner-speaker-left"></div>
                <div class="outer-speaker-right"></div>
                <div class="inner-speaker-right"></div>
                <div class="inner-speaker-right-copy"></div>
                <div class="inner-inner-speaker-right"></div>
                <iframe src="https://open.spotify.com/embed/track/2WRzpLD8qDRrxMXc63E5WJ" width="300" height="80" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
            </div>            
        </div>
    </div>
</body>
</html>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
  }
  
body {
    height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
    background-image: url('https://image.freepik.com/free-vector/memphis-pattern-background_53876-89953.jpg');
}

.wrapper {
    position: relative;
    width: 800px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.backdrop {
    position: absolute;
    width: 800px;
    height: 800px;
    transform: rotate(45deg);
    background: #4cf58a;
}

.button-1 {
    z-index: -1;
    position: absolute;
    width: 45px;
    height: 40px;
    border-radius: 10px;
    background: #a9b8c0;
    top: 60px;
    left: 270px;
    box-shadow: 2px 2px 2px 1px rgb(87, 81, 81);
}

.button-2 {
    z-index: -1;
    position: absolute;
    width: 45px;
    height: 40px;
    border-radius: 10px;
    background: #a9b8c0;
    top: 60px;
    left: 320px;
    box-shadow: 2px 2px 2px 1px rgb(87, 81, 81);
}

.button-3 {
    z-index: -1;
    position: absolute;
    width: 45px;
    height: 40px;
    border-radius: 10px;
    background: #a9b8c0;
    top: 60px;
    left: 370px;
    box-shadow: 2px 2px 2px 1px rgb(87, 81, 81);
}

.button-4 {
    z-index: -1;
    position: absolute;
    width: 45px;
    height: 40px;
    border-radius: 10px;
    background: #a9b8c0;
    top: 75px;
    left: 420px;
    box-shadow: 2px 2px 2px 1px rgb(87, 81, 81);
}

.button-5 {
    z-index: -1;
    position: absolute;
    width: 45px;
    height: 40px;
    border-radius: 10px;
    background: #a9b8c0;
    top: 60px;
    left: 470px;
    box-shadow: 2px 2px 2px 1px rgb(87, 81, 81);
}

.boombox-outer {
    z-index: 1;
    position: absolute;
    width: 720px;
    height: 320px;
    background: #2d6a8d;
    border-radius: 10px; 
    animation: music2 0.5s infinite ease;
}

@keyframes music2{
    0%{ transform: scale(1) }
    50%{ transform: scale(1.01) }
    100%{ transform: scale(1) }
  }

.boombox {
    z-index: 2;
    position: absolute;
    width: 700px;
    height: 300px; 
    border-radius: 10px;
    left: 10px;
    top: 10px;
    background: repeating-linear-gradient(180deg, #4cb8f5, #4cb8f5 5px, #48ace6 5px, #48ace6 10px);
}

.radio-console {
    z-index: 2;
    width: 300px;
    height: 60px;
    position: absolute;
    background: #2d6a8d;
    top: 20px;
    left: 195px;
    border-radius: 4px;
    border: solid 4px #a9b8c0;
    outline: 5px solid #46a9e2;
}

.radio-console-inner {
    z-index: 2;
    width: 280px;
    height: 40px;
    position: absolute;
    background: #a9b8c0;
    top: 30px;
    left: 205px;
    border-radius: 50px;
}

.outer-speaker-left {
    z-index: 2;
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: solid 15px #f5d72f;
    background: #a7a7a7;
    top: 120px;
    left: 20px;
    animation: music 0.5s infinite ease;
    box-shadow: 0 0 0 5px #d6bc2a;
}

.inner-speaker-left {
    z-index: 3;
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: repeating-linear-gradient(-45deg, rgb(95, 95, 95, 0.5), rgb(95, 95, 95, 0.5) 5px, transparent 5px, transparent 10px);
    top: 130px;
    left: 30px;
}

.inner-speaker-left-copy {
    z-index: 3;
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: repeating-linear-gradient(45deg, rgb(95, 95, 95, 0.5), rgb(95, 95, 95, 0.5) 5px, transparent 5px, transparent 10px);
    top: 130px;
    left: 30px;
}


.inner-inner-speaker-left {
    z-index: 2;
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgb(80, 93, 93, 0.5);
    top: 175px;
    left: 75px;
}

.outer-speaker-right {
    z-index: 2;
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: solid 15px #f5d72f;
    background: #a7a7a7;
    top: 120px;
    right: 20px;
    animation: music 0.5s infinite ease;
    box-shadow: 0 0 0 5px #d6bc2a;
}

.inner-speaker-right {
    z-index: 3;
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: repeating-linear-gradient(-45deg, rgb(95, 95, 95, 0.5), rgb(95, 95, 95, 0.5) 5px, transparent 5px, transparent 10px);
    top: 130px;
    right: 30px;
}

.inner-speaker-right-copy {
    z-index: 3;
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: repeating-linear-gradient(45deg, rgb(95, 95, 95, 0.5), rgb(95, 95, 95, 0.5) 5px, transparent 5px, transparent 10px);
    top: 130px;
    right: 30px;
}

.inner-inner-speaker-right {
    z-index: 2;
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgb(80, 93, 93, 0.5);
    top: 175px;
    right: 75px;
}

.tape-deck {
    z-index: 2;
    position: absolute;
    width: 210px;
    height: 120px;
    background: #2d6a8d;
    border: solid 4px #46a9e2;
    top: 150px;
    left: 245px;
    border-radius: 10px;
}

.tape-console {
    z-index: 2;
    position: absolute;
    width: 250px;
    height: 50px;
    background: #a9b8c0;
    border: solid 4px #46a9e2;
    top: 90px;
    left: 225px;
    border-radius: 50px;
}

.tape-button-1 {
    z-index: 2;
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgb(134, 134, 134);
    top: 98px;
    left: 240px;
    box-shadow: inset 4px 0px 0.7px 1px rgb(93, 93, 93);
}

.tape-button-2 {
    z-index: 2;
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgb(134, 134, 134);
    top: 98px;
    right: 240px;
    box-shadow: inset 4px 0px 0.7px 1px rgb(93, 93, 93);
}

.tape-button-3 {
    z-index: 2;
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgb(134, 134, 134);
    top: 98px;
    left: 330px;
    box-shadow: inset 4px 0px 0.7px 1px rgb(93, 93, 93);
}

.upper-speaker-left {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: solid 5px #f5d72f;
    background: rgb(187, 187, 187);
    top: 15px;
    left: 15px;
    animation: music 0.5s infinite ease;
    box-shadow: 0 0 0 5px #d6bc2a; 
}

@keyframes music{
    0%{ transform: scale(1.1) }
    50%{ transform: scale(1.15) }
    100%{ transform: scale(1.1) }
  }

.upper-speaker-left-inner {
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: repeating-linear-gradient(45deg, rgb(95, 95, 95, 0.5), rgb(95, 95, 95, 0.5) 5px, transparent 5px, transparent 10px);
    top: 18px;
    left: 18px;
}

.upper-speaker-left-inner-copy {
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: repeating-linear-gradient(-45deg, rgb(95, 95, 95, 0.5), rgb(95, 95, 95, 0.5) 5px, transparent 5px, transparent 10px);
    top: 18px;
    left: 18px;
}

.upper-speaker-right {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border-radius: 50%;
    border: solid 5px #f5d72f;
    background: rgb(187, 187, 187);
    top: 15px;
    right: 15px;
    animation: music 0.5s infinite ease;
    box-shadow: 0 0 0 5px #d6bc2a; 
}

.upper-speaker-right-inner {
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: repeating-linear-gradient(-45deg, rgb(95, 95, 95, 0.5), rgb(95, 95, 95, 0.5) 5px, transparent 5px, transparent 10px);
    top: 18px;
    right: 18px;
}

.upper-speaker-right-inner-copy {
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: repeating-linear-gradient(45deg, rgb(95, 95, 95, 0.5), rgb(95, 95, 95, 0.5) 5px, transparent 5px, transparent 10px);
    top: 18px;
    right: 18px;
}

.ariel-left {
    position: absolute;
    width: 5px;
    height: 150px;
    transform: rotate(-35deg);
    background: grey;
    top: -40px;
    left: 320px;
}

.ariel-right {
    position: absolute;
    width: 5px;
    height: 150px;
    transform: rotate(35deg);
    background: grey;
    top: -40px;
    right: 320px;
}

.ariel-left-top {
    position: absolute;
    width: 5px;
    height: 15px;
    transform: rotate(45deg);
    background: grey;
    top: -35px;
    left: 275px;
}

.ariel-right-top {
    position: absolute;
    width: 5px;
    height: 15px;
    transform: rotate(-45deg);
    background: grey;
    top: -35px;
    right: 275px;
}

.tape-reel-1 {
    z-index: 4;
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgb(54, 54, 54);
    top: 175px;
    left: 290px;
}

.tape-reel-1-inner {
    z-index: 4;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: solid 6px grey;
    top: 185px;
    left: 300px;
    animation-name: play;
    animation-duration: 5000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear; 
}

@keyframes play {
    from {
        transform:rotate(0deg);
    }
    to {
        transform:rotate(360deg);
    }
}

.spindle {
    position: absolute;
    width: 8px;
    height: 10px;
    background: grey;
    border-radius: 50px;
    transform: rotate(45deg);
    top: 15px;
}

.spindle::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 10px;
    background: grey;
    border-radius: 50px;
    transform: rotate(-45deg);
    top: -20px;
    left: -5px;
}

.spindle::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 10px;
    background: grey;
    border-radius: 50px;
    transform: rotate(45deg);
    top: -18px;
    left: 14px;
}

.spindle-right {
    position: absolute;
    width: 8px;
    height: 10px;
    background: grey;
    border-radius: 50px;
    top: 15px;
    left: 2px;
    transform: rotate(45deg);
}

.spindle-right::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 10px;
    background: grey;
    border-radius: 50px;
    top: -19px;
    left: px;
}

.spindle-right::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 10px;
    background: grey;
    border-radius: 50px;
    top: -10px;
    left: -13px;
    transform: rotate(90deg);
}

.tape-reel-2 {
    z-index: 4;
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgb(54, 54, 54);
    top: 175px;
    left: 365px;
}

.tape-reel-2-inner {
    z-index: 4;
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: solid 6px grey;
    top: 183px;
    left: 372px;
    animation-name: play;
    animation-duration: 5000ms;
    animation-iteration-count: infinite;
    animation-timing-function: linear; 
}

.tape-window {
    z-index: 5;
    position: absolute;
    width: 160px;
    height: 65px;
    background: transparent;
    border: solid 8px #32769e;;
    top: 170px;
    left: 275px;
}

.tape-window-copy {
    z-index: 2;
    position: absolute;
    width: 155px;
    height: 60px;
    background: #a9b8c0;
    top: 170px;
    left: 275px;
}

.radio-frequency-1 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 30px;
    top: 5px;
    border-radius: 50px;
}

.radio-frequency-1::before {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: -10px;
    border-radius: 50px;
}

.radio-frequency-1::after {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 10px;

}

.radio-frequency-2 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 60px;
    top: 5px;
    border-radius: 50px;
}

.radio-frequency-2::before {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: -10px;
    border-radius: 50px;
}

.radio-frequency-2::after {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 10px;

}

.radio-frequency-3 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 90px;
    top: 5px;
    border-radius: 50px;
}

.radio-frequency-3::before {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: -10px;
    border-radius: 50px;
}

.radio-frequency-3::after {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 10px;

}

.radio-frequency-4 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 120px;
    top: 5px;
    border-radius: 50px;
}

.radio-frequency-4::before {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: -10px;
    border-radius: 50px;
}

.radio-frequency-4::after {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 10px;

}

.radio-frequency-5 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 150px;
    top: 5px;
    border-radius: 50px;
}

.radio-frequency-5::before {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: -10px;
    border-radius: 50px;
}

.radio-frequency-5::after {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 10px;

}

.radio-frequency-6 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 180px;
    top: 5px;
    border-radius: 50px;
}

.radio-frequency-6::before {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: -10px;
    border-radius: 50px;
}

.radio-frequency-6::after {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 10px;
}

.radio-frequency-7 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 210px;
    top: 5px;
    border-radius: 50px;
}

.radio-frequency-7::before {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: -10px;
    border-radius: 50px;
}

.radio-frequency-7::after {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 10px;
}

.radio-frequency-8 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 240px;
    top: 5px;
    border-radius: 50px;
}

.radio-frequency-8::before {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: -10px;
    border-radius: 50px;
}

.radio-frequency-8::after {
    content: '';
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 10px;
}

.radio-frequency-9 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: rgb(87, 81, 81);
    left: 260px;
    top: 5px;
    border-radius: 50px;
}

.radio-frequency-10 {
    z-index: 5;
    position: absolute;
    width: 3px;
    height: 30px;
    background: red;
    left: 210px;
    top: 5px;
    border-radius: 50px;
}

.musical-note {
    z-index: 4;
    position: absolute;
    width: 50px;
    left: 100px;
    top: 10px;
    transform: rotate(-35deg);
    opacity: 0.8;
    animation: music3 2s 0.5s infinite ease;
}

.musical-note-2 {
    z-index: 4;
    position: absolute;
    width: 50px;
    left: 180px;
    top: 10px;
    transform: rotate(15deg);
    opacity: 0.8;
    animation: music3 0.5s infinite ease;
}

.musical-note-3 {
    z-index: 4;
    position: absolute;
    width: 50px;
    right: 100px;
    top: 10px;
    transform: rotate(-35deg);
    opacity: 0.8;
    animation: music3 2s 0.5s infinite ease;
}

.musical-note-4 {
    z-index: 4;
    position: absolute;
    width: 50px;
    right: 180px;
    top: 10px;
    transform: rotate(15deg);
    opacity: 0.8;
    animation: music3 0.5s infinite ease;
}

.musical-note-5 {
    z-index: 4;
    position: absolute;
    width: 50px;
    right: 380px;
    top: -40px;
    opacity: 0.8;
    animation: music3 2s 0.5s infinite ease;
}

@keyframes music3 {
    0%{opacity: 0}
    50%{opacity: 0.5}
    100%{opacity: 0.8}
}

iframe {
    position: absolute;
    top: 320px;
    left: 200px;
}
              
            
!

JS

              
                
              
            
!
999px

Console