I am having an issue with the Link component from the react-scroll library. I am trying to achieve a simple hover effect on my navigation links, where they increase in size using transform: scale(1.1). However, this effect is not working. I've tried using normal div elements instead of Link tags and the effect works fine, so I suspect there is something in the react-scroll library that is conflicting.
Here is my code:
JSX:
import React from "react";
import { Link, Element, Events, animateScroll as scroll, scrollSpy, scroller } from "react-scroll";
import "../App.css";
function Navbar() {
  return (
    <Link
      activeClass="active"
      to="about"
      spy={true}
      smooth={true}
      offset={-100}
      duration={500}
      className="navbar-item"
    >
      Hover over me to make me grow, click me to scroll down
    </Link>
  );
}
export default Navbar;
CSS:
.navbar-item {
  transition: all 0.3s ease;
}
.navbar-item:hover {
  transform: scale(1.1);
}
I would appreciate any assistance in resolving this issue. Thank you in advance!
 
    