• 2009-09-27

    【分享】js图像液态效果 - [js]

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://zlfoxy.blogbus.com/logs/47229946.html

    来源:

    http://www.javaeye.com/news/10520-javascript

    效果很炫

    使用也很简单

    引入包后, 在页面中调用如下代码即可:

    var demo = Liquid({
             src:"picName.jpg",
             target:document.getElementById("demo"),
             direction:"bottom",
             scale:2000,
             speed:10,
             callback:function(){
                alert("Done!");
            },
            onload:function(){
                reverse:true;
            }
        });

    里面各项参数均可调节 (据JE称兼容性很好,引用源码中的一段注释:

    * @author          Andrea Giammarchi
     * @blog            webreflection.blogspot.com
     * @license         Mit Style License
     * @version         1.4 - less DOM, smaller, faster
     * @compatibility   all but Safari <= 2 and IE4

    )好像确实不错~

    源代码:下载


    随机文章:

    <jsp-config> 2009-08-17
    Xsd入门 2008-04-14
    tomcat的配置 2007-06-12

    收藏到:Del.icio.us