Update app.py
Browse files
app.py
CHANGED
@@ -123,34 +123,7 @@ def inject_custom_css():
|
|
123 |
transition: width 0.5s ease; }
|
124 |
.question-count { color: #6C63FF; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
|
125 |
|
126 |
-
|
127 |
-
/* === ADD CURSOR EFFECT HERE === */
|
128 |
-
body { cursor: none; }
|
129 |
-
.cursor-trail {
|
130 |
-
position: fixed;
|
131 |
-
width: 20px;
|
132 |
-
height: 20px;
|
133 |
-
border-radius: 50%;
|
134 |
-
background: radial-gradient(circle, #6C63FF 0%, #3B82F6 100%);
|
135 |
-
pointer-events: none;
|
136 |
-
transform: translate(-50%, -50%);
|
137 |
-
z-index: 9999;
|
138 |
-
opacity: 0.7;
|
139 |
-
transition: transform 0.1s ease-out;
|
140 |
-
}
|
141 |
</style>
|
142 |
-
<script>
|
143 |
-
document.addEventListener('DOMContentLoaded', function() {
|
144 |
-
const cursor = document.createElement('div');
|
145 |
-
cursor.classList.add('cursor-trail');
|
146 |
-
document.body.appendChild(cursor);
|
147 |
-
|
148 |
-
document.addEventListener('mousemove', function(e) {
|
149 |
-
cursor.style.left = e.clientX + 'px';
|
150 |
-
cursor.style.top = e.clientY + 'px';
|
151 |
-
});
|
152 |
-
});
|
153 |
-
</script>
|
154 |
""", unsafe_allow_html=True)
|
155 |
|
156 |
def show_confetti():
|
|
|
123 |
transition: width 0.5s ease; }
|
124 |
.question-count { color: #6C63FF; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
""", unsafe_allow_html=True)
|
128 |
|
129 |
def show_confetti():
|