我有一系列图像鼠标悬停链接,悬停时会改变背景位置。是否可以在不更改我的 CSS3 的情况下对这些链接使用 jquery 缓动?如果是这样,有人有任何例子吗?
这是我的代码:
<div id="bbnav">
<a class="bbnav1" href="#"></a>
<a class="bbnav2" href="#"></a>
<a class="bbnav3" href="#"></a>
<a class="bbnav4" href="#"></a>
<a class="bbnav5" href="#"></a>
<a class="bbnav6" href="#"></a>
<a class="bbnav7" href="#"></a>
</div>
.bbnav1:hover {background-position: 0px -64px; cursor::pointer}
.bbnav2:hover {background-position: -159px -64px; cursor::pointer}
.bbnav3:hover {background-position: -273px -64px; cursor::pointer}
.bbnav4:hover {background-position: -422px -64px; cursor::pointer}
.bbnav5:hover {background-position: -580px -64px; cursor::pointer}
.bbnav6:hover {background-position: -658px -64px; cursor::pointer}
.bbnav7:hover {background-position: -808px -64px; cursor::pointer}