We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfeabfb commit be5a7d1Copy full SHA for be5a7d1
src/guide/extras/animation.md
@@ -160,6 +160,8 @@ const tweened = reactive({
160
number: 0
161
})
162
163
+// Note: For inputs greater than Number.MAX_SAFE_INTEGER (9007199254740991),
164
+// the result may be inaccurate due to limitations in JavaScript number precision.
165
watch(number, (n) => {
166
gsap.to(tweened, { duration: 0.5, number: Number(n) || 0 })
167
@@ -183,6 +185,8 @@ export default {
183
185
tweened: 0
184
186
}
187
},
188
+ // Note: For inputs greater than Number.MAX_SAFE_INTEGER (9007199254740991),
189
+ // the result may be inaccurate due to limitations in JavaScript number precision.
190
watch: {
191
number(n) {
192
gsap.to(this, { duration: 0.5, tweened: Number(n) || 0 })
0 commit comments