Skip to content

Instantly share code, notes, and snippets.

View lorenzopolidori's full-sized avatar

Lorenzo Polidori lorenzopolidori

View GitHub Profile
@lorenzopolidori
lorenzopolidori / has3d.js
Last active December 4, 2020 10:52 — forked from webinista/has3d.js
Testing for CSS 3D Transforms Support
function has3d(){
if (!window.getComputedStyle) {
return false;
}
var el = document.createElement('p'),
has3d,
transforms = {
'webkitTransform':'-webkit-transform',
'OTransform':'-o-transform',