代码示例:(标识:cssref_func_cubic-bezier)
<!DOCTYPE html>
<html>
<head>
<style> 
div {
  width: 100px;
  height: 100px;
  background: red;
  transition: width 2s;
  transition-timing-function: cubic-bezier(0.1, 0.7, 1.0, 0.1);
}

div:hover {
  width:300px;
}
</style>
</head>
<body>

<h1>cubic-bezier() 函数</h1>

<p>将鼠标悬停在下面的 div 元素上,来查看过渡效果。</p>

<div></div>

<p><b>注释:</b>本例在 Internet Explorer 9 以及更早的版本中无效。</p>

</body>
</html>
运行结果: