Skip to content

Convert hint hover code from jQuery to JavaScript #772

Description

@brittanyrw

When you hover over the question mark icon on cards, a hint will appear. The code for this is located in the app.js.

Convert the code for this hover feature from jQuery into JavaScript. Only convert this specific section of code.

// Display a hint (type ie tv, movie or musical) when hovering over the question mark.
$("#emojis").on("mouseover", ".hint-container", function () {
  $(this).find(".hint").addClass("hint-reveal");
});

// Hide hint (type ie tv, movie or musical) when the user stops hovering over the question mark.
$("#emojis").on("mouseleave", ".hint-container", function () {
  $(this).find(".hint").removeClass("hint-reveal");
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions