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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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="wrapper">
	
	<h1 class="title text-shadow">
		RetroCade
	</h1>

	<div class="mag is-stopped">
		
		<div class="mag__handle">
			<div class="mag__handle__rail mag__handle__rail--left"></div>
			<div class="mag__handle__rail mag__handle__rail--right"></div>
			<div class="mag__handle__cover"></div>
		</div>
		
		<div class="mag__case mag__case--left"></div>
		<div class="mag__case mag__case--right"></div>
		
		<div class="mag__top">
			
			<div class="reels">
				
				<div class="reel reel--left shadow">
					<div class="reel__wrapper">
						<div class="reel__inner">
							<div class="reel__mask reel__mask--int"></div>
							<div class="reel__mask reel__mask--ext"></div>

							<div class="reel__brand">
								<div class="reel__brand__title">WolfPilot</div>
								<div class="reel__brand__subtitle">RetroCade R2R Tape Recorder</div>
							</div>

							<div class="reel__tape"></div>

							<div class="panel panel--1"></div>
							<div class="panel panel--2"></div>
							<div class="panel panel--3"></div>

							<div class="reel__mid">
								<div class="reel__mid__inner"></div>
							</div>
						</div>
					</div>
				</div>
				
				<div class="reel reel--right shadow">
					<div class="reel__wrapper">
						<div class="reel__inner">
							<div class="reel__mask reel__mask--int"></div>
							<div class="reel__mask reel__mask--ext"></div>

							<div class="reel__brand">
								<div class="reel__brand__title">WolfPilot</div>
								<div class="reel__brand__subtitle">RetroCade R2R Tape Recorder</div>
							</div>

							<div class="reel__tape"></div>

							<div class="panel panel--1"></div>
							<div class="panel panel--2"></div>
							<div class="panel panel--3"></div>

							<div class="reel__mid">
								<div class="reel__mid__inner"></div>
							</div>
						</div>
					</div>
				</div>
				
			</div>
			
			<div class="tape">
				<div class="tape__segment tape__segment--1"></div>
				<div class="tape__segment tape__segment--2"></div>
				<div class="tape__segment tape__segment--3"></div>
				
				<div class="tape__segment tape__segment--4"></div>
				<div class="tape__segment tape__segment--5"></div>
				<div class="tape__segment tape__segment--6"></div>
			</div>
			
			<div class="rolls">
				<div class="roll roll--left sml"></div>
				<div class="roll roll--left big"></div>
				<div class="roll roll--right sml"></div>
				<div class="roll roll--right med"></div>
				<div class="roll roll--right big"></div>
			</div>
			
			<div class="display">
				
				<div class="display__top">
					<div class="display__screen">
						
						<div class="display__text">
							<span class="display__msg display__msg--welcome">
								Hello!
							</span>

							<span class="display__msg display__msg--standby">
								Stand by
							</span>

							<span class="display__msg display__msg--counter">
								00:00:00
							</span>

							<span class="display__msg display__msg__goodbye">
								Goodbye!
							</span>
						</div>
						
					</div>
				</div>
				
				<div class="display__mid">
					<div class="copy">
						
						<span class="brand">
							WolfPilot
						</span>
						
						<p class="subtitle">
							RetroCade R2R Tape Recorder
						</p>
						
					</div>
				</div>
				
				<div class="display__bot"></div>
			</div>
			
		</div>

		<div class="mag__mid">
			<div class="crop"></div>
		</div>
		
		<div class="mag__bot">
			
			<div class="screws">
				<div class="screw screw--top screw--left"></div>
				<div class="screw screw--top screw--right"></div>
				<div class="screw screw--bot screw--right"></div>
				<div class="screw screw--bot screw--left"></div>
			</div>

			<div class="power">
				<div class="power__switch">
					
					<button class="power__btn power__btn--on js-power-on">
						I
					</button>
					<button class="power__btn power__btn--off js-power-off">
						O
					</button>
					
					<div class="power__light">
						<div class="power__light__inner"></div>
					</div>
				</div>
				
				<div class="power__input"></div>
			</div>
			
			<div class="volume-sliders">
				<div class="rail rail--left">
					<div class="path"></div>
					<div class="slider shadow2"></div>
				</div>

				<div class="rail rail--right">
					<div class="path"></div>
					<div class="slider shadow2"></div>
				</div>
			</div>

			<div class="dials">
				<div class="dial dial--top shadow2"></div>
				<div class="dial dial--bot shadow2"></div>
			</div>
			
			<div class="panel">
				<div class="volume-gauges">

					<div class="gauge gauge--left">
						<div class="range">
							<div class="mask mask--circle"></div>
							<div class="mask mask--rectangle"></div>
						</div>

						<div class="needle"></div>
						<div class="centre"></div>
					</div>

					<div class="gauge gauge--right">
						<div class="range">
							<div class="mask mask--circle"></div>
							<div class="mask mask--rectangle"></div>
						</div>

						<div class="needle"></div>
						<div class="centre"></div>
					</div>

				</div>

				<div class="ctrls">
					
					<div class="ctrl ctrl--fbw">
						<div class="light"></div>
						<button class="btn js-fbw">
							<span class="icon icon-fast-bw"></span>
						</button>
					</div>

					<div class="ctrl ctrl--ffw">
						<div class="light"></div>
						<button class="btn js-ffw">
							<span class="icon icon-fast-fw"></span>
						</button>
					</div>

					<div class="ctrl ctrl--stop">
						<div class="light"></div>
						<button class="btn js-stop">
							<span class="icon icon-stop"></span>
						</button>
					</div>

					<div class="ctrl ctrl--play">
						<div class="light active"></div>
						<button class="btn js-play">
							<span class="icon icon-play"></span>
						</button>
					</div>

					<div class="ctrl ctrl--rec">
						<div class="light"></div>
						<button class="btn btn--rec js-rec">
							<span class="icon icon-record"></span>
						</button>
					</div>
				</div>
			</div>
			
			<div class="io">
				<div class="input input--1"></div>
				<div class="input input--2"></div>
				<div class="input input--3"></div>
			</div>
			
		</div>
		<div class="mag__feet">
			<div class="foot foot--left"></div>
			<div class="foot foot--right"></div>
		</div>
		
	</div>
	
</div>
            
          
!
            
              /* Variables */

$black:				#000;
$white:				#fff;
$red:					#F92727;

$salmon:			#FB573B;
$yellow:			#F4EB9E;
$l-green:			#9CD0AC;
$d-green:			#8EA88D;

$l-grey:			 #B0AFA6;
$d-grey:			 #1C221F;

$d-grey: #4F393C;

/* Keyframes */

@keyframes reel-spin {
	
	0%   {
		transform: rotate(0deg);
	}
	
	100% {
		transform: rotate(-360deg);
	}
}

@keyframes reel-progress {
	
	0%   {
		transform: scale(1);
	}
	
	100% {
		transform: scale(0.25);
	}
}

@keyframes msg {
	
	0%   {
		transform: translateX(0%);
	}
	
	25% {
		transform: translateX(-25%);
	}
	
	50% {
		transform: translateX(-25%);
	}
	
	75% {
		transform: translateX(-50%);
	}
	
	100% {
		transform: translateX(-50%);
	}
}

@keyframes counter {
	
	0% {
		opacity: 1;
	}
	
	10% {
		opacity: 0;
	}
	
	30% {
		opacity: 0;
	}
	
	50% {
		opacity: 1;
	}
	
	100% {
		opacity: 1;
	}
}

/* General */
html {
  box-sizing: border-box;
	overflow-x: hidden;
}

*, *:before, *:after {
  box-sizing: inherit;
}

html, body {
	height: 100%;
	width: 100%;
}

body {
	position: relative;
	
	font-family: 'Alegreya Sans', 'helvetica', sans-serif;
	
	background: linear-gradient(
		#2E2926 0%,
		#4C4241 60%,
		#7D7173 70%,
		#ECE8E7 100%
	);
	
	background: #FB573B;
	
	transition: background 0.5s ease-in-out;
	
	&.playing {
		background: #252525;
	}
}

// Reset button styling
button {
    padding: 0;
	
	  background: none;
    outline: none;
    border: none;
}

/* Icon font */
@font-face {
	font-family:"iconfont";
	font-style:normal;
	font-weight:400; src:url(data:font/opentype;base64,AAEAAAAPAIAAAwBwR1NVQrD+s+0AAAD8AAAAQk9TLzI+IEj1AAABQAAAAFZjbWFw6Tf8KgAAAZgAAAGoY3Z0IAbV/wQAAAiwAAAAIGZwZ22KkZBZAAAI0AAAC3BnYXNwAAAAEAAACKgAAAAIZ2x5Zue+qYUAAANAAAABnmhlYWQJ59yIAAAE4AAAADZoaGVhBzwDW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4K7A7Ky2waCywOCuwPCstsGkssDgrsD0rLbBqLLA5Ky6xKwEUKy2wayywOSuwOystsGwssDkrsDwrLbBtLLA5K7A9Ky2wbiywOisusSsBFCstsG8ssDorsDsrLbBwLLA6K7A8Ky2wcSywOiuwPSstsHIsswkEAgNFWCEbIyFZQiuwCGWwAyRQeLABFTAtAEu4AMhSWLEBAY5ZsAG5CAAIAGNwsQAFQrIAAQAqsQAFQrMKAgEIKrEABUKzDgABCCqxAAZCugLAAAEACSqxAAdCugBAAAEACSqxAwBEsSQBiFFYsECIWLEDZESxJgGIUVi6CIAAAQRAiGNUWLEDAERZWVlZswwCAQwquAH/hbAEjbECAEQAAA==);
}

 [class^="icon-"]:before, [class*=" icon-"]:before {
  font-family: "iconfont";
  font-style: normal;
  font-weight: normal;
  speak: none;
 
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  text-align: center;
 
  font-variant: normal;
  text-transform: none;
  line-height: 1em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
 
.icon {
	
	&-play:before { content: '\e800'; }
	&-stop:before { content: '\e801'; }
	&-fast-fw:before { content: '\e802'; }
	&-fast-bw:before { content: '\e803'; }
	&-record:before { content: '\e804'; } 
}

.wrapper {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
}

.title {
	margin: 0 auto 30%;
	
	color: #F4EB9E;
	font-family: 'Lobster', cursive;
	font-size: 72px;
	text-align: center;
}

/* Magnetophone */
.mag {
	position: relative;
	width: 350px;
	
	border-left: 2px solid $black;
	border-right: 2px solid $black;
	
	&__handle {
		
		&__cover {
			position: absolute;
			top: -30px;
			right: 0;
			left: 0;
			margin: 0 auto;
			height: 0;
			width: 85px;
			
			border-bottom: 10px solid $yellow;
			border-left: 15px solid transparent;
			border-right: 15px solid transparent;
		}
		
		&__rail {
			position: absolute;
			top: -20px;
			width: 10px;
			height: 20px;
			
			background: $l-grey;
			
			&--left {
				left: 130px;
			}

			&--right {
				right: 130px;
			}
		}
	}
	
	&__case {
		position: absolute;
		width: 3px;
		height: 98%;
		
		background: $l-grey;
		background: linear-gradient(
			$l-grey 0%,
			#fff 25%,
			$d-grey 100%
		);
		
		border-bottom: 1px solid $black;
		
		&--left {
			left: -5px;
		}
		
		&--right {
			right: -5px;
		}
	}
	
	&__top {
		position: relative;
		height: 230px;
		
		background: $l-grey;
		text-align: center;

		.display {
			z-index: 101;
			display: inline-block;
			position: absolute;
			bottom: 30px;
			right: 0;
			left: 0;
			margin: 0 auto;
			width: 150px;
			
			&__top {
				position: absolute;
				top: -20px;
				left: 25px;
				
				border-bottom: 20px solid $black;
				border-left: 20px solid transparent;
				border-right: 20px solid transparent;
				height: 0;
				width: 100px;
			}
			
			&__mid {
				border-top: 30px solid $d-grey;
				border-left: 10px solid transparent;
				border-right: 10px solid transparent;
				height: 0;
				width: 150px;
				
				.copy {
					position: absolute;
					top: 0;
					right: 0;
					left: 0;
					
					color: $white;

					.brand {
						font-size: 12px;
						font-weight: 900;
						text-transform: uppercase;

						border-bottom: 1px solid $white;
					}

					.subtitle {
						margin: 0;

						font-size: 5px;
					}
				}
			}
			
			&__bot {
				position: absolute;
				left: 35px;
				
				border-top: 5px solid $black;
				border-left: 10px solid transparent;
				border-right: 10px solid transparent;
				height: 0;
				width: 80px;
			}
			
			&__screen {
				position: relative;
				height: 20px;
				
				font-family: 'Orbitron', 'Courier New', Courier, monospace, sans-serif;
				font-style: italic;
				font-size: 0;
				
				overflow: hidden;
			}
			
			&__text {
				width: 800%;

				.is-on & {
					animation: msg 5s linear 2.5s forwards;
				}
			}
			
			&__msg {
				display: inline-block;
				width: 12.5%;
				margin-right: 12.5%;

				color: $l-green;
				font-size: 10px;
				line-height: 20px;
				text-transform: uppercase;
				
				&--welcome {
					opacity: 0;
					
					transition: opacity 0.5s ease-in-out;
					
					.is-on & {
						opacity: 1;
					}
				}
				
				&--standby {
					
				}
				
				&--goodbye {
					
				}
				
				&--counter {
					
					.is-on & {
						animation: counter 1s linear infinite;
					}
				}
			}
		}
	}

	&__mid {
		position: relative;
		height: 24px;
		
		background: #332F30;
		border-bottom: 2px solid #5D5D5D;
		
		.crop {
			position: absolute;
			top: 0;
			left: 12%;
			width: 30%;
			height: 0;
			margin: 0 auto;
			
			border-top: 10px solid #B0AFA6;
			border-left: 20px solid transparent;
			border-right: 20px solid transparent;
		}
	}
	
	&__bot {
		position: relative;
		height: 75px;
		padding: 2.5% 5%;
		
		background: $d-grey;
		font-size: 0;
	}
	
	&__feet {
		
		.foot {
			position: absolute;
			height: 5px;
			width: 30px;
			
			background: $d-grey;
			border-top: 2px solid $black;
			
			&--left {
				left: 10px;
			}
			
			&--right {
				right: 10px;
			}
		}
	}
}

/* Reusable components */
.shadow {

	&:before {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    transform: rotate(45deg);
    height: 100%;
    width: 100%;
    background: rgba(0,0,0,0.25);
		background: linear-gradient(
			to right,
			rgba(0,0,0,0.25) 0%,
			rgba(0,0,0,0) 100%
		);
	}
}

.shadow2 {
  box-shadow: 3px 3px 0px rgba(0,0,0,0.25);
}

.text-shadow {
	text-shadow: 1px 3px 3px rgba(0,0,0,0.25);
}

.io {
	display: inline-block;
	position: relative;
	width: 5%;
	height: 100%;

	.input {
		position: absolute;
		left: 0;
    right: 0;
    margin: 0 auto;
		width: 10px;
		height: 10px;
		
		background: $black;
		border: 2px solid #B0AFA6;
		border-radius: 50%;
		
		&--1 {
			top: 5%;
			
			&:after {
				content: '';
				position: absolute;
				top: 0;
				right: 0;
				bottom: 0;
				left: 0;

				border: 2px solid $yellow;
				border-radius: 50%;
			}
		}

		&--2 {
			bottom: 5%;
		}

		&--3 {
			bottom: 25%;
		}
	}
}

.volume-sliders {
	display: inline-block;
	width: 25%;
	height: 100%;
	
	text-align: center;
	
	.rail {
    display: inline-block;
    position: relative;
		height: 100%;
		width: 4px;
    margin: 0 10px;
		
		background: #ccc;
		
		.path {
			position: absolute;
			top: 5%;
			left: 0;
			right: 0;
			margin: 0 auto;
			width: 50%;
			height: 90%;
			
			background: #332F30;
		}
		
		.slider	{
			position: absolute;
			bottom: 10%;
			left: -6px;
			width: 16px;
			height: 8px;
			
			background: #B0AFA6;
		}
	}
}

.dials {
	display: inline-block;
	position: relative;
	width: 10%;
	height: 100%;
	
	.dial {
		position: relative;
		left: 0;
    right: 0;
    margin: 0 auto;
		width: 20px;
		height: 20px;
		
		// background: #332F30;
		border: 2px solid #2E2A2B;
		border-radius: 50%;
		
		&:after {
			content: '';
			position: absolute;
			top: -10%;
			right: 0;
			left: 0;
			margin: 0 auto;
			width: 2px;
			height: 50%;
			
			background: $salmon;
		}
		
		&--bot {
			position: absolute;
			bottom: 0;
		}
		
		&__btn {
			position: relative;
			width: 100%;
			height: 100%;
			
			border-radius: 50%;
			background: #4F393C;
		}
	}
}

.panel {
	display: inline-block;
	position: relative;
	width: 45%;
	height: 100%;
	margin: 0 5%;
}

.volume-gauges {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 50%;
	margin: 0 auto;
	
	text-align: center;
	
	.gauge {
		display: inline-block;
		position: relative;
    width: 47.5%;
    height: 100%;

		background: #fff;
    border: 2px solid #B0AFA6;
    overflow: hidden;
		
		&--left {
			margin-right: 5%;
		}

		.centre {
			position: absolute;
			bottom: -10px;
			right: 0;
			left: 0;
			margin: 0 auto;
			width: 10px;
			height: 15px;

			background: #332F30;
			border-radius: 50%;
		}

		.needle {
			position: absolute;
			bottom: 0;
			right: 0;
			left: 0;
			margin: 0 auto;
			width: 2px;
			height: 25px;

			background: #332F30;

			transform-origin: 1px 25px;
			transform: rotate(-60deg);
		}

		.range {
			position: absolute;
			left: 0;
			right: 0;
			bottom: -20px;
			margin: 0 auto;
			width: 44px;
			height: 44px;

			background: red;
			background: linear-gradient(
				to right,
				#332F30 0%,
				#332F30 60%,
				red 80%,
				red 100%
			);
			border-radius: 50%;

			.mask {
				position: absolute;
				left: 0;
				right: 0;
				margin: 0 auto;

				background: $white;

				&--circle {
					bottom: 0;
					width: 40px;
					height: 40px;

					border-radius: 50%;
				}

				&--rectangle {
					bottom: 20px;
					width: 100%;
					height: 20%;
				}
			}
		}
	}
}

.ctrls {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 50%;
	margin: 0 auto;

	font-size: 0;
	text-align: center;

	.ctrl {
		display: inline-block;
		position: relative;
		top: 50%;
    width: 19%;
		height: 50%;
    margin: 0 0.5%;

		&.active {
			
			.light {
				background: #5A6759;
				background: linear-gradient(
					to bottom,
					#5A6759 0%,
					$l-green 50%
				);
			}
		}
		
		.light {
			content: '';
			position: absolute;
			top: -8px;
			left: 0;
			right: 0;
			margin: 0 auto;
			height: 2px;
			width: 75%;

			background: #920000;
			background: linear-gradient(
				to bottom,
				#920000 0%,
				$salmon 50%
			);
			border-radius: 5px;

			transition: background 0.15s ease-in-out;
		}
		
		.btn {
			width: 100%;
    	height: 100%;
			
			background: $white;
			border: 2px solid #FFFFFF;
			border-radius: 1px;
			text-align: center;
			
			transition: border-color 0.15s ease-in-out;
			
			&:hover {
				border-color: $l-green;
			}
			
			&--rec {
				background: $red;
				border-color: $red;
			}
		}

		.icon {
			font-size: 8px;
			line-height: 10px;
		}
	}
}

.power {
	display: inline-block;
	position: relative;
	width: 5%;
	height: 100%;

	&__switch {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    width: 70%;
    height: 50%;
    margin: 0 auto;
		
    background: #332F30;
    border: 1px solid #000000;
	}
		
	&__btn {
		width: 100%;
		height: 50%;

		font-size: 8px;
		line-height: 14px;
		text-align: center;
		
		&--on {
			color: $white;
		}

		&--off {
			color: #ccc;
			background: #1D1D1D;
		}
	}

	&__light {
		position: absolute;
    top: -40%;
    width: 100%;
    height: 20%;
		
    background: #920000;
		
		transition: background 0.15s ease-in-out;
		
		&__inner {
			position: absolute;
			top: 1px;
			right: 0;
			bottom: 0;
			left: 0;
			margin: 0 auto;
			width: 90%;
			height: 80%;

			background: $salmon;

			transition: background 0.1s ease-in-out;
		}
	}
	
	&__input {
    position: absolute;
    bottom: 5%;
		right: 0;
		left: 0;
    margin: 0 auto;
    width: 12px;
    height: 12px;
		
    background: #000;
    border: 2px solid #F4EB9E;
    border-radius: 50%;
	}
	
	.is-on & {
		
		.power {
			
			&__light {
				background: #5A6759;

				&__inner {
					background: $l-green;
				}
			}
			
			&__btn {
				
				&--on {
					color: #ccc;
					background: #1D1D1D;
				}
				
				&--off {
					color: $white;
					background: #332F30;
				}
			}
		}
	}
}

.reels {
	z-index: 100;
	position: relative;
	
	.reel {
	position: absolute;
	top: -40px;
	width: 210px;
	height: 210px;

	border-radius: 50%;
	

	&__inner {
    z-index: 10;
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
		
    border-radius: 50%;
	}
	
	&--left {
		left: -40px;
		
		.reel__wrapper {
			position: relative;
			width: 100%;
			height: 100%;
			
// 			transition: all cubic-bezier(0.39, 0.58, 0.57, 1) 1s;

// 			.is-stopped & {
// 				transform:rotate(-180deg);				
// 			}
		}
		
		.reel__inner {
				animation: reel-spin 2s linear infinite;
				animation-play-state: paused;
			
			.is-playing & {
				animation-play-state: running;
			}
		}
		
		.reel__tape {
			
				animation: reel-progress 10s linear infinite;
				animation-play-state: paused;
			
			.is-playing & {
				animation-play-state: running;
			}
		}
	}
	
	&--right {
		right: -40px;

		.reel__wrapper {
			position: relative;
			width: 100%;
			height: 100%;
			
// 			transition: all cubic-bezier(0.39, 0.58, 0.57, 1) 1s;

// 			.is-stopped & {
// 				transform:rotate(-180deg);				
// 			}
		}
		
		.reel__inner {
				animation: reel-spin 1s linear infinite;
				animation-play-state: paused;
			
			.is-playing & {
				animation-play-state: running;
			}
		}

		.reel__tape {
			
			transform: scale(0.25);
			
			animation: reel-progress 10s linear infinite reverse;
			animation-play-state: paused;

			.is-playing & {
				animation-play-state: running;
			}
		}
	}
	
	&__tape {
		width: 100%;
		height: 100%;
		
		background: $d-grey;
		background: repeating-radial-gradient(#4F393C, #4F393C 2px, #5A5A56 4px);
		border-radius: 50%;
	}
	
	&__mid {
		z-index: 20;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 50px;
		height: 50px;
		
		background: $d-green;
		border-radius: 50%;
		
		&__inner {
			z-index: 20;
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);
			width: 10px;
			height: 10px;

			background: #fff;
			border-radius: 50%;
		}
	}
	
	&__mask {
		z-index: 10;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
		
		border-radius: 50%;
		
		&--int {
			border: 40px solid #fff;
		}
		
		&--ext {
			width: 215px;
			height: 215px;
			
			border: 13px solid #fff;
		}
	}
	
	&__brand {
		z-index: 100;
		display: inline-block;
		position: absolute;
		top: 25px; //30px old
		right: 0;
		left: 0;
		width: 85px;
		margin: 0 auto;
		
		color: $d-grey;
		
		&__title {
			font-size: 14px;
			font-weight: 900;
			text-transform: uppercase;
		}
		
		&__subtitle {
			display: none;
			
			font-size: 6px;
		}
	}
	
	.panel {
		position: absolute;
		top: 5px;
		left: 0;
		right: 0;
		margin: 0 auto;
		width: 0;
		height: 0;
		
		border-left: 80px solid transparent;
		border-right: 80px solid transparent;
		border-top: 100px solid #fff;
		
		transform-origin: 80px 100px;
		
		&--1 {
			
		}
		
		&--2 {
			transform: rotate(120deg);
		}
		
		&--3 {
			transform: rotate(240deg);
		}
	}
}
}

.roll {
	position: absolute;
	
	background: #332F30;
	border-radius: 50%;
	
	&.sml {
		bottom: 30px;
		width: 10px;
		height: 10px;
	}
	
	&.med {
		bottom: 15px;
		width: 20px;
		height: 20px;
	}
	
	&.big {
		bottom: 25px;
		width: 30px;
		height: 30px;
	}
	
	&--left {
		
		&.sml {
			left: 50px;
		}
		
		&.med {
			left: 115px;
		}
		
		&.big {
			left: 70px;
		}
	}
	
	&--right {
		
		&.sml {
			right: 50px;
		}
		
		&.med {
			right: 115px;
		}
		
		&.big {
			right: 70px;
		}
	}
}

.tape {
	
	&__segment {
		position: absolute;

		background: $d-grey;
		
		&--1 {
			top: 70px;
			left: 50px;
			height: 125px;
			width: 2px;

			transform: rotate(-40deg);
			transform-origin: 0 100%;
		}
		
		&--2 {
			top: 190px;
			left: 16%;
			width: 20px;
			height: 2px;
			
			transform: rotate(-45deg);
		}
		
		&--3 {
			top: 180px;
			left: 25%;
			width: 20px;
			height: 2px;
			
			transform: rotate(30deg);
		}
		
		&--4 {
			top: 190px;
			right: 16%;
			width: 20px;
			height: 2px;
			
			transform: rotate(45deg);
		}
		
		&--5 {
			top: 180px;
			right: 25%;
			width: 20px;
			height: 2px;
			
			transform: rotate(-30deg);
		}
		
		&--6 {
			top: 70px;
			right: 50px;
			height: 125px;
			width: 2px;

			transform: rotate(5deg);
			transform-origin: 0 100%;
		}
	}
}

.screw {
	width: 6px;
	height: 6px;
	position: absolute;
	
	background: $salmon;
	border: 1px solid $black;
	border-radius: 50%;

	&--top {
		top: 5px;
	}
	
	&--bot {
		bottom: 5px;
	}
	
	&--left {
		left: 5px;
	}
	
	&--right {
		right: 5px;
	}
}
            
          
!
            
              ;(function() {
	
	'use strict';
	
	var myApp = $(this),
			$mag = $('.mag'),
			power = false;

	myApp.init = function() {
		
		myApp.power();
		myApp.controls();
	};
	
	myApp.power = function() {
		
		var self = $(this),
				$pwrOn = $('.js-power-on'),
				$pwrOff = $('.js-power-off');
		
		self.init = function() {
			// We want the buttons to act independently,
			// not as a simple if/else toggle
			$pwrOn.on('click', self.pwrOn);
			$pwrOff.on('click', self.pwrOff);
		}
		
		self.pwrOn = function() {
			
			if (power === false) {
				$mag.addClass('is-on');
				power = true;
				
				console.log('ON');
			}
		}
		
		self.pwrOff = function() {
			
			if (power === true) {
				$mag.removeClass('is-on');
				power = false;
				
				console.log('OFF')
			}
		}
		
		self.init();
		
	};
	
	myApp.controls = function() {
		
		var self = $(this),
				$ctrls = $('.ctrls'),
				$ctrl = $('.ctrl'),
				$fbw = $('.js-fbw'),
				$ffw = $('.js-ffw'),
				$stop = $('.js-stop'),
				$play = $('.js-play'),
				$rec = $('.js-rec');
		
		self.init = function() {
			
			$ctrls.on('click', '.btn', self.toggle);
			
			$play.on('click', self.play);
			$stop.on('click', self.stop);
		}
		
		self.toggle = function() {
			$ctrl.removeClass('active');
			$(this).parent().addClass('active');
		}
		
		self.play = function() {
			console.log('playing');
			
			$mag.removeClass('is-stopped').addClass('is-playing');
		}
		
		self.stop = function() {
			console.log('stopped');
			
			$mag.removeClass('is-playing').addClass('is-stopped');
		}
		
		self.init();
	}
	
	myApp.init();
	
})(jQuery);
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console