File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,20 +30,20 @@ export default function RoleSpinner() {
30
30
setCurrentItem ( getRandomItem ( ) ) ;
31
31
} , 100 ) ;
32
32
33
- // After 2 seconds, start slowing down
33
+ // After 0.5 seconds, start slowing down (reduced from 2 seconds)
34
34
timeoutRef . current = setTimeout ( ( ) => {
35
35
setSpinnerState ( 'slowing' ) ;
36
36
if ( intervalRef . current ) {
37
37
clearInterval ( intervalRef . current ) ;
38
38
}
39
39
40
- // Slowing down phase - increasing intervals
41
- let interval = 150 ;
40
+ // Slowing down phase - increasing intervals (faster progression)
41
+ let interval = 120 ;
42
42
const slowDown = ( ) => {
43
43
setCurrentItem ( getRandomItem ( ) ) ;
44
- interval += 50 ; // Increase interval each time to slow down
44
+ interval += 40 ; // Increase interval each time to slow down (reduced from 50)
45
45
46
- if ( interval <= 800 ) {
46
+ if ( interval <= 500 ) { // Stop earlier (reduced from 800)
47
47
setTimeout ( slowDown , interval ) ;
48
48
} else {
49
49
// Final selection
@@ -56,7 +56,7 @@ export default function RoleSpinner() {
56
56
} ;
57
57
58
58
slowDown ( ) ;
59
- } , 2000 ) ;
59
+ } , 500 ) ; // Reduced from 2000ms to 500ms
60
60
} ;
61
61
62
62
const resetSpinner = ( ) => {
You can’t perform that action at this time.
0 commit comments