Yntec commited on
Commit
83be5aa
1 Parent(s): 68f1492

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +43 -1
app.py CHANGED
@@ -112,7 +112,49 @@ with gr.Blocks(css=css) as myface:
112
  top:50%;
113
  background-image: linear-gradient(#6d43e4, #8150df) !important;
114
  border-radius: 24px !important;
115
- }</style>""")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  run=gr.Button("Generate Image")
117
  with gr.Row():
118
  with gr.Column(style="width=800px"):
 
112
  top:50%;
113
  background-image: linear-gradient(#6d43e4, #8150df) !important;
114
  border-radius: 24px !important;
115
+ }
116
+
117
+ .gr-button:before {
118
+ content: "hello";
119
+ background: linear-gradient(
120
+ 45deg,
121
+ #ff0000,
122
+ #ff7300,
123
+ #fffb00,
124
+ #48ff00,
125
+ #00ffd5,
126
+ #002bff,
127
+ #7a00ff,
128
+ #ff00c8,
129
+ #ff0000
130
+ );
131
+ position: absolute;
132
+ top: -2px;
133
+ left: -2px;
134
+ background-size: 400%;
135
+ z-index: -1;
136
+ filter: blur(5px);
137
+ -webkit-filter: blur(5px);
138
+ width: calc(100% + 4px);
139
+ height: calc(100% + 4px);
140
+ animation: glowing 20s linear infinite;
141
+ transition: opactiy 0.3s ease-in-out;
142
+ border-radius: 10px;
143
+ }
144
+
145
+ @keyframes glowing {
146
+ 0% {
147
+ background-position: 0 0;
148
+ }
149
+ 50% {
150
+ background-position: 400% 0;
151
+ }
152
+ 100% {
153
+ background-position: 0 0;
154
+ }
155
+ }
156
+
157
+ </style>""")
158
  run=gr.Button("Generate Image")
159
  with gr.Row():
160
  with gr.Column(style="width=800px"):