Ron Au commited on
Commit
99431c9
1 Parent(s): 9dd26bb

fix(animation): Add delay for card appearance

Browse files
Files changed (1) hide show
  1. static/js/index.js +2 -0
static/js/index.js CHANGED
@@ -60,6 +60,8 @@ const generate = async () => {
60
 
61
  mousemoveHandlerForPreviousCard = initialiseCardRotation(scene);
62
 
 
 
63
  setOutput('card', 'completed');
64
  } catch (err) {
65
  generating = false;
 
60
 
61
  mousemoveHandlerForPreviousCard = initialiseCardRotation(scene);
62
 
63
+ await new Promise((resolve) => setTimeout(resolve, 1_000));
64
+
65
  setOutput('card', 'completed');
66
  } catch (err) {
67
  generating = false;