Regeneric

Untitled

Sep 23rd, 2020
798
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const one = document.querySelector(".one");
  2. const two = document.querySelector(".two");
  3.  
  4. one.addEventListener("mouseenter", () => {
  5.   two.style.opacity = 0;
  6. });
  7. one.addEventListener("mouseleave", () => {
  8.   two.style.opacity = 1;
  9. });
  10.  
RAW Paste Data