LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code
CSS
body {
  background: #28292d;
}
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
input[type=radio] {
  display: none;
}
:before,
:after {
  content: "";
  display: block;
  position: absolute;
}
.container {
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
.container .color {
  position: absolute;
  top: 50%;
  margin-top: -100px;
  left: 4%;
}
.container .color label {
  width: 24px;
  height: 24px;
  -webkit-transform: scale(0.6);
  -moz-transform: scale(0.6);
  -o-transform: scale(0.6);
  -ms-transform: scale(0.6);
  transform: scale(0.6);
  border-radius: 100%;
  display: block;
  cursor: pointer;
  opacity: 0.8;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
  filter: alpha(opacity=80);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}
.container .color label:hover {
  opacity: 1;
  -ms-filter: none;
  filter: none;
}
.container .color label:last-child {
  margin-bottom: 0px;
}
.container .color label[for=red] {
  background: #f96b6c;
}
.container .color label[for=yellow] {
  background: #f2dc60;
}
.container .color label[for=green] {
  background: #97e563;
}
.container .color label[for=blue] {
  background: #33a2db;
}
.container .color label[for=white] {
  background: #fff;
}
.iphone {
  width: 360px;
  height: 774px;
  background: #1e1e1e;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  -o-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  border-radius: 46px;
  border-width: 4px;
  border-style: solid;
  border-color: #0ff;
}
.iphone:before {
  top: -7px;
  right: 60px;
  width: 60px;
  height: 4px;
  border-radius: 2px 2px 0px 0px;
}
.iphone:after {
  left: -7px;
  top: 170px;
  height: 27px;
  width: 4px;
  border-radius: 2px 0px 0px 2px;
}
.iphone .speaker {
  background: #292728;
  width: 64px;
  height: 10px;
  position: absolute;
  top: 55px;
  left: 50%;
  margin-left: -32px;
  border-radius: 5px;
}
.iphone .speaker:after {
  background: #3c3d3d;
  width: 10px;
  height: 10px;
  left: 50%;
  margin-left: -5px;
  margin-top: -26px;
  border-radius: 100%;
}
.iphone .speaker:before {
  background: #3c3d3d;
  width: 10px;
  height: 10px;
  left: 50%;
  margin-left: -54px;
  border-radius: 100%;
}
.iphone .screen {
  width: 320px;
  height: 568px;
  background: #808080;
  border-radius: 1px;
  -webkit-box-shadow: 0 0 0 3px #111;
  box-shadow: 0 0 0 3px #111;
  margin: 0 auto;
  margin-top: 100px;
}
.iphone .screen:before {
  background: #242324;
  border-radius: 100%;
  width: 68px;
  height: 68px;
  left: 50%;
  margin-left: -34px;
  bottom: 15px;
}
.iphone .screen:after {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  left: 50%;
  bottom: 38px;
  margin-left: -11px;
}
.iphone .screen .url {
  height: 36px;
  background: #e1e1e1;
  z-index: 99999;
  position: relative;
}
.iphone .screen .url #urlInput {
  background: #c1c1c1;
  border: 0px;
  height: 24px;
  border-radius: 3px;
  outline: none;
  margin: 6px 0px 0px 40px;
  padding: 0px 10px;
  width: 240px;
}
.iphone .screen iframe {
  width: 100%;
  height: 532px;
}
#red:checked ~ .container label[for=red] {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
  -ms-filter: none;
  filter: none;
}
#red:checked ~ .container .iphone {
  border-color: #f96b6c;
}
#red:checked ~ .container .iphone:before,
#red:checked ~ .container .iphone:after {
  background-color: #f96b6c;
}
#red:checked ~ .container .iphone:after {
  -webkit-box-shadow: 0px -62px 0px #f96b6c, 0px -70px 0px #f96b6c, 0px 62px 0px #f96b6c;
  box-shadow: 0px -62px 0px #f96b6c, 0px -70px 0px #f96b6c, 0px 62px 0px #f96b6c;
}
#yellow:checked ~ .container label[for=yellow] {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
  -ms-filter: none;
  filter: none;
}
#yellow:checked ~ .container .iphone {
  border-color: #f2dc60;
}
#yellow:checked ~ .container .iphone:before,
#yellow:checked ~ .container .iphone:after {
  background-color: #f2dc60;
}
#yellow:checked ~ .container .iphone:after {
  -webkit-box-shadow: 0px -62px 0px #f2dc60, 0px -70px 0px #f2dc60, 0px 62px 0px #f2dc60;
  box-shadow: 0px -62px 0px #f2dc60, 0px -70px 0px #f2dc60, 0px 62px 0px #f2dc60;
}
#green:checked ~ .container label[for=green] {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
  -ms-filter: none;
  filter: none;
}
#green:checked ~ .container .iphone {
  border-color: #97e563;
}
#green:checked ~ .container .iphone:before,
#green:checked ~ .container .iphone:after {
  background-color: #97e563;
}
#green:checked ~ .container .iphone:after {
  -webkit-box-shadow: 0px -62px 0px #97e563, 0px -70px 0px #97e563, 0px 62px 0px #97e563;
  box-shadow: 0px -62px 0px #97e563, 0px -70px 0px #97e563, 0px 62px 0px #97e563;
}
#blue:checked ~ .container label[for=blue] {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
  -ms-filter: none;
  filter: none;
}
#blue:checked ~ .container .iphone {
  border-color: #33a2db;
}
#blue:checked ~ .container .iphone:before,
#blue:checked ~ .container .iphone:after {
  background-color: #33a2db;
}
#blue:checked ~ .container .iphone:after {
  -webkit-box-shadow: 0px -62px 0px #33a2db, 0px -70px 0px #33a2db, 0px 62px 0px #33a2db;
  box-shadow: 0px -62px 0px #33a2db, 0px -70px 0px #33a2db, 0px 62px 0px #33a2db;
}
#white:checked ~ .container label[for=white] {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -o-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  opacity: 1;
  -ms-filter: none;
  filter: none;
}
#white:checked ~ .container .iphone {
  border-color: #fff;
}
#white:checked ~ .container .iphone:before,
#white:checked ~ .container .iphone:after {
  background-color: #fff;
}
#white:checked ~ .container .iphone:after {
  -webkit-box-shadow: 0px -62px 0px #fff, 0px -70px 0px #fff, 0px 62px 0px #fff;
  box-shadow: 0px -62px 0px #fff, 0px -70px 0px #fff, 0px 62px 0px #fff;
}
::-webkit-scrollbar {
  width: 0px;
}
JS
#Inspiration: https://marvelapp.github.io/devices.css/

$("form").submit ->
  $("iframe").attr "src", 
  $("#urlInput").val()
Term
Wed, 12/06/2017 - 19:43

Related Codes

Pen ID
Pen ID
Pen ID
Square Adv