今天就跟大家聊聊有關(guān)使用CSS3怎么制作一個抖音LOGO,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結(jié)了以下內(nèi)容,希望大家根據(jù)這篇文章可以有所收獲。
在大連等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強發(fā)展的系統(tǒng)性、市場前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供網(wǎng)站設(shè)計、成都網(wǎng)站設(shè)計 網(wǎng)站設(shè)計制作按需開發(fā)網(wǎng)站,公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),成都品牌網(wǎng)站建設(shè),成都營銷網(wǎng)站建設(shè),外貿(mào)網(wǎng)站制作,大連網(wǎng)站建設(shè)費用合理。
完成單個“J”
<div class="jitter"> <div class="logo"></div> </div>
添加樣式
.jitter {
position: relative;
width: 200px;
margin: 100px auto;
}
// 第一部分
.logo {
position: absolute;
top: 0;
left: 0;
width: 47px;
height: 218px;
z-index: 1;
background: #24f6f0;
}
// 第二部分
.logo::after {
content: "";
position: absolute;
width: 140px;
height: 140px;
border: 40px solid #24f6f0;
border-right: 40px solid transparent;
border-top: 40px solid transparent;
border-left: 40px solid transparent;
top: -110px;
right: -183px;
border-radius: 100%;
transform: rotate(45deg);
z-index: -10;
}
// 第三部分
.logo::before {
content: "";
position: absolute;
width: 100px;
height: 100px;
border: 47px solid #24f6f0;
border-top: 47px solid transparent;
border-radius: 50%;
top: 121px;
left: -147px;
transform: rotate(45deg);
}第一部分,就是個矩形
第二部分,是圓環(huán)的1/4
第三部分,是圓環(huán)的3/4

有句話叫做“方法不對,努力白費”所有的前端大神都有自己的學(xué)習(xí)方法,而學(xué)web前端的學(xué)習(xí)也基本一致,而對于一個什么都不懂的初學(xué)者,根本不會知道該怎么學(xué),這也是造成失敗的最直接原因。所以學(xué)web前端一定要有人指點。如果你處在迷茫期,找不到方向。可以加入我們的前端學(xué)習(xí)交流qun: 784783012 。有任何不明白的東西隨時來問我。點擊:前端學(xué)習(xí)圈
添加另外一個“J”
<div class="jitter"> <div class="logo"></div> <div class="logo"></div> </div>
樣式只需要添加
...
// 省略上面的樣式
...
// 和第一個J錯開10px
.logo:last-child {
left: 10px;
top: 10px;
background: #fe2d52;
z-index: 100;
}
// 填充紅色
.logo:last-child::before {
border: 47px solid #fe2d52;
border-top: 47px solid transparent;
}
.logo:last-child::after {
border: 40px solid #fe2d52;
border-right: 40px solid transparent;
border-top: 40px solid transparent;
border-left: 40px solid transparent;
}
主角登場 - mix-blend-mode
CSS3 新增了一個很有意思的屬性 – mix-blend-mode ,其中 mix 和 blend 的中文意譯均為混合,那么這個屬性的作用直譯過來就是混合混合模式,當(dāng)然,我們我們通常稱之為混合模式。
混合模式最常見于 photoshop 中,是 PS 中十分強大的功能之一。下面來看看 mix-blend-mode 有哪些屬性可以設(shè)置:
mix-blend-mode: normal; // 正常 mix-blend-mode: multiply; // 正片疊底 mix-blend-mode: screen; // 濾色 mix-blend-mode: overlay; // 疊加 mix-blend-mode: darken; // 變暗 mix-blend-mode: lighten; // 變亮 mix-blend-mode: color-dodge; // 顏色減淡 mix-blend-mode: color-burn; // 顏色加深 mix-blend-mode: hard-light; // 強光 mix-blend-mode: soft-light; // 柔光 mix-blend-mode: difference; // 差值 mix-blend-mode: exclusion; // 排除 mix-blend-mode: hue; // 色相 mix-blend-mode: saturation; // 飽和度 mix-blend-mode: color; // 顏色 mix-blend-mode: luminosity; // 亮度 mix-blend-mode: initial; mix-blend-mode: inherit; mix-blend-mode: unset;
然后我們添加 mix-blend-mode:lighten
.logo:last-child {
...
mix-blend-mode: lighten;
}看看效果:

是不是很Ok了?
然后我們添加動畫,讓第二個J緩慢和一個J融合。
動畫融合
.logo:last-child {
...
animation: move 10s infinite;
}
@keyframes move {
0% {
transform: translate(200px);
}
50% {
transform: translate(0px);
}
100% {
transform: translate(0px);
}
}看完上述內(nèi)容,你們對使用CSS3怎么制作一個抖音LOGO有進(jìn)一步的了解嗎?如果還想了解更多知識或者相關(guān)內(nèi)容,請關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道,感謝大家的支持。
當(dāng)前名稱:使用CSS3怎么制作一個抖音LOGO
本文來源:http://chinadenli.net/article16/jpspgg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站設(shè)計、網(wǎng)頁設(shè)計公司、域名注冊、移動網(wǎng)站建設(shè)、網(wǎng)站營銷、品牌網(wǎng)站設(shè)計
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)