关于css过渡和3D效果的简单实现

不言
不言原创
2018-06-20 16:15:411259浏览

下面为大家带来一篇css过渡+3D效果的简单实现。内容挺不错的,现在就分享给大家,也给大家做个参考。

css过渡+3D效果的简单实现

<!DOCTYPE html>
<html>
<head>
<title>guodu</title>
<meta charset="utf-8">
<style type="text/css">
#wp{   
border: 1px solid red;   
width: 500px;   
height: 500px;   
background-color: pink;   
color: lime;   
transition-property: background color;   
transition-duration: 5s;   
transition-timing-function: cubic-bezier(0 0 0.2 0.2);   
transition-delay: 1s;   
transform: perspective(600px);   
}   
#wp:hover{   
background: red;   
color: white;   
width: 800px;   
transform-origin: (150px 100px 120px);   
transform: skewY(80deg) rotate(45deg) translate(50%) ;   
}   
</style>
</head>
<body>
<p id="wp"><h1>南海是中国的,菲律宾也是中国的</h1></p>
</body>
</html>

以上就是本文的全部内容,希望对大家的学习有所帮助,更多相关内容请关注PHP中文网!

相关推荐:

关于css中清除浮动塌陷的方法

如何基于CSS3和jQuery实现APPLE TV海报视差的效果

以上就是关于css过渡和3D效果的简单实现的详细内容,更多请关注php中文网其它相关文章!

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。