2 2 10 36 0 0 0

translate3

QuellCode der Datei: 36_translate3.htx

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
<style type="text/css" media="all"><!--
.beispiel3{ 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; }
  
.rechteck3{ position: absolute; top: 10px; left: 10px; width: 170px; height: 40px; 
  padding: 5px; float: left; z-index: 2;
  -webkit-transition: all 2s; 
                transition: all 2s; }

.orig3{ background-color: rgba(255,255,250,1);
   -webkit-transform: translate(0px, 0px); 
   -ms-transform: translate(0px, 0px); 
   transform: translate(0px, 0px); }
.transbox3{ background-color: rgba(255,200,0,.5); 
      -webkit-transform: translate(155px, 40px);    
      -ms-transform: translate(155px, 40px);    
      transform: translate(155px, 40px);
}

.transboxX{ background-color: rgba(255,0,0,.5); 
      -webkit-transform: translatex(240px);    
      -ms-transform: translatex(240px);    
      transform: translatex(240px);
 }
.transboxY{ background-color: rgba(0,200,200,.5); 
      -webkit-transform: translatey(35px);    
      -ms-transform: translatey(35px);    
      transform: translatey(35px);
 }
section > p { font-size: 12px; }

--></style>

<div class="beispiel3" > 
<?php
 
include "$ordnerpfad/komponenten/raster.htx" ;
?>
 <section class="rechteck3 orig3">
  <p>Rechteck Ursprung<br />top: 10px; left: 10px;</p>
 </section>
 
 <section class="rechteck3 transbox3">
  <p>Rechteck 2<br />translate(155px, 40px);</p>
 </section>
    <section class="rechteck3 transboxX">
        <p>Rechteck 3<br />translatex(240px)</p>
        </section>
    <section class="rechteck3 transboxY">
        <p>Rechteck 4<br />translatey(35px);</p>
    </section>
</div>
zurück zu: Transformationen


Dokument geändert am: 05. Aug. 2016 11:06