Skip to content

Commit

Permalink
Deprecate addConsecutiveClasses()
Browse files Browse the repository at this point in the history
  • Loading branch information
apfelbox committed May 7, 2024
1 parent 4272c2a commit bfa0b6c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
=====

* (deprecation) Deprecate `matchMediaQuery()`, use `window.matchMedia()` directly.
* (deprecation) Deprecate `addConsecutiveClasses()`, use Framer Motion or a different animation library instead.


2.2.1
Expand Down
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

* The `createEvent` helper was removed, use `new CustomEvent()` directly.
* Removed `matchMediaQuery()`, use `window.matchMedia()` directly.
* Removed `addConsecutiveClasses()`, use Framer Motion or a different animation library instead.


1.x to 2.0
Expand Down
2 changes: 2 additions & 0 deletions src/animation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/**
* Adds two classes in consecutive animation frames.
*
* @deprecated use Framer Motion or a different animation library instead
*/
export function addConsecutiveClasses (
element: HTMLElement,
Expand Down

0 comments on commit bfa0b6c

Please sign in to comment.