<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=
, initial-scale=1.0">
<title>Image Inside Text Effect</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');
body{
margin: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
overflow: hidden;
/* background: url('./jerry.png') ; */
}
.text-container{
display: flex;
}
.letter{
font-family: 'Montserrat', sans-serif;
font-size: 9rem;
font-weight: bolder;
color: transparent;
background: url('./jerry.png') no-repeat center center;
background-size: cover;
--webkit-background-clip:text;
background-clip: text;
line-height: 1; }
</style>
</head>
<body>
<div class="text-container">
<span class="letter">P</span><span class="letter">R</span>
<span class="letter">I</span>
<span class="letter">N</span><span class="letter">C</span><span class="letter">E</span>
</div>
</body>
</html>
以上就是图像中的文字动画效果代码的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号