4,092
edits
No edit summary |
No edit summary |
||
Line 422: | Line 422: | ||
} | } | ||
function foo( | function foo() { | ||
const showArticle = document.querySelector('#show-article'); | |||
const h = showArticle.clientHeight; | |||
const a = Math.cos(Math.atan(10/h)); | |||
console.log | const b = Math.sin(Math.atan(10/h)); | ||
const c = -Math.sin(Math.atan(10/h)); | |||
const d = Math.cos(Math.atan(10/h)); | |||
// `transform: matrix(1, -0.02, 0.02, 1, 0, 0);` | |||
showArticle.style.transform = `matrix(${a}, ${b}, ${c}, ${d}, 0, 0);`; | |||
console.log('', h); | |||
} | } | ||