当前位置:网站首页>3D mobile translate3d

3D mobile translate3d

2022-06-27 10:11:00 m0_ forty-nine million four hundred and seventy-one thousand si

3D We mainly study the most commonly used 3D Displacement and 3D rotate
Main knowledge points

  • 3D Displacement :translate3d(xy,z)
  • 3D rotate : rotate3d(xy,)
  • perspective : perspective
  • 3D present : transfrom- style
  • Two 、3D Move translate3d
  • 3D Move in 2D On the basis of movement, an additional direction that can be moved is added , Namely z Axis direction .

    translform: translateX(100px): Just in x Move on the axis
    translform: translateY(100px): Just in Y Move on the axis
    translform: translateZ(100px): Just in Z Move on the axis ( Be careful : translateZ It's usually used px Work unit )
    transform: translate3d(x,y,z): among x、y、z Refer to the distance in the direction of the axis to be moved
    Be careful :

    translateZ Along Z Axis movement
    translateZ The following units are usually followed by px
    translateZ(100px) Move outward 100px( Moving towards our eyes )
    No effect can be seen at present , It needs to be used with perspective
     

    transform: translateX(100px) translateY(100px) translateZ(100px); 
    transform: translate3d(100px,100px,100px);
    

原网站

版权声明
本文为[m0_ forty-nine million four hundred and seventy-one thousand si]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/178/202206270956097626.html