第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

旋轉(zhuǎn)動(dòng)畫僅渲染元素的一半

旋轉(zhuǎn)動(dòng)畫僅渲染元素的一半

www說 2023-09-11 15:35:52
我正在嘗試為旋轉(zhuǎn)的金色光線設(shè)置動(dòng)畫,下圖是使用 html 和 css 實(shí)現(xiàn)的布局,但是當(dāng)我嘗試添加旋轉(zhuǎn)動(dòng)畫時(shí),布局似乎被削減了一半。下面的代碼片段是我的嘗試。非常感謝任何幫助、想法。@import('https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css');body {    background: #ededed;    padding: 64px 0;    font-family: Roboto, sans-serif;    font-size: 12px}.banner {    max-width: 100%;    max-height: 100%;    -webkit-box-shadow: 0 10px 40px -6px rgba(0, 0, 0, .1);    -moz-box-shadow: 0 10px 40px -6px rgba(0, 0, 0, .1);    -o-box-shadow: 0 10px 40px -6px rgba(0, 0, 0, .1);    box-shadow: 0 10px 40px -6px rgba(0, 0, 0, .1)}.winners-intro {    background: #ededed;    z-index: 999}.winners-intro,.winners-intro .winners-light {    display: flex;    align-items: center;    justify-content: center;    width: 100%;    height: 100vh;    position: fixed;    top: 0;    left: 0}.winners-intro .winners-light {    -webkit-animation-name: winners_light;    -webkit-animation-duration: 10s;    -webkit-animation-iteration-count: infinite;    animation-name: winners_light;    animation-duration: 10s;    animation-iteration-count: infinite}.winners-intro .winners-light .radial-light {    width: 100px;    height: 100px;    background: gold;    box-shadow: 1px 1px 100px 50px gold;    -webkit-box-shadow: 1px 1px 100px 50px gold;    -moz-box-shadow: 1px 1px 100px 50px gold;    -o-box-shadow: 1px 1px 100px 50px gold;    -webkit-border-radius: 50%;    -moz-border-radius: 50%;    border-radius: 50%;    position: absolute}.winners-intro .winners-light .light {    position: absolute;    background: gold;    height: 200vh;    width: 20px;    opacity: .5;    background: transparent;    background: -webkit-linear-gradient(bottom, transparent 27%, gold 50%, transparent 73%, transparent 90%, transparent);    background: linear-gradient(0deg, transparent 27%, gold 50%, transparent 73%, transparent 90%, transparent)}
查看完整描述

1 回答

?
MYYA

TA貢獻(xiàn)1868條經(jīng)驗(yàn) 獲得超4個(gè)贊

我會(huì)像下面這樣簡(jiǎn)化代碼,這樣您就不會(huì)遇到問題:


body {

  background: #ededed;

  margin:0;

  overflow:hidden;

  display:flex;

  align-items:center;

  justify-content:center;

  height:100vh;

}


.light {

  height: 100vmax;

  width:100vmax;

  background: 

      radial-gradient(circle ,rgba(255, 215, 0, 1 ) 8vmax,transparent 8vmax),

      radial-gradient(circle ,rgba(255, 215, 0, 0.6)8vmax,transparent 17vmax),

      

      linear-gradient(to bottom, transparent 10%,gold,transparent 90%) center/10px 100%,

      linear-gradient(to right , transparent 10%,gold,transparent 90%) center/100% 10px;

   background-repeat:no-repeat;

   position:relative;

   overflow:hidden;

   animation:move 5s linear infinite;

}

.light:before,

.light:after{

   content:"";

   position:absolute;

   top:0;

   left:0;

   right:0;

   bottom:0;

   background:inherit;

   background-size:0 0,0 0,10px 100%,100% 10px;

   transform:rotate(30deg);

}


.light:after{

   transform:rotate(-30deg);

}


@keyframes move {

  to {

    transform:rotate(1turn);

  }

}

<div class="light"></div>


查看完整回答
反對(duì) 回復(fù) 2023-09-11
  • 1 回答
  • 0 關(guān)注
  • 109 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)