<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
h1 {
font-size: 60px;
font-family: "RZGFDHDHJ";
font-weight: normal;
color: #9747ff;
}
@keyframes shark-txt {
form {
background-position: -100%;
}
to {
background-position: 200%;
}
}
.shark-txt {
-webkit-text-fill-color: transparent;
background: linear-gradient(
45deg,
rgba(255, 255, 255, 0) 45%,
rgba(255, 255, 255, 0.7),
rgba(255, 255, 255, 0) 55%
) -100% / 50% no-repeat currentColor;
background-clip: text;
animation: shark-txt 8s infinite;
}
@keyframes shark-wrap {
to {
transform: translateX(100%);
}
}
.shark-wrap {
position: relative;
overflow: hidden;
}
.shark-wrap::after {
content: "";
position: absolute;
inset: -20%;
background: linear-gradient(
45deg,
rgba(255, 255, 255, 0) 40%,
rgba(255, 255, 255, 0.7),
rgba(255, 255, 255, 0) 60%
);
animation: shark-wrap 2s infinite;
transform: translateX(-100%);
}
.card {
width: 300px;
border-radius: 8px;
background-color: #ffe8a3;
}
.card img {
display: block;
width: 100%;
}
</style>
</head>
<body>
<div style="margin: 100px; text-align: center">
<h1 class="shark-txt">前端偵探</h1>
</div>
<div style="margin: 100px; display: flex; justify-content: center">
<div class="shark-wrap card">
<img
src="https://imgservices-1252317822.image.myqcloud.com/coco/b11272023/ececa9a5.7y0amw.jpg"
/>
</div>
</div>
<div style="margin: 100px; display: flex; justify-content: center">
<div
class="shark-wrap card"
style="
mask: url(https://imgservices-1252317822.image.myqcloud.com/coco/s09252023/3af9e8de.00uqxe.png)
0 0/100%;
"
>
<img
src="https://imgservices-1252317822.image.myqcloud.com/coco/s09252023/3af9e8de.00uqxe.png"
/>
</div>
</div>
</body>
</html>
文字掃光、圖片掃光、邊緣透明圖片掃光
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。
相關閱讀更多精彩內容
- 最近部分頁面數(shù)據(jù)被爬蟲瘋狂的使用,主要就是采用動態(tài)代理IP爬取數(shù)據(jù),主要是不控制頻率,這個最惡心。因為對方是采用動...
- @[toc] 1. 簡單圖片廊 效果image.png 將瀏覽器拉窄image.png 繼續(xù)拉窄image.png...
- 1.毛玻璃效果:背景圖 + 偽類 + flite:blur(3px) 2.半透明效果:背景圖 + 定位 + bac...
- CSS 大約有兩百個屬性。很多屬性都是相互關聯(lián)的,理清楚每一個屬性細節(jié)是不可能的。所以,本文分享一些有用的 CSS...