Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/v2/guide/transitioning-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Vue のトランジションシステムは entering、leaving、およびリス
ウォッチャは、任意の数値プロパティの変化によって他のプロパティをアニメーションさせることができるようにします。それは理論的には複雑に聞こえるかもしれませんが、[GreenSock](https://greensock.com/)を使った例に没頭してみましょう:

``` html
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.2.4/gsap.min.js"></script>

<div id="animated-number-demo">
<input v-model.number="number" type="number" step="20">
Expand All @@ -41,14 +41,14 @@ new Vue({
},
watch: {
number: function(newValue) {
TweenLite.to(this.$data, 0.5, { tweenedNumber: newValue });
gsap.to(this.$data, { duration: 0.5, tweenedNumber: newValue });
}
}
})
```

{% raw %}
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.3/TweenMax.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.2.4/gsap.min.js"></script>
<div id="animated-number-demo" class="demo">
<input v-model.number="number" type="number" step="20">
<p>{{ animatedNumber }}</p>
Expand All @@ -67,7 +67,7 @@ new Vue({
},
watch: {
number: function(newValue) {
TweenLite.to(this.$data, 0.5, { tweenedNumber: newValue });
gsap.to(this.$data, { duration: 0.5, tweenedNumber: newValue });
}
}
})
Expand Down