Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
whatsrupp committed Jan 26, 2025
1 parent e9ab623 commit 2e2f667
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/Blog/Blog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,13 @@ But in reflection, I did end up with something *suspiciously close* to keyframes

These allow you to change the configuration of the animation as the veloctiy of the fidget spinner changes.

Here's a basic example. Which Changes the scale to x3 at 90% of the max velocity. and x2 at 70% of the max velocity. Behind the scenes you need to add in some logic to make the step changes not feel too sudden. But I won't go into that.
Here's a basic example which:
- changes the scale to x2 at 70% of the max velocity
- changes the scale to x3 at 90% of the max velocity

```
Behind the scenes you need to add in some logic to make the changes feel smooth instead of sudden. But I won't go into that here.

```tsx
export const defaultVelocityBreakpoints: VelocityBreakpointInput[] = [
{
breakpoint: 0.9, // Triggers at 90% of the max velocity
Expand Down

0 comments on commit 2e2f667

Please sign in to comment.