SELF-Treffen in Mannheim 2025
SELFHTML wird 30 Jahre alt!
Die Mitgliederversammlung findet am 24.05.2025 um 10:00 statt. Alle Mitglieder und Interessierte sind herzlich eingeladen.
Davor und danach gibt es Gelegenheiten zum gemütlichen Beisammensein. → Veranstaltungs-Ankündigung.
Beispiel:CSS3 transform-rotate.html
Aus SELFHTML-Wiki
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css">
<title>Rotate - 3Achsen</title>
<style>
@keyframes rotation {
0% {
rotate: var(--axis) 0;
}
100% {
rotate: var(--axis) 180deg;
}
}
.one {
--axis: x;
background-color: #c82f04;
color: white;
}
.two {
--axis: y;
background-color: #dfac20;
}
.three{
--axis: z;
background-color: #337599;
color: white;
}
.box {
display: inline-block;
height: 6em;
width: 6em;
line-height: 6em;
text-align: center;
border: medium solid #333;
margin: 1em;
font-size:1.5em;
animation: rotation 3s ease infinite alternate;
}
</style>
</head>
<body>
<h1>Drei Achsen<br><code>rotate</code></h1>
<div class="box one">
rotateX
</div>
<div class="box two">
rotateY
</div>
<div class="box three">
rotateZ
</div>
</body>
</html>