Sascha Schulz
2024-03-18 d93ae0d6ced6bd7edc2722bda6d0354e4f1dee2d
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
41
42
43
44
45
46
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <style>
            img {
                width: 100px;
                height: auto;
            }
            
            .canvas {
                perspective: 1000px;
            }
            
            .glass {
                margin: 0 auto;
                width: 10%;
 
                perspective: 1000px;
            }
            
            #fish {
                animation-name: swim;
                animation-duration: 2s;
                animation-iteration-count: infinite;
            }
 
            @keyframes swim {
                from {
                    transform: rotateX(-10deg) rotateY(360deg) translateZ(100px);
                }
                
                to {
                    transform: rotateX(-10deg) rotateY(0deg) translateZ(100px);
                }
            }
        </style>
    </head>
    <body>
        <div class="canvas">
            <div class="glass">
                <img id="fish" src="../images/blue-fish.png">
            </div>
        </div>
    </body>
</html>