konva-gsap3-plugin
v1.0.0
Published
*Add konva_gsap3_plugin.js file after adding gsap library*
Downloads
2
Readme
konva-gsap3-plugin
Add konva_gsap3_plugin.js file after adding gsap library
Usage
gsap.to(konvaobject, {
duration: 1,
konva:{
x: "+=150",
y: 10
}
});
Using objects:
gsap.to(konvaobject, {
duration: 1,
konva:{
position:{
x: "+=150",
y: 10
},
scale:{
x: 2
}
}
});
Using array, e.g. for points:
gsap.to(konvaobject, {
duration: 1,
konva:{
points: [15, 170, 140, 23, 150, 60, 270, 150, 15,170]
}
});