• 从无到右,从有到无的效果


    从无到右,从有到无的效果

    $("#ul").css('opacity',0);
    changeOpacity();
    //从无到有,2s;等待3s;从有到无,2s;等待1s;循环;
    function changeOpacity() {
    var waitTime=1000;
        $("#ul").fadeTo(2000,opacityUl); 
        if(opacityUl==1){
            opacityUl=0;
            waitTime=3000;
        }else if(opacityUl==0){
            opacityUl=1;
            waitTime=3000;
        }
        setTimeout(changeOpacity, waitTime);
    } 
  • 相关阅读:
    派生选择器
    HTML 标签
    $.get()
    CC150
    CC150
    CC150
    CC150
    HashMap和HashTable的区别
    CC150
    quickSort
  • 原文地址:https://www.cnblogs.com/mina-huojian66/p/8032179.html
Copyright © 2020-2023  润新知