日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 前端技术 > HTML >内容正文

HTML

HTML+CSS+JS实现 ❤️透明的水滴文字背景特效❤️

發布時間:2025/3/12 HTML 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 HTML+CSS+JS实现 ❤️透明的水滴文字背景特效❤️ 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?效果演示:??

代碼目錄:

?

主要代碼實現:

部分CSS樣式:

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@900&display=swap'); body {height: 100vh;margin: 0;display: grid;place-items: center;background: linear-gradient(to right, #12c2e9, #c471ed, #f64f59);background: #318CFE;font-family: 'Montserrat', sans-serif; }.c {position: relative; }.text-c {display: grid;place-items: center;position: relative; }h1 {position: relative;font-size: 72px;color: white;line-height: 0; }.drop {position: absolute;height: 200px;width: 200px;background: #54ABFB;border-radius: 51% 49% 48% 52% / 62% 44% 56% 38%;opacity: 0.8;border: 2px solid #3d93ff; }.drop::before {content: "";position: absolute;height: 100%;width: 100%;background: #318CFE;border-radius: 51% 49% 48% 52% / 62% 44% 56% 38%;box-shadow: -20px 30px 16px #1B6CFB, -40px 60px 32px #1b6cfb, inset -6px 6px 10px #1B6CFB, inset 2px 6px 10px #1a74e5, inset 20px -20px 22px white, inset 40px -40px 44px #a8ceff; }.drop::after {content: "";position: absolute;height: 40px;width: 40px;background: #E6FDFB;border-radius: 44% 56% 46% 54% / 36% 50% 50% 64%;left: 130px;top: 40px;box-shadow: 16px 40px 0 -10px white;opacity: 0.8; }

HTML代碼 :

<!DOCTYPE html> <html lang="en"><head><meta charset="UTF-8"><title>水滴UI設計</title><link rel="stylesheet" href="css/style.css"></head><body><div class="c"><div class="drop drop1"></div><div class="drop drop2"></div><div class="text-c"><h1>DROPMORPHISM</h1><p>Both the drops are created using CSS</p></div></div></body></html>

源碼獲取

查看博主主頁或私信博主獲取

精彩推薦更新中:

HTML5大作業實戰100套

??打卡 文章 更新?40??/? 100天

大家可以點贊、收藏、關注、評論我啦 、需要完整文件隨時聯系我或交流喲~!

總結

以上是生活随笔為你收集整理的HTML+CSS+JS实现 ❤️透明的水滴文字背景特效❤️的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。