I've currently got a functioning footnote popup. But I only want it to fade away only if the user starts to scroll. From a previously asked question it seems that using the onscroll event would be my best shot. I just need help for implementing this specifically to only trigger when the user hovers over the footnote and the span appears. I have pretty much no experience with js on HTML documents, any help would be appreciated.
Current code:
a.footnote span {
    z-index: -1;
    opacity: 0;
    position: fixed;
    left: 15px; 
    bottom: 20px;
    margin-left: 0px;
    margin-right: 18px;
    padding:14px 20px;
    border-radius:4px; box-shadow: 5px 5px 8px #CCC;
    border:1px solid #DCA;
    background-color: #FEF6BB;
    -webkit-transition: all 2s ease;
    -moz-transition: all 2s ease;
    -o-transition: all 2s ease;
    transition: all 2s ease;
}
 
a.footnote:hover span {
    z-index: 9;
    opacity: 1;
    -webkit-transition: all 2s ease;
    -moz-transition: all 2s ease;
    -o-transition: all 2s ease;
    transition: all 2s ease;
}
<a class="footnote" href="#fuente1"><sup id="texto1">[1]</sup><span>Popup footnote</span></a>