Beispiel:CCS-animation-1.html
Aus SELFHTML-Wiki
<!DOCTYPE html>
<html>
<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>CSS animation 1</title>
<style>
h2 {
text-align: center;
animation: textwelle 3s;
font-size: 4em;
}
@keyframes textwelle {
0% {
transform: scale(0.1);
opacity: 0;
}
70% {
transform: scale(1.25);
opacity: 1;
}
100% {
transform: scale(1);
opacity: 1;
}
}
</style>
</head>
<body>
<h1>CSS: animation 1</h1>
<h2>Textwelle (animiert)</h2>
</body>
</html>