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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              .container
	#fluxCapacitor
		.front
		.back
		.right
		.fluxPanel
			span.roundPlate1
				span.redEnd
				span.lightBar
			span.roundPlate2
				span.redEnd
				span.lightBar
			span.roundPlate3
				span.redEnd
				span.lightBar
		.left
			p.redLabel1 Disconnect Capacitor Drive
			p.redLabel2 Shield Eyes From Light
		.top
		.bottom
		
a.button.me(href="https://twitter.com/ThunderGunExprs" target="_blank" title="Click for free pizza!") 🌮
            
          
!
            
              $grey:#5A5D60;
$lightBlack:#201f24;
$whiteFade:rgba(255, 255, 255, .25);
$yellowGlow:goldenrod;
$greyGold:#c6c09e;
$cableYellow:#c7af17;
$labelRed:#c23a3a;
$fcred:#b93421;

@font-face {
	font-family: 'bttf';
	src: url('https://christopher-simmons.github.io/fonts/BTTF.ttf') format('truetype');
}

/*Font mixin from https://eduardoboucas.com/blog/2015/06/18/viewport-sized-typography-with-minimum-and-maximum-sizes.html*/

@mixin responsive-font($responsive, $min, $max: false, $fallback: false) {
 $responsive-unitless: $responsive / ($responsive - $responsive + 1);
 $dimension: if(unit($responsive)=='vh', 'height', 'width');
 $min-breakpoint: $min / $responsive-unitless * 100;
 @media (max-#{$dimension}: #{$min-breakpoint}) {
  font-size: $min;
 }
 @if $max {
  $max-breakpoint: $max / $responsive-unitless * 100;
  @media (min-#{$dimension}: #{$max-breakpoint}) {
   font-size: $max;
  }
 }
 @if $fallback {
  font-size: $fallback;
 }
 font-size: $responsive;
}

body{
	width:100vw;
	min-height:300vh;
	background-image:radial-gradient(ellipse at bottom, lemonchiffon, cornflowerblue, black);
	overflow-x:hidden;
	&:before{
		content:'';
		width:inherit;
		height:inherit;
		position:absolute;
		top:0;
		left:0;
		background:rgba(black,.4);
	}
	
	#popOut{
		width:100vw;
		height:100vh;
		position:absolute;
		z-index:9999;
		pointer-events:none;
		display:flex;
		justify-content:center;
		align-items:center;
		color:whitesmoke;
		text-transform:uppercase;
		font-size:3vw;
		opacity:1;
		transition: opacity 1s ease;
		font-family: 'bttf';
		letter-spacing:2px;
		text-shadow:0 0 5px black;
	}
}


.container {
 width: 20vw;
 height: 30vw;
 position: absolute;
 perspective: 700px;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 z-index: 2;
 #fluxCapacitor {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
 	animation: rotate 10s linear infinite;
  transform: rotateY(80deg);
	cursor:pointer;
  div {
   margin: 0;
   width: 100%;
   height: 100%;
   display: block;
   position: absolute;
   outline: 1px solid transparent;
   box-shadow: 0 0 0 .1vw $lightBlack, inset 0 0 0 .1vw $lightBlack;
   background-size: 100% 100%;
   background-repeat: no-repeat;
  }
  .front {
   background: $grey;
   transform: rotateY( 0deg) translateZ( 15vw);
  }
  .back {
   background: $grey;
   transform: rotateX( 180deg) translateZ( 15vw);
  }
  .right {
   background: $grey;
   width: 150%;
   transform: rotateY( 90deg) translateZ( 5vw);
		&:before{
			content:'';
			width:100%;
			height:100%;
			background:url(https://upload.wikimedia.org/wikipedia/commons/1/1b/Back_to_the_Future_film_series_logo.png);
			background-size:80%;
			background-position:center center;
			background-repeat:no-repeat;
			position:absolute;
			top:0;
			left:0;
		}
  }
  .fluxPanel {
   width: 149%;
   height: 100%;
   background: radial-gradient( silver -150%, $lightBlack);
   position: absolute;
   left: .5%;
   transform: rotateY( 90deg) translateZ( -5vw);
   box-shadow: inset 0 0 .15vw $lightBlack;
   .roundPlate1,
   .roundPlate2,
   .roundPlate3 {
    width: 20%;
    height: 20%;
    background: $greyGold;
    border-radius: 50%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    &:before {
     content: '';
     width: 30%;
     height: 30%;
     background: radial-gradient(ellipse at bottom, $lightBlack -50%, $fcred);
     display: block;
     border-radius: 50%;
     z-index: 1;
    }
    .redEnd {
     width: 20%;
     height: 50%;
     position: absolute;
     background: linear-gradient(to right, $fcred, rgba($lightBlack, .85), $fcred);
     left: 50%;
     top: 50%;
     border-radius: 50% 50% 0 0;
     z-index: 1;
     &:after {
      content: '';
      width: 90%;
      height: 150%;
      background: radial-gradient( ellipse at bottom, $cableYellow 0%, black 150%);
      position: absolute;
      transform: translate3d(10%, 3vw, 0vw);
      border-radius: 0 0 20% 20%;
     }
     &:before {
      content: '';
      height: 50%;
      width: 125%;
      background: radial-gradient($cableYellow 90%, black);
      position: absolute;
      border-radius: 50%;
      bottom: -165%;
      right: -15%;
     }
    }
    .lightBar {
     width: 20%;
     height: 155%;
     background: linear-gradient(to bottom, #4b4537 0%, #4b4537 25%, #af9c7e 25%, #af9c7e 85%, #4b4537 85%);
     position: absolute;
     z-index: 0;
     border-radius: 0 0 30% 30%;
     &:before,
     &:after {
      content: '';
      position: absolute;
      background-image: repeating-linear-gradient( to bottom, transparent, transparent 30%, $yellowGlow 30%, $yellowGlow 32%);
      -webkit-filter: blur(1px) brightness(115%);
      background-size: 100% 200%;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      animation: movingBackground 1s linear infinite;
      border-radius: 50%;
     }
     &:after {
      background-image: repeating-linear-gradient( to bottom, transparent, transparent 28%, rgba(orange, .5) 28%, rgba(orange, .5) 34%);
     }
    }
   }
   .roundPlate1 {
    top: 15%;
    left: 15%;
    .redEnd {
     transform: translate(-57%, 0) rotate(3deg);
    }
    .lightBar {
     transform: rotate(-45deg) translate3d(0%, 55%, 0vw);
    }
   }
   .roundPlate2 {
    top: 15%;
    right: 15%;
    .redEnd {
     transform: translate(-37%, 0) rotate(-8deg);
    }
    .lightBar {
     transform: rotate(45deg) translate3d(0%, 55%, 0vw);
    }
   }
   .roundPlate3 {
    bottom: 7.5%;
    left: 50%;
    transform: translate(-50%, 0);
    &:before {
     background: radial-gradient(ellipse at left, $lightBlack -50%, $fcred);
    }
    .redEnd {
     top: 0%;
     transform: rotate(78deg) translate(124%, 75%);
    }
    .lightBar {
     transform: translate3d(0%, -55%, 0vw) rotate(180deg);
    }
   }
  }
  .left {
   overflow: hidden;
   width: 150%;
   transform: rotateY( -90deg) translateZ( 15vw);
   &:before {
    content: '';
    width: 70%;
    height: 70%;
    background: rgba(silver, .1);
    position: absolute;
    top: 52.5%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 25%;
    box-shadow: 0 0 1.75vw rgba(255, 255, 255, .45), 0 0 0 1.75vw $lightBlack, 0 0 0 2vw rgba(0, 0, 0, .45), 0 0 0 10vw $grey;
   }
   p {
    @include responsive-font(.9vw, .9vw, 20px, 20px);
    background: $labelRed;
    height: 4%;
    position: absolute;
   }
   p.redLabel1, p.redLabel2 {
    width: 60%;
    top: 1%;
    left: 50%;
    transform: translate(-50%, 0);
    text-transform: uppercase;
    color: ghostwhite;
    display: flex;
    justify-content: center;
    align-items: center;
    
   }
		p.redLabel1{
			&:after {
     content: 'before opening';
     width: 70%;
     height: 100%;
     background: inherit;
     position: absolute;
     left: 15%;
     bottom: -120%;
     display: flex;
     justify-content: center;
     align-items: center;
    }
		}
		p.redLabel2 {
			width:45%;
			top:55%;
			transform:  translate(-50%, 0) rotate(2deg);
		}
  }
  .top {
   background: $grey;
   transform: rotateX( 90deg) translateZ( 15vw);
  }
  .bottom {
   background: $grey;
   transform: rotateX( -90deg) translateZ( 15vw);
  }
 }
}

@keyframes rotate {
	0% {
  transform: rotateY(0deg);
 }
 10% {
  transform: rotateY(45deg);
 }
	75%{
		transform: rotateY(130deg);
	}
 100% {
  transform: rotateY(360deg);
 }
}

@keyframes movingBackground {
 0% {
  background-position: 0% 0%;
 }
 100% {
  background-position: 0 -200%;
 }
}

$size:3vw;
$max:36px;
.button.me {
	@include responsive-font($size, $size, $max, $max);
	position: absolute;
	bottom: 5%;
	right: 5%;
	display:flex;
	justify-content:center;
	align-items:center;
	opacity:.5;
	transition:opacity .5s ease;
	border-radius:5px;
	&:hover {
		opacity: 1;
	}
}
            
          
!
            
              //Set Flux Capacitor as jquery ui draggable
$("#fluxCapacitor").draggable();

//Timeout to create and destroy info message
setTimeout(function() {
	var popOut = document.createElement("div");
	popOut.id = "popOut";
	popOut.innerHTML = "👆   Drag   Me   👆 ";

	var body = document.body;
	body.appendChild(popOut);

	setTimeout(function() {
		popOut.style.opacity = "0";
	}, 3000);
}, 500);

            
          
!
999px
Loading ..................

Console