summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/css-filters-animation-blur.html
blob: f1bedd1c245dec34e9cc51f0138a32806a356f54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<html>
<head>
    <title>CSS Filters Animation: Blur</title>
    <link rel="author" title="Gunther Brunner" href="mailto:takeshimiya@gmail.com">
    <link rel="reviewer" title="Dirk Schulze" href="mailto:dschulze@adobe.com">
    <link rel="reviewer" title="Rebecca Hauck" href="mailto:rhauck@adobe.com">
    <link rel="help" href="http://www.w3.org/TR/filter-effects-1/#FilterProperty">
    <link rel="help" href="https://www.w3.org/TR/filter-effects-1/#funcdef-filter-blur">
    <link rel="help" href="http://www.w3.org/TR/css3-animations/#animations">
    <link rel="match" href="css-filters-animation-blur-ref.html">
    <meta name="assert" content="The blue square should be 10px blurred">
    <meta name="fuzzy" content="0-5;0-16000">
    <style type="text/css">
        @keyframes animate {
            0% {
                filter: blur(20px);
            }
            100% {
                filter: none;
            }
        }

        .square {
            width: 100px;
            height: 100px;
            background: blue;
            animation-name: animate;
            animation-play-state: paused;
            animation-delay: -2s;
            animation-duration: 4s;
            animation-timing-function: linear;
        }
     </style>
</head>
<body>
<p>You should see a blurred rectangle.</p>
<div class="square"></div>
</body>
</html>