I'm trying to create a hover effect for a button, the button before the hover only has an outline and its name inside, after the hover I would like it to have a transition to my background which is gradient, I tried several ways but it's not working .
Note: I am modifying an element of the "Elementor" Plugin in WordPress.
ul li {
  font-family: "Poppins", Sans-serif;
  font-size: 20px;
  font-weight: 500;
  padding: 25px 25px 25px 25px;
  margin: 0px 20px 50px 20px;
  background-color: #FFFFFF;
  color: var( --e-global-color-11a2147);
  border-style: solid;
  border-width: 2px 2px 2px 2px;
  border-color: var( --e-global-color-c49c864);
  border-radius: 20px 20px 20px 20px;
}
ul li:hover {
  background-color: transparent;
  background-image: linear-gradient( 90deg, #0081FF 0%, #5DE0E6 100%);
  color: #FFFFFF;
  border-style: solid;
  border-width: 0px 0px 0px 0px;
  border-radius: 20px 20px 20px 20px;
}<ul>
  <li>First</li>
  <li>Second</li>
  <li>Third</li>
</ul> 
     
    