Skip to content

这是一个关于 transform & transition 的练习,里面包括了“正方体实现”,以及 “3D 翻转焦点图”和 “3D 旋转轮播图”。

Notifications You must be signed in to change notification settings

sunorry/css3-transform-transition-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-moz 就不写了,直接用 chrome 看吧!

Transition(过渡)

Internet Explorer 9 以及更早版本的浏览器不支持 transition 属性。

  1. transition-property:all (initial value)
  2. transition-duration: 0s
  3. transition-timing-function: ease
  4. transition-delay: 0s

transition-timing-function

  • linear: 匀速 ( cubic-bezier(0,0,1,1) )
  • ease: 慢速开始,然后变快,然后慢速结束的过渡效果 ( cubic-bezier(0.25,0.1,0.25,1) )
  • ease-in: 慢速开始过渡效果 ( cubic-bezier(0.42,0,1,1) )
  • ease-out: 慢速结束的过渡效果 ( cubic-bezier(0,0,0.58,1) )
  • ease-in-out: 慢速开始和结束的过渡效果 ( cubic-bezier(0.42,0,0.58,1) )
  • cubic-bezier(n,n,n,n): 在 cubic-bezier 函数中定义自己的值。可能的值是 0 至 1 之间的数值。

cubic-bezier贝塞尔曲线 http://matthewlein.com/ceaser/

Transform(变换)

-webkit-transform-style: preserve-3d (This is an experimental technology)

变换 3d 场景

-webkit-perspective

perspective 属性定义 3D 元素距视图的距离,以像素计。该属性允许您改变 3D 元素查看 3D 元素的视图。

About

这是一个关于 transform & transition 的练习,里面包括了“正方体实现”,以及 “3D 翻转焦点图”和 “3D 旋转轮播图”。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published