Skip to content

Commit

Permalink
add tween comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Nov 28, 2015
1 parent a9a28a2 commit abb50b9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"version": "3.1.1"
},
"private": true,
"scripts": {
"start": "gulp generate"
},
"dependencies": {
"hexo": "^3.0.1",
"hexo-generator-archive": "^0.1.1",
Expand Down
1 change: 1 addition & 0 deletions source/downloads/code/tweens/All_Controls.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
layer.add(rect);
stage.add(layer);

// the tween has to be created after the node has been added to the layer
var tween = new Konva.Tween({
node: rect,
duration: 6,
Expand Down
1 change: 1 addition & 0 deletions source/downloads/code/tweens/All_Easings.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@

layer.add(text);

// the tween has to be created after the node has been added to the layer
var tween = new Konva.Tween({
node: text,
x: 280,
Expand Down
1 change: 1 addition & 0 deletions source/downloads/code/tweens/Common_Easing.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
layer.add(redBox);
stage.add(layer);

// the tween has to be created after the node has been added to the layer
greenBox.tween = new Konva.Tween({
node: greenBox,
scaleX: 2,
Expand Down
1 change: 1 addition & 0 deletions source/downloads/code/tweens/Finish_Event.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
layer.add(text);
stage.add(layer);

// the tween has to be created after the node has been added to the layer
var tween = new Konva.Tween({
node: wheel,
duration: 4,
Expand Down
2 changes: 2 additions & 0 deletions source/downloads/code/tweens/Tween_Filter.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
lion.filters([Konva.Filters.Blur]);
lion.blurRadius(10);
layer.draw();

// the tween has to be created after the node has been added to the layer
var tween = new Konva.Tween({
node: lion,
duration: 0.6,
Expand Down

0 comments on commit abb50b9

Please sign in to comment.