Preload images for jQuery Cycle Plugin

前端 未结 2 1953
臣服心动
臣服心动 2021-01-03 11:23

I’m quite new to jquery and trying to figure out how to preload images for the jQuery Cycle Plugin.

I have 5+ large size images and I need those to be preloaded befo

2条回答
  •  没有蜡笔的小新
    2021-01-03 11:38

    ...or if what you are experiencing is a pause between image transitions, add this argument to the cycle function. It makes cycle ignore non img content, such as whitespace and linebreaks, which can cause cycle to pause between transitions.

    jQuery('.imageslideshow').cycle({
        slideExpr: 'img',
        // other options
    });
    

提交回复
热议问题