Skip to content

Commit fdfcbdc

Browse files
authored
Merge pull request #4 from agbaum/claude/close-button-scroll-behavior-sUksP
Close button: show at bottom, larger, animated
2 parents 298428e + fb79505 commit fdfcbdc

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

src/app/article.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,20 @@ export default function ArticleScreen() {
479479
{ top: Dimensions.get("window").height * (2 / 3) - 48 },
480480
{
481481
opacity: closeBtnAnim,
482-
transform: [{
483-
translateY: closeBtnAnim.interpolate({
484-
inputRange: [0, 1],
485-
outputRange: [60, 0],
486-
}),
487-
}],
482+
transform: [
483+
{
484+
translateY: closeBtnAnim.interpolate({
485+
inputRange: [0, 1],
486+
outputRange: [60, 0],
487+
}),
488+
},
489+
{
490+
scale: closeBtnAnim.interpolate({
491+
inputRange: [0, 1],
492+
outputRange: [0, 1],
493+
}),
494+
},
495+
],
488496
},
489497
]}
490498
pointerEvents={atBottom ? "box-none" : "none"}

0 commit comments

Comments
 (0)