STEP 16: The mouth is stuck open! Let's make it so that it closes soon after opening.

Actions in animations can happen so fast that we don't see them! Try using Wait to pause between actions.

  • Drop Wait indented inside the click event and change the number in the parentheses from 2 to 0.5.
  • Drop Set Height indented inside the click event and change 50 to 30.

We don't need to use dot notation here, because assigning the event to mouth assigns all actions in the event too!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)