欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面

這篇文章將為大家詳細(xì)講解有關(guān)使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面,文章內(nèi)容質(zhì)量較高,因此小編分享給大家做個(gè)參考,希望大家閱讀完這篇文章后對相關(guān)知識(shí)有一定的了解。

創(chuàng)新互聯(lián)自2013年起,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都網(wǎng)站建設(shè)、網(wǎng)站設(shè)計(jì)網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢想脫穎而出為使命,1280元奉節(jié)做網(wǎng)站,已為上家服務(wù),為奉節(jié)各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:13518219792

背景制作

background: radial-gradient(center, shape size, start-color, …, last-color);

shape 參數(shù)定義了形狀。它可以是值 circle 或 ellipse。其中,circle 表示圓形,ellipse 表示橢圓形。默認(rèn)值是 ellipse

<style>
  .king{
    position: relative;
    height: 25rem;
    width: 100%;
    background: 
      radial-gradient(circle, #ccc, #161d4f 85%);
  }
</style>
<div class="king"></div>

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面

CSS3線性、徑向漸變、旋轉(zhuǎn)、縮放、動(dòng)畫實(shí)現(xiàn)王者榮耀匹配人員加載動(dòng)畫

玩家加載

模塊整體垂直居中,線性漸變。

background: linear-gradient(direction/angle, color-stop1, color-stop2, &hellip;);

direction/angle控制漸變方向/角度。

<style>
...
.player-layout{
  position: relative;
  height: 8rem;
  width: 100%;
  background: 
    linear-gradient(to right, #212f46, #212f4670, #212f46);
  top: 50%;
  transform: translate(0,-50%);
  z-index: 10;
}
</style>
<div class="king">
  <div class="player-layout"></div>
</div>

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面

CSS3線性、徑向漸變、旋轉(zhuǎn)、縮放、動(dòng)畫實(shí)現(xiàn)王者榮耀匹配人員加載動(dòng)畫

添加峽谷圖片,背景線性漸變,旋轉(zhuǎn)。添加邊框,然后用 box-shadow 看起來發(fā)光效果。

<style>
...
.center{
  position: absolute;
  height: 8rem;
  width: 8rem;
  top: 50%;
  left: 50%;
  transform: 
    translate(-50%, -50%) rotate(45deg);
  background: 
    linear-gradient(90deg, #212f46, #5b99ff);
  border: .3rem solid #55a9ef;
  box-shadow: 0px 0px .8rem #88c0f0;
  padding: .2rem;
}
.center img{
  width: 100%;
  height: 100%;
}
</style>
<div class="king">
  <div class="player-layout">
    <div class="center"><img src="../images/123123.jpg"></div>
  </div>
</div>

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面

CSS3線性、徑向漸變、旋轉(zhuǎn)、縮放、動(dòng)畫實(shí)現(xiàn)王者榮耀匹配人員加載動(dòng)畫

下面把10個(gè)玩家,分2組,放到峽谷圖片兩側(cè)。

<style>
...
...
.group{
  position: relative;
  width: calc((100% - 13rem)/2);
  top: 50%;
  transform: translate(0, -50%);
}
.group1{
  text-align: right;
  float: left;
}
.group2{
  text-align: left;
  float: right;
}
.palyer{
  width: 4rem;
  height: 4rem;
  display: inline-block;
  background: url('../images/123123.jpg');
  background-size: cover;
  border: .3rem solid #55a9ef;
  box-shadow: 0px 0px .8rem #88c0f0;
}  
</style>
...
<div class="player-layout">
  <div class="group group1">
    <div class="player1 palyer"></div>
    <div class="player2 palyer"></div>
    <div class="player3 palyer"></div>
    <div class="player4 palyer"></div>
    <div class="player5 palyer"></div>
  </div>
  <div class="group group2">
    <div class="player6 palyer"></div>
    <div class="player7 palyer"></div>
    <div class="player8 palyer"></div>
    <div class="player9 palyer"></div>
    <div class="player10 palyer"></div>
  </div>
  <div class="center"><img src="../images/123123.jpg"></div>
</div>
...

這里每組的寬度,運(yùn)用了 calc() 來計(jì)算寬度,(100%-矩形對角線長度)/2。

中間是個(gè)邊長等于8rem的正方形,所以:對角線長度 = 8rem的平方 x 2 然后再開方。這里矩形對角線長度我們約等于13rem。

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面

我們來添加每位player邊框加載動(dòng)畫

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面

.player{
  position: relative;
  ...
  ...
  color: #fff;
}
.player::before,
.player::after {
  position: absolute;
  content: '';
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: -8%;
  box-shadow: inset 0 0 0 .3rem;
  animation: clipMe 6s linear infinite;
}
.player::before {
  animation-delay: -3s;
}
@keyframes clipMe {
  0%,
  100% {
    clip: rect(0, 4.8rem, 4.8rem, 4.3rem);
  }
  25% {
    clip: rect(0px, 4.8rem, .3rem, 0);
  }
  50% {
    clip: rect(0, .3rem, 4.8rem, 0);
  }
  75% {
    clip: rect(4.3rem, 4.8rem, 4.8rem, 0rem);
  }
}

主要用到 clip 屬性。

clip 屬性剪裁絕對定位元素。

當(dāng)一幅圖像的尺寸大于包含它的元素時(shí)會(huì)發(fā)生什么呢?“clip” 屬性允許您規(guī)定一個(gè)元素的可見尺寸,這樣此元素就會(huì)被修剪并顯示為這個(gè)形狀。

唯一合法的形狀值是:rect (top, right, bottom, left)

這個(gè)屬性很好玩兒,有興趣的可以好好研究一下。

最后我們給兩個(gè)分組上面加高光效果

.group::before, .group::after{
  position: absolute;
  content: '';
  background: linear-gradient(to right,#212f4602, #7499d7, #212f4602);
  height: .3rem;
  width: 10rem;
}
.group::before{
  top: -1.5rem;
}
.group::after{
  bottom: -1.5rem;
}
.group1::before{
  right: 0;
}
.group1::after{
  right: 5rem;
}
.group2::after{
  left: 5rem;
}

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面

ok,玩家這塊我們先修飾到這樣,有興趣的拉取源碼繼續(xù)碼。

背景鏤空旋轉(zhuǎn)正方形

<div class="king">
  <div class="player-layout">
    ...
  </div>
  <div class="matrix"></div>
</div>
<style>
.matrix{
  position: absolute;
  height: 17.6rem;
  width: 17.6rem;
  background: #008cf4;
  top: 50%;
  left: 50%;
  transform: 
    translate(-50%, -50%) rotate(45deg);
  z-index: 1;
}
</style>

這里的height為什么是17.6rem了?

這里也是計(jì)算通過勾股定理(a&sup2;+b&sup2;=c&sup2;)計(jì)算出來的啦。知道對角線就是容器的高度25rem,25x25/2再開方就得出了。

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面

上方設(shè)了個(gè)醒目的顏色,把容器放到哪里,然后我們來美化一下它

<style>
...
.border{
  position: absolute;
  height: 17.6rem;
  width: 17.6rem;
  text-align: center;
}
.border::before,.border::after{
  position: absolute;
  display: block;
  width: 100%;
  height: 2.5rem;
  color: #fff;
  background: 
    linear-gradient(to top,#212f4602, #7499d7);
}
.border1::before{
  content: '     web前端扣群 784783012     ';
}
.border1::after{
  bottom: 0;
  content: '     跟 我 一 起     ';
  transform: rotate(180deg);
}
.border2{
  transform: rotate(90deg);
}
.border2::before{
  content: '     學(xué) 習(xí) 前 端     ';
}
.border2::after{
  bottom: 0;
  content: '     讓 你 秀 起 來     ';
  transform: rotate(180deg);
}
</style>
...
<div class="matrix">
  <div class="border border1"></div>
  <div class="border border2"></div>
</div>

用兩個(gè)div元素來制作邊框,邊框添加線性漸變樣式

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面

下面繼續(xù)修飾一下鏤空正方形,這里寬高,之前是17.6,由于加了border和padding,所以去掉。

.matrix{
  position: absolute;
  /* 修改寬高 */
  height: 16.7rem;
  width: 16.7rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 1;
  /* 添加邊框,與間距 */
  border: .1rem solid #7499d7;
  padding: .4rem;
}
.border{
  position: absolute;
  /* 修改寬高 */
  height: 16.7rem;
  width: 16.7rem;
  text-align: center;
}

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面 

正方形文字放大動(dòng)畫

這里就做了文字陰影,縮放暫時(shí)沒有實(shí)現(xiàn),目前縮放會(huì)改變原有文字,所以必須重新copy一份文字,來做,有興趣的可以去試試。

.border::before,.border::after{
  ...
  animation: text-an 1.5s linear infinite;
}
@keyframes text-an {
  0%{
    text-shadow: 0 0 0 #ffffff;
  }
  100% {
    text-shadow: 0 -6rem .4rem #ffffff10;
  }
}

使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面 

文字按鈕制作

利用:before、:after偽類制作梯形。

<div class="king">
  ...
  <div class="button">確認(rèn)</div>
</div>
<style>
.button{
  position: relative;
  background: #3e3a31;
  width: 6.5rem;
  height: 2rem;
  line-height: 2rem;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  text-align: center;
  cursor: pointer;
}
.button::before,.button::after{
  position: absolute;
  content: '';
  display: inline-block;
  width: 0; 
  height: 0;
  border-width: 1.43rem;
  border-style: solid;
  border-color:
    #3e3a31 
    transparent 
    transparent  
    transparent;
}
.button::before{
  transform: rotate(-135deg);
  left: -1.40rem;
  top: -1.42rem;
}
.button::after{
  transform: rotate(135deg);
  right: -1.43rem;
  top: -1.43rem;
}
</style>

關(guān)于使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識(shí)。如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到。

標(biāo)題名稱:使用CSS3怎么實(shí)現(xiàn)一個(gè)王者榮耀匹配人員加載頁面
轉(zhuǎn)載注明:http://chinadenli.net/article12/pehjdc.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供虛擬主機(jī)商城網(wǎng)站、App開發(fā)品牌網(wǎng)站設(shè)計(jì)、品牌網(wǎng)站建設(shè)、

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)
天堂网中文字幕在线观看| 久久91精品国产亚洲| 美女黄片大全在线观看| 日韩欧美一区二区不卡视频| 国产又粗又长又大高潮视频| 日本和亚洲的香蕉视频| 欧美尤物在线视频91| 在线播放欧美精品一区| 成人午夜视频在线播放| 欧美日韩在线视频一区| 欧美午夜国产在线观看| 国产成人精品国内自产拍| 欧美大胆美女a级视频| 亚洲中文在线男人的天堂| 色婷婷视频国产一区视频| 日韩特级黄色大片在线观看| 亚洲一区二区精品福利| 国产色一区二区三区精品视频| 国产超薄黑色肉色丝袜| 人妻内射在线二区一区| 午夜直播免费福利平台| 日本二区三区在线播放| 日韩三极片在线免费播放| 亚洲国产成人久久99精品| 亚洲综合日韩精品欧美综合区 | 国产中文字幕一区二区| 亚洲品质一区二区三区| 97人妻精品免费一区二区| 暴力性生活在线免费视频| 黄色国产精品一区二区三区| 俄罗斯胖女人性生活视频| 欧美人妻一区二区三区| 免费在线播放一区二区| 亚洲欧美日韩中文字幕二欧美| 中文字幕精品少妇人妻| 亚洲中文字幕视频在线观看| 在线观看免费视频你懂的| 精品香蕉一区二区在线| 久久热麻豆国产精品视频| 久久国产精品亚州精品毛片| 免费精品国产日韩热久久|