在jquery中在图像上弹出图标

poping icons over an image in jquery

本文关键字:图标 图像 jquery      更新时间:2023-09-26

我希望先加载图像,然后位置图标弹出,并具有良好的动画效果,如反弹或弹出效果。我目前有静态图像,但想让它更有趣。我在这里附上了图像

也许是这样的?

$(document).ready(function() {
    //Hide all location images
    $("img.locations").toggle();
    $("img.backround-image").on("load", function() {
        $("img.locations").fadeIn();
        //Show all location images with a fade in
        //- or any other animation for all location images
    });
});