Skip to content

Commit

Permalink
Merge pull request #2548 from framer/fix/background-position-default-…
Browse files Browse the repository at this point in the history
…types

Adding support for backgroundPositionX/Y default value types
  • Loading branch information
mergetron[bot] committed Mar 12, 2024
2 parents c223863 + 08f99a4 commit b563bad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Framer Motion adheres to [Semantic Versioning](http://semver.org/).

Undocumented APIs should be considered internal and may change without warning.

## [11.0.13] 2024-03-12

### Added

- Added default value types for `backgroundPositionX` and `backgroundPositionY`.

## [11.0.12] 2024-03-12

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions packages/framer-motion/src/render/dom/value-types/number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export const numberValueTypes: ValueTypeMap = {

// Misc
zIndex: int,
backgroundPositionX: px,
backgroundPositionY: px,

// SVG
fillOpacity: alpha,
Expand Down

0 comments on commit b563bad

Please sign in to comment.