H5 新特性04

2017-08-14  本文已影响0人  社会你码ge

Konva 基本操作

创建舞台

    new  Konva.stage({

        container:""

        width:

        height:

    })

创建层

    new Konva.Layer({

    })

创建组

    new Konva.Group({

    })

Konva基本图形

    rect

    star

    line

    ....

动画系统

Tween 配置

    new Tween({

        node: shape,

        duration:

        easing:

        yoyo:

        onFinish:function(){

        }

        /*要变的参数*/

    })

Tween对象的方法

    paly()

    pause()

    reset()

    reverse()

    finsh()

to方法

    Animation

上一篇 下一篇

猜你喜欢

热点阅读