ပိုင်ဆိုင်မှု ပုံစံ အသွင်ပြောင်း
ဥပမာ
div အစိတ်အပိုင်းတစ်ခုကို လှည့်ပါ-
document.getElementById("myDIV").style.transform = "rotate(7deg)";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
အသွင်ပြောင်းခြင်း ပိုင်ဆိုင်မှုသည် 2D သို့မဟုတ် 3D အသွင်ပြောင်းခြင်းကို ဒြပ်စင်တစ်ခုသို့ သက်ရောက်သည်။ ဤပိုင်ဆိုင်မှုသည် သင့်အား လှည့်ရန်၊ အတိုင်းအတာ၊ ရွှေ့ရန်၊ လှည့်ရန်၊ စသည်ဖြင့် အစိတ်အပိုင်းများကို ခွင့်ပြုသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
transform | 36.0 | 10.0 9.0 msTransform |
16.0 | 9.0 | 23.0 |
အထားအသို
အသွင်ပြောင်းပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.transform
ပြောင်းလဲခြင်း ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.transform = "none|transform-functions|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
none | Defines that there should be no transformation |
matrix(n, n, n, n, n, n) | Defines a 2D transformation, using a matrix of six values |
matrix3d(n, n, n, n, etc....) | Defines a 3D transformation, using a 4x4 matrix of 16 values |
translate(x, y) | Defines a 2D translation |
translate3d(x, y, z) | Defines a 3D translation |
translateX(x) | Defines a translation, using only the value for the X-axis |
translateY(y) | Defines a translation, using only the value for the Y-axis |
translateZ(z) | Defines a 3D translation, using only the value for the Z-axis |
scale(x, y) | Defines a 2D scale transformation |
scale3d(x, y, z) | Defines a 3D scale transformation |
scaleX(x) | Defines a scale transformation by giving a value for the X-axis |
scaleY(y) | Defines a scale transformation by giving a value for the Y-axis |
scaleZ(z) | Defines a 3D scale transformation by giving a value for the Z-axis |
rotate(angle) | Defines a 2D rotation, the angle is specified in the parameter |
rotate3d(x, y, z, angle) | Defines a 3D rotation |
rotateX(angle) | Defines a 3D rotation along the X-axis |
rotateY(angle) | Defines a 3D rotation along the Y-axis |
rotateZ(angle) | Defines a 3D rotation along the Z-axis |
skew(x-angle, y-angle) | Defines a 2D skew transformation along the X- and the Y-axis |
skewX(angle) | Defines a 2D skew transformation along the X-axis |
skewY(angle) | Defines a 2D skew transformation along the Y-axis |
perspective(n) | Defines a perspective view for a 3D transformed element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | မရှိ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ အသွင်ပြောင်းပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသော စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- ပိုင်ဆိုင်မှုကို အသွင်ပြောင်း ပါ။
❮ စတိုင်အရာဝတ္ထု