Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
css3-translate
Advanced tools
A tiny, functional CSS3 translation transforms API that shims browser-specific APIs.
A tiny (900 bytes minified, 470 bytes gziped), functional CSS3 translation transforms API for JavaScript. Supports all browsers supporting CSS3 Transforms. Check out the support grid.
3D transforms - translate.z
and translate.d3
- have a separate support grid.
git clone https://github.com/mattcg/css3-translate.git
cd css3-translate/
make
cp build/translate.min.js /path/to/my-project/js/
Alternatively, use Component, Bower or npm to install to your project as a dependency.
For all translation methods, if a length does not include units, px
will be used.
Apply a translate(tx, ty)
CSS transform to the given element, moving the position of the element on the plane.
If missing, ty
is assumed to be equal to tx
: translate(2)
means translate(2, 2)
.
Apply a translateX(tx)
CSS transform to the given element, moving the element horizontally on the plane.
Apply a translateY(ty)
CSS transform to the given element, moving the element vertically on the plane.
Apply a translateZ(tz)
CSS transform to the given element, moving the element along the z-axis of the 3D space.
Apply a translate3d(tx, ty, tz)
CSS transform to the given element, moving the position of the element in the 3D space.
Get the browser-specific transform rule e.g. 'webkitTransform' or 'transform'.
Copyright © 2013 Matthew Caruana Galizia, licensed under an MIT license.
FAQs
A tiny, functional CSS3 translation transforms API that shims browser-specific APIs.
The npm package css3-translate receives a total of 1 weekly downloads. As such, css3-translate popularity was classified as not popular.
We found that css3-translate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.