We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb1c1c6 commit 63f312fCopy full SHA for 63f312f
src/packlets/playground/balloon.svelte
@@ -11,7 +11,7 @@
11
export let size: number = 150
12
export let horizontal: number = 0
13
export let vertical: number | undefined
14
- export let acceleration = -6 // px/s^2
+ export let acceleration = 6 // px/s^2
15
16
const colors = [
17
'text-น้ำครั่ง',
@@ -40,7 +40,7 @@
40
const distance = 0.5 * acceleration * time ** 2
41
42
// calculate new height based on initial height and distance, would fly up
43
- currentHeight = currentHeight + distance
+ currentHeight = currentHeight - distance
44
45
// stop when it overshoots viewport height
46
if (-currentHeight - size * 2 > window.innerHeight) {
0 commit comments