File size: 788 Bytes
67b4420
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
af952b7
67b4420
 
 
 
 
4659fee
67b4420
 
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
import gradio as gr

html_content = """
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Text Animation</title>
    <style>
        @keyframes fadeInOut {
            0%, 100% {
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
        }

        .animated-text {
            font-size: 3em;
            font-weight: bold;
            text-align: center;
            margin-top: 20%;
            animation: fadeInOut 3s infinite;
            color: #000;
        }
    </style>
</head>
<body>
    <div class="animated-text">this is text!</div>
</body>
</html>
"""

with gr.Blocks() as demo:
    gr.HTML(html_content)

demo.launch()