Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8a1352c

Browse files
lowered the layout animation duration and changed the easing
1 parent 2a5055a commit 8a1352c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎src/components/SnippetList.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ const SnippetList = () => {
6060
},
6161
}}
6262
transition={{
63-
type: "spring",
64-
duration: shouldReduceMotion ? 0 : 0.5,
63+
ease: [0,0.75,0.25,1],
64+
duration: shouldReduceMotion ? 0 : 0.25,
6565
}}
6666
>
6767
<motion.button

‎src/components/SnippetModal.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ const SnippetModal: React.FC<Props> = ({
5050
className="modal | flow"
5151
data-flow-space="lg"
5252
layoutId={`${language}-${snippet.title}`}
53-
transition={{ type: "spring", duration: shouldReduceMotion ? 0 : 0.5 }}
53+
transition={{
54+
ease: [0, 0.75, 0.25, 1],
55+
duration: shouldReduceMotion ? 0 : 0.3,
56+
}}
5457
>
5558
<div className="modal__header">
5659
<h2 className="section-title">{snippet.title}</h2>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /