最佳答案
你可以像这样使用动画
$("a[rel^='prettyPhoto']").prettyPhoto({
animation_speed: 'fast', /* fast/slow/normal */
slideshow: 5000, /* false OR interval time in ms */
autoplay_slideshow: false, /* true/false */
opacity: 0.80, /* Value between 0 and 1 */
show_title: true, /* true/false */
allow_resize: true, /* Resize the photos bigger than viewport. true/false */
default_width: 500,
});
这是您在问题中讨论的 pretyphotos 的完整文档。
关于javascript - 如何给prettyphoto添加动画或效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17464525/