首页 > Web开发 > 详细

CSS: transforms, transitions,animations

时间:2019-03-26 17:00:12      阅读:183      评论:0      收藏:0      [点我收藏+]

CSS 2D Transforms

CSS Transforms

CSS transforms allow you to translate, rotate, scale, and skew elements.

A transformation is an effect that lets an element change shape, size and position.

CSS supports 2D and 3D transformations.

  • translate()
  • rotate()
  • scale()
  • skewX()
  • skewY()
  • matrix()

The translate() Method

The translate() method moves an element from its current position (according to the parameters given for the X-axis and the Y-axis).

The following example moves the <div> element 50 pixels to the right, and 100 pixels down from its current position:

transform: translate(50px, 100px);

 

CSS: transforms, transitions,animations

原文:https://www.cnblogs.com/Nyan-Workflow-FC/p/10601266.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!