2
我想添加圖像效果,如滑入/滑出或淡入/淡出或任何隨機效果到我的燈箱投資組合,我使用漂亮的照片插件。如何將動畫或效果添加到prettyphoto
有可能嗎?
下面是我的插件http://pastebin.com/zZMQWU9e
我想添加圖像效果,如滑入/滑出或淡入/淡出或任何隨機效果到我的燈箱投資組合,我使用漂亮的照片插件。如何將動畫或效果添加到prettyphoto
有可能嗎?
下面是我的插件http://pastebin.com/zZMQWU9e
你可以用動畫像這樣
$("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的完整文檔。
這不是答案,我知道這些事情..我想知道如何投入到我的源代碼的影響?像滑出幻燈片.. PLZ再次讀我的問題.. –