Phani1008 commited on
Commit
ef73d7a
·
verified ·
1 Parent(s): 333c108

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -18
app.py CHANGED
@@ -16,30 +16,31 @@ hero_animation = load_lottieurl(lottie_animation_url)
16
  # App title
17
  st.title("Zero to Hero in Machine Learning 🚀")
18
 
19
- # Add animated text and Lottie animation in the top-right corner
20
  st.markdown(
21
  """
22
  <div style="position: fixed; top: 20px; left: 20px; display: flex; align-items: center;">
23
- <div style="font-size:30px; color:#f39c12; font-weight:bold; animation: textAnimation 2s ease-in-out infinite; margin-right: 20px;">
24
- Hey User! Are you Ready??
 
 
 
 
 
 
 
 
 
 
 
25
  </div>
26
- <div>
27
- <!-- Lottie animation -->
28
- <div style="width: 100px; height: 100px;">
29
- <script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.10/lottie.min.js"></script>
30
- <div id="lottie"></div>
31
- <script>
32
- var animation = bodymovin.loadAnimation({
33
- container: document.getElementById('lottie'),
34
- renderer: 'svg',
35
- loop: true,
36
- autoplay: true,
37
- path: 'https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json'
38
- });
39
- </script>
40
- </div>
41
  </div>
42
  </div>
 
43
  <style>
44
  @keyframes textAnimation {
45
  0% { color: #f39c12; transform: scale(1.1); }
 
16
  # App title
17
  st.title("Zero to Hero in Machine Learning 🚀")
18
 
19
+ # Add Lottie animation and animated text in the top-left corner
20
  st.markdown(
21
  """
22
  <div style="position: fixed; top: 20px; left: 20px; display: flex; align-items: center;">
23
+ <!-- Lottie animation -->
24
+ <div style="width: 100px; height: 100px; margin-right: 20px;">
25
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/bodymovin/5.7.10/lottie.min.js"></script>
26
+ <div id="lottie"></div>
27
+ <script>
28
+ var animation = bodymovin.loadAnimation({
29
+ container: document.getElementById('lottie'),
30
+ renderer: 'svg',
31
+ loop: true,
32
+ autoplay: true,
33
+ path: 'https://lottie.host/45619748-3867-4f57-8f50-cac297eca2da/1q98CFxp2I.json'
34
+ });
35
+ </script>
36
  </div>
37
+
38
+ <!-- Animated text -->
39
+ <div style="font-size:30px; color:#f39c12; font-weight:bold; animation: textAnimation 2s ease-in-out infinite;">
40
+ Hey User! Are you Ready??
 
 
 
 
 
 
 
 
 
 
 
41
  </div>
42
  </div>
43
+
44
  <style>
45
  @keyframes textAnimation {
46
  0% { color: #f39c12; transform: scale(1.1); }