css实现三维3d折叠阴影字体效果代码

代码语言:html

所属分类:悬停

代码描述:css实现三维3d折叠阴影字体效果代码

代码标签: 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: absolu.........完整代码请登录后点击上方下载按钮下载查看

网友评论0