Beispiel:CSS3 filter-brightness.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!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>filter:brightness</title>
	<style>
			.dunkler {
				filter: brightness(0.5);
			}
			.heller {
				filter: brightness(1.5);
			}
			.nochHeller {
				filter: brightness(2.5);
			}
			figure {
				display: table-cell;
				padding: 1em;
			}
		</style>
	</head>
<body>
	<h1>Verwendung von <code>filter:brightness</code></h1>
	<figure>
		<img src="http://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
		<figcaption>ohne Filter</figcaption>
	</figure>
	<figure>
		<img class="dunkler" src="http://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
		<figcaption>filter: brightness(0.5); </figcaption>
	</figure>
	<figure>
		<img class="heller" src="http://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
		<figcaption>filter: brightness(1.5); </figcaption>
	</figure>
	<figure>
		<img class="nochHeller" src="http://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
		<figcaption>filter: brightness(2.5); </figcaption>
	</figure>
	<br>
	<figure>
		<img src="http://wiki.selfhtml.org/images/2/24/Lauf-3.jpg" width="160" alt="Lauf" >
		<figcaption>ohne Filter</figcaption>
	</figure>
	<figure>
		<img class="dunkler" src="http://wiki.selfhtml.org/images/2/24/Lauf-3.jpg" width="160" alt="Lauf" >
		<figcaption>filter: brightness(0.5); </figcaption>
	</figure>
	<figure>
		<img class="heller" src="http://wiki.selfhtml.org/images/2/24/Lauf-3.jpg" width="160" alt="Lauf" >
		<figcaption>filter: brightness(1.5); </figcaption>
	</figure>
	<figure>
		<img class="nochHeller" src="http://wiki.selfhtml.org/images/2/24/Lauf-3.jpg" width="160" alt="Lauf" >
		<figcaption>filter: brightness(2.5); </figcaption>
	</figure>
</body>
</html>