listview特效
1.新listview列表,左边渐隐效果,不是直接消失。左边加一个渐隐的图片,然后左距离远一点128像素,在加cell。

2.listview列表,右边渐隐效果

        let offx = 0;
        rightEndBgNode.opacity = 0;

        this.sv.node.on('scrolling', () => {
            if (this.sv.getScrollOffset().x > offx) {
                rightEndBgNode.stopAllActions();
                rightEndBgNode.opacity = 255;
            }
        });
        this.sv.node.on('scroll-began', () => {
            offx = this.sv.getScrollOffset().x;
        });
        this.sv.node.on('scroll-ended', () => {
            rightEndBgNode.runAction(cc.fadeOut(3));
        })

标签: none

添加新评论