Baseline Widely available
matrix()
㯠CSS ã®é¢æ°ã§ãäºæ¬¡å
忬¡å¤æè¡åãå®ç¾©ãã¾ããçµæã¯ <transform-function>
ãã¼ã¿åã«ãªãã¾ãã
transform: matrix(1.2, 0.2, -1, 0.9, 0, 20);
transform: matrix(0.4, 0, 0.5, 1.2, 60, 10);
transform: matrix(0, 1, 1, 0, 0, 0);
transform: matrix(0.1, 1, -0.3, 1, 0, 0);
<section id="default-example">
<img
class="transition-all"
id="example-element"
src="/shared-assets/images/examples/firefox-logo.svg"
width="200" />
</section>
ã¡ã¢: matrix(a, b, c, d, tx, ty)
㯠matrix3d(a, b, 0, 0, c, d, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1)
ã®ç縮形ã§ãã
matrix()
颿°ã¯ 6 ã¤ã®å¤ã§æå®ããã¾ãã宿°ã¯å
èµããã¦ãã¦å¼æ°ã¨ãã¦ã¯æ¸¡ãããããã®ä»ã®å¼æ°ã¯ååªå
ã®é ã§è¨è¿°ããã¾ãã
matrix(a, b, c, d, tx, ty)
å¤
<number>
ã§ãç·å½¢å¤æãè¨è¿°ãã¾ãã
<number>
ã§ãé©ç¨ãã夿ãè¨è¿°ãã¾ãã
å¤ã¯æ¬¡ã®é¢æ°ã表ãã¾ãã matrix(scaleX(), skewY(), skewX(), scaleY(), translateX(), translateY())
<div>Normal</div>
<div class="changed">Changed</div>
CSS
div {
width: 80px;
height: 80px;
background-color: skyblue;
}
.changed {
transform: matrix(1, 2, -1, 1, 80, 80);
background-color: pink;
}
çµæ 仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4