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.

Quick-add: + add another resource

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.

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.

            
              <div class="menu"><input type="checkbox" id="piu">
<label for="piu"><b>Вид сбоку</b></label>
<input name="whiteOrTransparent" class="WorT" type="radio" value="white" id="white" checked> <label for="white">Белая пленка</label>
<input name="whiteOrTransparent" class="WorT" type="radio" value="transparent" id="transparent"> <label for="transparent">Прозрачная пленка</label>
  </div><br>
<div class="maket">
<div id="maketFilm">

  <span id="colorFilm"></span><span id="shadowColorFilm"></span>
</div>
  </div>
            
          
!
            
              .maket {
  position: relative;
  width: 550px;
  height: 400px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  border: 1px solid white;
  border-radius: 5px;
  -webkit-perspective: 900px;
  perspective: 900px;
  z-index: 1;
}

#maketFilm {
  background-color: white;
  background: url(https://kapu.cat/img/Logo9.png) repeat;
  background-size: auto;
  position: absolute;
  text-align: center;
  vertical-align: middle;
  border-top: none;
  border-right: none;
  border-bottom: none;
  border-left: none;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  width: 350px;
  height: 350px;
  margin-top: -175px;
  margin-left: -175px;
  left: 50%;
  top: 50%;
  -webkit-perspective: 900px;
  perspective: 900px;
  transform-style: preserve-3d;
  transition-property: all;
  transition-duration: 1s;
  z-index: 2;
}

#maketFilm:before {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 0px;
  height: 0px;
  border-bottom: 101px solid rgba(255, 255, 255, 0);
  border-left: 101px solid rgba(255, 255, 255, 1);
}

.legat {
  -webkit-transform: rotateY(60deg) rotateX(70deg);
  transform: rotateY(60deg) rotateX(70deg);
}

#colorFilm {
  background: url(https://kapu.cat/img/Logo9.png) repeat;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 0px;
  height: 0px;
  border-bottom: 100px solid rgba(255, 255, 255, 1);
  border-left: 100px solid #f0f0f0;
  -webkit-transform: rotateX(206deg) rotateY(24deg) rotateZ(85deg);
  transform: rotateX(206deg) rotateY(24deg) rotateZ(85deg);
  -webkit-transform-origin: 50% 50% 0;
  transform-origin: 50% 50% 0;
  z-index: 3;
}

#shadowColorFilm {
  background: transparent;
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100px;
  height: 100px;
  border: none;
  background: linear-gradient(to top left, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 1) 100%);
  z-index: 2;
}
            
          
!
            
              $('#piu').click(function() { //чекбокс
  if ($(this).is(':checked')) {
    $('#maketFilm').addClass('legat');
  } else {
    $('#maketFilm').removeClass('legat');
  };
});
var colorMath;
$('.WorT').click(function() {
  colorMath = $('input[name=whiteOrTransparent]:checked').val();
  if (colorMath == 'transparent') {
    $('#invertPrint').attr('disabled', false);
    $('.invertPrint').fadeIn();
    $('#colorFilm').css('border-left', '100px solid rgba(196,196,196,0.5)');
  } else if (colorMath == 'white') {
    $('#invertPrint').attr('disabled', true);
    $('.invertPrint').removeAttr('checked');
    $('.invertPrint').fadeOut();
    $('#colorFilm').css('border-left', '100px solid #f0f0f0');
  }
});
            
          
!
999px
Loading ..................

Console