# css-translate-matrix-parser

> Let's you get the matrix value from a element CSS translate property. This is an ES6 fork of Iran Reyes's 2d-css-matrix-parse

Latest version **1.0.2** (published 2017-01-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install css-translate-matrix-parser
pnpm add css-translate-matrix-parser
yarn add css-translate-matrix-parser
bun add css-translate-matrix-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-01-15 |
| First published | 2017-01-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rafael Poveda |
| Maintainers | raerpo |
| Keywords | css parse, getComputedProperty |

## Links

- npm: https://www.npmjs.com/package/css-translate-matrix-parser
- Repository: https://github.com/raerpo/css-translate-matrix-parser
- Homepage: https://github.com/raerpo/css-translate-matrix-parser#readme
- Issues: https://github.com/raerpo/css-translate-matrix-parser/issues
- npm.io page: https://npm.io/package/css-translate-matrix-parser

## Recent versions

- 1.0.2 (latest) — 2017-01-15
- 1.0.1 — 2017-01-15
- 1.0.0 — 2017-01-15

## README

# css-translate-matrix-parser

Let's you get the matrix value from a element CSS translate property.

This is an ES6 port from [iranreyes's 2d-css-matrix-parse](https://github.com/iranreyes/2d-css-matrix-parse). I also remove it's dependency from [get-style-property](https://www.npmjs.com/package/get-style-property) by using `window.getComputedStyle` function.  

## Install

```bash
npm install --save css-translate-matrix-parser
```

## Usage
```javascript
import CSSParser from 'css-translate-matrix-parser';
// You can user css-translate-matrix-parser by passing it the element
let matrixValues = CSSParser.fromElement(document.querySelector('#element'));

// Or by passing the transform value
const styles = window.getComputedStyle(document.querySelector('#element'));
let matrixValues = CSSParser.parse(styles.transform);
```

---
_Source: https://npm.io/package/css-translate-matrix-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
