js-munich-2020-spring

Lesson 5 Classwork

Let’s practive mouseover/mouseleave/onclick events

Spec

We want to have a button with following specification

  1. can react onclick event
  2. change background color in case of mouseover
  3. restore initial background when mouse leave the button

Tips

Bonus

Challenge:

Super bonus

Create a tooltip - if user hover mouse on the button, then display some helper text close to the mouse pointer