# mat4-css-stringify

> stringifies a mat4 into a css matrix3d()

Latest version **1.0.1** (published 2015-01-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install mat4-css-stringify
pnpm add mat4-css-stringify
yarn add mat4-css-stringify
bun add mat4-css-stringify
```

## 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.1 |
| Published | 2015-01-04 |
| First published | 2015-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Matt DesLauriers |
| Maintainers | mattdesl |
| Keywords | css, stringify, matrix, matrix3d, concat, join |

## Links

- npm: https://www.npmjs.com/package/mat4-css-stringify
- Repository: https://github.com/mattdesl/mat4-css-stringify
- Issues: https://github.com/mattdesl/mat4-css-stringify/issues
- npm.io page: https://npm.io/package/mat4-css-stringify

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-01-04
- 1.0.0 — 2015-01-04

## README

# mat4-css-stringify

[![frozen](http://badges.github.io/stability-badges/dist/frozen.svg)](http://github.com/badges/stability-badges)

Stringifies a 4x4 matrix (stored in a 16 float flat array) into a `matrix3d()` string. Useful in conjunction with [mat4-css-parse](https://nodei.co/npm/mat4-css-parse/).

```js
var stringify = require('mat4-css-stringify')
var parse = require('mat4-css-parse')

//get element's current transformation
var mat4 = parse(computedStyle.transform)

// ... do some matrix operations on the array

//then update the transform
var style = stringify(mat4)
require('dom-css')(element, 'transform', style)
```

## Usage

[![NPM](https://nodei.co/npm/mat4-css-stringify.png)](https://nodei.co/npm/mat4-css-stringify/)

#### `str = stringify(matrix)`

Returns a `matrix3d()` string representing the given 4x4 matrix (i.e. array with 16 floats).

## License

MIT, see [LICENSE.md](http://github.com/mattdesl/mat4-css-stringify/blob/master/LICENSE.md) for details.

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