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