odin-default-css-exercises/animation/03-dropdown-menu
zhna123 eae15934bf added animation - keyframe at rule exercise 2023-04-18 11:26:21 -04:00
..
solution added animation - keyframe at rule exercise 2023-04-18 11:26:21 -04:00
README.md added animation - keyframe at rule exercise 2023-04-18 11:26:21 -04:00
desired-outcome.gif added animation - keyframe at rule exercise 2023-04-18 11:26:21 -04:00
index.html added animation - keyframe at rule exercise 2023-04-18 11:26:21 -04:00
script.js added animation - keyframe at rule exercise 2023-04-18 11:26:21 -04:00
style.css added animation - keyframe at rule exercise 2023-04-18 11:26:21 -04:00

README.md

Dropdown Menu

We've set up a dropdown menu in this exercise. Load up the page, you can see a single menu title, with a dropdown menu that will open upon clicking on the title.

Your task is to add animation to the dropdown menu so that it will have an effect of growing down. Check out the desired outcome below, and notice the bounce illusion when the dropdown grows close to its final end state.

Hints

  • You need to specify a transform-origin property to make the dropdown menu start transforming from the top
  • You need to add an intermediate step to the keyframe at rule to implement the bounce illusion.

Desired Outcome

outcome

Self Check

  • The dropdown menu grows down after you click on the menu title
  • There's a bounce illusion towards the end of the animation