Skip to content

Commit

Permalink
added more constants
Browse files Browse the repository at this point in the history
  • Loading branch information
vicliu2001 committed Sep 4, 2024
1 parent e0413b0 commit a4735d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions client/utils/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
export const LIKES_INCREMENT_STEP = 8; // # of increment when displayed likes is less than finalLikes
export const LIKES_INCREMENT_DELAY = 15; // displayed likes increases by LIKES_INCREMENT_STEP every LIKES_INCREMENT_DELAY millisecs
export const LIKES_ANIMATION_DELAY = 4000; // delay in millisec the likes animation to wait for comments to start rolling
export const ANIMATION_DURATION_LOWER = 1000; // lower limit for animation runtime
export const ANIMATION_DURATION_UPPER = 2000; // upper limit for animation runtime
export const PAUSE_DURATION_LOWER = 2000; // lower limit for pause duration
export const PAUSE_DURATION_UPPER = 3000; // upper limit for pause duration

0 comments on commit a4735d9

Please sign in to comment.