Beispiel:CSS3 filter-hue-rotate.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!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>filter:hue-rotate</title>
		<style>
.viertel {
	filter: hue-rotate(90deg);
}
.halb {
	filter: hue-rotate(180deg);
}
.dreiviertel {
	filter: hue-rotate(270deg);
}
figure {
	display: table-cell;
	padding: 1em;
}
	</style>
</head>
<body>
	<h1>Verwendung von <code>filter:hue-rotate</code></h1>
	<figure>
		<img src="https://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
		<figcaption>ohne Filter</figcaption>
	</figure>
	<figure>
		<img class="viertel" src="https://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
		<figcaption>filter: hue-rotate(90deg); </figcaption>
	</figure>
	<figure>
		<img class="halb" src="https://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
		<figcaption>filter: hue-rotate(180deg); </figcaption>
	</figure>
	<figure>
		<img class="dreiviertel" src="https://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
		<figcaption>filter: hue-rotate(270deg); </figcaption>
	</figure>
	<br>
	<figure>
		<img src="https://wiki.selfhtml.org/images/2/24/Lauf-3.jpg" width="160" alt="Lauf" >
		<figcaption>ohne Filter</figcaption>
	</figure>
	<figure>
		<img class="viertel" src="https://wiki.selfhtml.org/images/2/24/Lauf-3.jpg" width="160" alt="Lauf" >
		<figcaption>filter: hue-rotate(90deg); </figcaption>
	</figure>
	<figure>
		<img class="halb" src="https://wiki.selfhtml.org/images/2/24/Lauf-3.jpg" width="160" alt="Lauf" >
		<figcaption>filter: hue-rotate(180deg); </figcaption>
	</figure>
	<figure>
		<img class="dreiviertel" src="https://wiki.selfhtml.org/images/2/24/Lauf-3.jpg" width="160" alt="Lauf" >
		<figcaption>filter: hue-rotate(270deg); </figcaption>
	</figure>
</body>
</html>