Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const one = document.querySelector(".one");
- const two = document.querySelector(".two");
- one.addEventListener("mouseenter", () => {
- two.style.opacity = 1;
- two.style.transition = "3s";
- });
- one.addEventListener("mouseleave", () => {
- two.style.transition = "0s";
- two.style.opacity = 0;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement