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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
<style type="text/css" media="all"><!--
.beispiel{ 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;
}
.boxrahmen { border-color: white #000 #000 white; border-style: solid;
border-width: 1px; }
/* körper */
.recrot{ text-align: center; position: absolute; top: 10px; left: 150px; width: 100px;
height: 40px; padding: 5px; float: left; z-index: 2;
-webkit-transition: all 2s;
transition: all 2s;
}
.circrot{ text-align: center; position: absolute; top: 10px; left: 15px;
width: 100px; height: 100px; padding: 5px; float: left; z-index: 2;
border-radius: 55px;
-webkit-transition: all 2s;
transition: all 2s;
}
.turnrot{ text-align: center; position: absolute; top: 70px; left: 140px; width: 120px;
height: 40px; padding: 5px; float: left; z-index: 3;
-webkit-transition: all 4s;
transition: all 4s;
}
.pivotrot{ text-align: center; position: absolute; top: 10px; left: 300px; width: 120px;
height: 40px; padding: 5px; float: left; z-index: 3;
-webkit-transition: all 3s;
transition: all 3s;
}
/* Start transform */
.rotatebox{ background-color: rgba(235,20,0,.5);
transform: rotate(0deg);
}
.rotatecirc{ background-color: rgba(255,200,0,.5);
transform: rotate(180deg);
}
.turnbox{ background-color: rgba(235,120,0,.8);
transform: rotate(0turn);
}
.pivotbox{ background-color: rgba(25,120,200,.6);
transform: rotate(0deg);
}
/* hover */
.beispiel:hover .rotatebox {
background-color: rgba(0,100,100,1); color: gold ;
transform: rotate(15deg);
opacity: 1;
}
.beispiel:hover .rotatecirc {
background-color: rgba(230,50,0,1); color: gold ;
transform: rotate(0deg);
opacity: 1;
}
.beispiel:hover .turnbox {
background-color: rgba(230,120,0,1); color: gold ;
transform: rotate(-1.5turn);
opacity: 1;
}
.beispiel:hover .pivotbox {
background-color: rgba(20,120,255,1); color: white ;
transform: rotate(90deg) translateX(-50px);
transform-origin: bottom left;
opacity: 1;
}
/* spezielle Formatierung */
section > p { font-size: 12px;}
.zentriert { position: relative; top: 30%; }
--></style>
<div class="beispiel" >
<?php
include "$ordnerpfad/komponenten/raster.htx" ;
?>
<section class="recrot rotatebox boxrahmen">
<p class="zentriert" style="top:5px">Rechteck <br />auf rotate(15deg);</p>
</section>
<section class="circrot rotatecirc boxrahmen">
<p class="zentriert">Kreis <br />auf rotate(0deg);</p>
</section>
<section class="turnrot turnbox boxrahmen">
<p class="zentriert" style="top:5px">Rechteck <br />auf rotate(-1.5turn);</p>
</section>
<section class="pivotrot pivotbox boxrahmen">
<p class="zentriert" style="top:2px">Rechteck dreht sich <br />um die linke untere Ecke</p>
</section>
</div>
|