使用CSS3怎么制作一個抖音LOGO-創(chuàng)新互聯(lián)

今天就跟大家聊聊有關(guān)使用CSS3怎么制作一個抖音LOGO,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結(jié)了以下內(nèi)容,希望大家根據(jù)這篇文章可以有所收獲。

從策劃到設(shè)計制作,每一步都追求做到細(xì)膩,制作可持續(xù)發(fā)展的企業(yè)網(wǎng)站。為客戶提供成都網(wǎng)站設(shè)計、成都網(wǎng)站制作、外貿(mào)網(wǎng)站建設(shè)、網(wǎng)站策劃、網(wǎng)頁設(shè)計、主機(jī)域名、網(wǎng)頁空間、網(wǎng)絡(luò)營銷、VI設(shè)計、 網(wǎng)站改版、漏洞修補等服務(wù)。為客戶提供更好的一站式互聯(lián)網(wǎng)解決方案,以客戶的口碑塑造優(yōu)易品牌,攜手廣大客戶,共同發(fā)展進(jìn)步。

完成單個“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

使用CSS3怎么制作一個抖音LOGO

有句話叫做“方法不對,努力白費”所有的前端大神都有自己的學(xué)習(xí)方法,而學(xué)web前端的學(xué)習(xí)也基本一致,而對于一個什么都不懂的初學(xué)者,根本不會知道該怎么學(xué),這也是造成失敗的最直接原因。所以學(xué)web前端一定要有人指點。如果你處在迷茫期,找不到方向??梢约尤胛覀兊那岸藢W(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;
}

使用CSS3怎么制作一個抖音LOGO

主角登場 - mix-blend-mode

CSS3 新增了一個很有意思的屬性 &ndash;mix-blend-mode ,其中 mix 和 blend 的中文意譯均為混合,那么這個屬性的作用直譯過來就是混合混合模式,當(dāng)然,我們我們通常稱之為混合模式。

混合模式最常見于 photoshop 中,是 PS 中十分強(qiáng)大的功能之一。下面來看看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;     // 強(qiáng)光
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;
}

看看效果:

使用CSS3怎么制作一個抖音LOGO

是不是很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è)資訊頻道,感謝大家的支持。

文章標(biāo)題:使用CSS3怎么制作一個抖音LOGO-創(chuàng)新互聯(lián)
標(biāo)題URL:http://bm7419.com/article16/ihpdg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站排名、品牌網(wǎng)站建設(shè)、網(wǎng)站導(dǎo)航、全網(wǎng)營銷推廣、做網(wǎng)站、響應(yīng)式網(wǎng)站

廣告

聲明:本網(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)

小程序開發(fā)