Skip to content

Commit

Permalink
fix: legg til manglende easing og timing i motion.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Sep 7, 2022
1 parent ff279a2 commit 3ba5ffd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/jkl/_motion.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@use "sass:map";

// Oppdater verdier i motion.ts også
$_easings: (
"standard": ease,
"entrance": ease-out,
Expand All @@ -21,6 +22,7 @@ $_easings: (
}
}

// Oppdater verdier i motion.ts også
$_timings: (
"energetic": 75ms,
"snappy": 100ms,
Expand Down
2 changes: 2 additions & 0 deletions packages/core/src/utils/motion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ export const easings = Object.freeze({
entrance: "ease-out",
exit: "ease-in",
easeInBounceOut: "cubic-bezier(0, 0, 0.375, 1.17)",
focus: "cubic-bezier(0.6, 0.2, 0.35, 1)",
});

export type Timing = keyof typeof timings;

export const timings = Object.freeze({
energetic: "75ms",
snappy: "100ms",
productive: "150ms",
expressive: "250ms",
lazy: "400ms",
Expand Down

0 comments on commit 3ba5ffd

Please sign in to comment.