# get-css-translated-position **Repository Path**: mirrors_dafrok/get-css-translated-position ## Basic Information - **Project Name**: get-css-translated-position - **Description**: Get position of DOM elements positioned with CSS translate - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # get-css-translated-position Get position of DOM elements positioned with CSS translate ## install ``` npm install get-css-translated-position ``` ## example ```javascript var translatedPosition = require('get-css-translated-position') // by default it doesn't account for element's offset // on the page, just the value of its translation translatedPosition(el) //=> {x: 5, y: 47} // if you want it's position on the page pass the following option translatedPosition(el, {includePageOffset: true}) //=> {x: 15, y: 147} ``` ## credits If you like this follow [@HenrikJoreteg](http://twitter.com/henrikjoreteg) on twitter. ## license MIT