前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >2.5D立体文字

2.5D立体文字

作者头像
海曈
发布2022-11-14 16:24:32
4220
发布2022-11-14 16:24:32
举报
文章被收录于专栏:HTML+CSS前端HTML+CSS前端

一、2.5D立体文字

1、2.5D立体文字照片如下
在这里插入图片描述
在这里插入图片描述
2、hello大家好,我来分享一个2.5D的立体文字特效。演示效果链接演示效果。如果想自己制作的话,代码块在下面,请大家自行观看!!!
代码语言:javascript
复制
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>海拥 | 2.5D立体文字</title>
    <link rel="shortcut icon" type="images/x-icon" href="http://haiyong.site/wp-content/uploads/2021/07/cropped-59255587-1-192x192.jpg
    ">
    <style>
        *{
            margin: 0;
            padding: 0;
        }
body{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
}
.text{
    font-size: 100px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 10px;
    transform: rotate(-25deg) skew(30deg);
    text-shadow: -1px 1px 0 #ddd,
    -2px 2px 0 #ddd,
    -3px 3px 0 #ddd,
    -4px 4px 0 #ddd,
    -5px 5px 0 #ddd,
    -6px 6px 0 #ddd,
    -7px 7px 0 #ddd,
    -8px 8px 0 #ddd,
    -9px 9px 0 #ddd,
    -10px 10px 0 #ddd,
    -11px 11px 0 #ddd,
    -12px 12px 0 #ddd,
    -13px 13px 0 #ddd,
    -14px 14px 0 #ddd,
    -15px 15px 0 #ddd,
    -16px 16px 0 #ddd,
    -17px 17px 0 #ddd,
    -18px 18px 0 #ddd,
    -19px 19px 0 #ddd,
    -20px 20px 0 #ddd;
}
.text p{
    outline: none;
}
    </style>
</head>
<body>
    <div class="text">
        <p contenteditable="true">海拥 | 海瞳</p>
    </div>
</body>
</html>
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2022-03-28,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 一、2.5D立体文字
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档