css布局实现三维剪纸折叠悬浮动画效果代码
代码语言:html
所属分类:布局界面
代码描述:css布局实现三维剪纸折叠悬浮动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> p { color: #fff; font-size: 1em; font-weight: bold; font-family: "微软雅黑"; } p span { display: inline-block; position: relative; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; -webkit-perspective: 500; perspective: 500; -webkit-font-smoothing: antialiased; } p span::before, p span::after { display: none; position: absolute; top: 0; left: -1px; -webkit-transform-origin: left top; -ms-transform-origin: left top; transform-origin: left top; -webkit-transition: all ease-out 0.3s; transition: all ease-out 0.3s; content: attr(data-text); } p span::before { z-index: 1; color: rgba(0,0,0,0.2); -webkit-transform: scale(1.1, 1) skew(0deg, 20deg); -ms-transform: scale(1.1, 1) skew(0deg, 20deg); transform: scale(1.1, 1) skew(0deg, 20deg); } p span::after { z-index: 2; color: #684da3; text-shadow: -1px 0 1px #684da3, 1px 0 1px rgba(0,0,0,0.8); -webkit-transform: rotateY(-40deg); transform: rotateY(-40deg); } p span:hover::before { -webkit-transform: scale(1.1, 1) skew(0deg, 5deg); -ms-transform: scale(1.1, 1) skew(0deg, 5deg); transform.........完整代码请登录后点击上方下载按钮下载查看
网友评论0