01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
<style type="text/css" media="all"><!--
.beispielScale{ position: relative; top: 0; left: 0; width: 450px; height: 130px;
margin: 0; padding: 0;
border-color: #fff #abe #abe #fff; border-style: solid; border-width: 1px; }
.transbox_scale{ position: absolute; top: 20px; left: 75px; width: 290px; height: 80px;
padding: 5px; float: left; z-index: 2; background-color: rgba(255,200,0,.5);
-webkit-transition: all 2s;
transition: all 2s;
}
.beispielScale:hover .transbox_scale {
background-color: rgba(0,0,0,1); color: gold ;
transform: scale(-1.5, 2) ;
}
section > p { font-size: 12px; }
section > p.mittig { font-size: 14px; background-color: #c43; text-align: center; }
--></style>
<div class="beispielScale" >
<?php
include "$ordnerpfad/komponenten/raster.htx" ;
?>
<section class='transbox_scale'>
<p class="mittig">Rechteck vergrößern mit scale()</p>
<p>transform: scale(-1.5, 2) ; wird horizontal gespiegelt</p>
</section>
</div>
|