Beispiel:CSS3 filter-shadow.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>filter:drop-shadow</title>
<style>
.scharf {
filter: drop-shadow(10px 10px 0 black);
}
.weich {
filter: drop-shadow(10px 10px 10px black);
}
.weicher {
filter: drop-shadow(20px 20px 20px grey);
}
figure {
display: table-cell;
padding: 1em;
}
</style>
</head>
<body>
<h1>Verwendung von <code>filter:drop-shadow</code></h1>
<figure>
<img src="https://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
<figcaption>ohne Filter</figcaption>
</figure>
<figure>
<img class="scharf" src="https://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
<figcaption>filter: drop-shadow(10px 10px 0 black); </figcaption>
</figure>
<figure>
<img class="weich" src="https://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
<figcaption>filter: drop-shadow(10px 10px 10px black); </figcaption>
</figure>
<figure>
<img class="weicher" src="https://wiki.selfhtml.org/images/2/21/Burg.svg" alt="Burg" >
<figcaption>filter: drop-shadow(20px 20px 20px grey); </figcaption>
</figure>
<br>
<figure>
<img src="https://wiki.selfhtml.org/images/4/48/Flugzeug.png" alt="Flugzeug" >
<figcaption>ohne Filter</figcaption>
</figure>
<figure>
<img class="scharf" src="https://wiki.selfhtml.org/images/4/48/Flugzeug.png" alt="Flugzeug" >
<figcaption>filter: drop-shadow(10px 10px 0px black); </figcaption>
</figure>
<figure>
<img class="weich" src="https://wiki.selfhtml.org/images/4/48/Flugzeug.png" alt="Flugzeug" >
<figcaption>filter: drop-shadow(10px 10px 10px black); </figcaption>
</figure>
<figure>
<img class="weicher" src="https://wiki.selfhtml.org/images/4/48/Flugzeug.png" alt="Flugzeug" >
<figcaption>filter: drop-shadow(20px 20px 20px grey); </figcaption>
</figure>
</body>
</html>