css实现三维3d折叠阴影字体效果代码
代码语言:html
所属分类:悬停
代码描述:css实现三维3d折叠阴影字体效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style> html,body { margin: 0; padding: 0; height: 100%; } body { display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-align-items: center; -ms-flex-align: center; align-items: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; background-color: #684da3; } p { color: #fff; font-size: 1em; font-weight: bold; } 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: sc.........完整代码请登录后点击上方下载按钮下载查看
网友评论0