好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > CSS3 制作的彩虹按鈕樣式

CSS3 制作的彩虹按鈕樣式

熱門標簽:漯河外呼調研線路 400電話唐山辦理 旅游地圖標注線路 地圖標注位置怎么弄圖 電話機器人鑰匙扣 電銷專用外呼線路 廣西房產智能外呼系統推薦 電銷外呼系統是違法的嗎 威力最大的電銷機器人

實現效果:

實現代碼:

html

<div class="buttons">
  <h1>Simple hover effects with <code>box-shadow</code></h1>
  <button class="fill">Fill In</button>
  <button class="pulse">Pulse</button>
  <button class="close">Close</button>
  <button class="raise">Raise</button>
  <button class="up">Fill Up</button>
  <button class="slide">Slide</button>
  <button class="offset">Offset</button>
</div>

CSS

/*
  https://developer.mozilla.org/en/docs/Web/CSS/box-shadow
  box-shadow: [inset?] [top] [left] [blur] [size] [color];

  Tips:
    - We're setting all the blurs to 0 since we want a solid fill.
    - Add the inset keyword so the box-shadow is on the inside of the element
    - Animating the inset shadow on hover looks like the element is filling in from whatever side you specify ([top] and [left] accept negative values to become [bottom] and [right])
    - Multiple shadows can be stacked
    - If you're animating multiple shadows, be sure to keep the same number of shadows so the animation is smooth. Otherwise, you'll get something choppy.
*/
.fill:hover,
.fill:focus {
  box-shadow: inset 0 0 0 2em var(--hover);
}

.pulse:hover,
.pulse:focus {
  -webkit-animation: pulse 1s;
          animation: pulse 1s;
  box-shadow: 0 0 0 2em rgba(255, 255, 255, 0);
}

@-webkit-keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--hover);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--hover);
  }
}
.close:hover,
.close:focus {
  box-shadow: inset -3.5em 0 0 0 var(--hover), inset 3.5em 0 0 0 var(--hover);
}

.raise:hover,
.raise:focus {
  box-shadow: 0 0.5em 0.5em -0.4em var(--hover);
  transform: translateY(-0.25em);
}

.up:hover,
.up:focus {
  box-shadow: inset 0 -3.25em 0 0 var(--hover);
}

.slide:hover,
.slide:focus {
  box-shadow: inset 6.5em 0 0 0 var(--hover);
}

.offset {
  box-shadow: 0.3em 0.3em 0 0 var(--color), inset 0.3em 0.3em 0 0 var(--color);
}
.offset:hover, .offset:focus {
  box-shadow: 0 0 0 0 var(--hover), inset 6em 3.5em 0 0 var(--hover);
}

.fill {
  --color: #a972cb;
  --hover: #cb72aa;
}

.pulse {
  --color: #ef6eae;
  --hover: #ef8f6e;
}

.close {
  --color: #ff7f82;
  --hover: #ffdc7f;
}

.raise {
  --color: #ffa260;
  --hover: #e5ff60;
}

.up {
  --color: #e4cb58;
  --hover: #94e458;
}

.slide {
  --color: #8fc866;
  --hover: #66c887;
}

.offset {
  --color: #19bc8b;
  --hover: #1973bc;
}

button {
  color: var(--color);
  transition: 0.25s;
}
button:hover, button:focus {
  border-color: var(--hover);
  color: #fff;
}

body {
  color: #fff;
  background: #17181c;
  font: 300 1em "Fira Sans", sans-serif;
  justify-content: center;
  align-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  display: flex;
}

button {
  background: none;
  border: 2px solid;
  font: inherit;
  line-height: 1;
  margin: 0.5em;
  padding: 1em 2em;
}

h1 {
  font-weight: 400;
}

code {
  color: #e4cb58;
  font: inherit;
}

以上就是CSS3 制作的彩虹按鈕樣式的詳細內容,更多關于CSS3 按鈕樣式的資料請關注腳本之家其它相關文章!

標簽:欽州 焦作 湘西 湖北 綏化 無錫 銅陵 試駕邀約

巨人網絡通訊聲明:本文標題《CSS3 制作的彩虹按鈕樣式》,本文關鍵詞  CSS3,制作,的,彩虹,按鈕,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《CSS3 制作的彩虹按鈕樣式》相關的同類信息!
  • 本頁收集關于CSS3 制作的彩虹按鈕樣式的相關信息資訊供網民參考!
  • 推薦文章
    主站蜘蛛池模板: 《美味人妻》HD| 雏鸟.me| 无码人妻一区二区三区在线视频 | 女寝的婬乱生活H| 太粗太深了太硬受不了了视频| 欧美一级婬片AAAA毛片不忠| 在线|国产传媒18精品免费1区2特色| 日韩欧美一线二线三线AV| 新版成熟的女人毛茸茸| 91午夜精品亚洲一区二区三区| 性猛交xxxxx按摩| 插插插插插插插| 少妇小艾的哀羞1一40| 丰满人妻一?A片免费| 91popr国产在线观看| 99热成人精品国产免国语的| 高潮?国产?白浆?喷水| 熟女?人妻のAV中文字慕| 动漫高h视频| 天堂在线网www在线网| 奶头又大又?又白喷奶水古代女 | 51漫画APP下载安装!动漫| 免费bd**gay视频可观看| 色综合久久综合久色AⅤ网黑人| 国产真实乱系列2孕妇| 99黄色网| 九九热国产视频| 中文字幕精品无码亚洲| 日本爽快片18禁片免费久久 | 香蕉app下载安装无限看-丝瓜ios山东座| 91女人18毛片水多国产| 8050午夜一级| 强制憋尿失禁羞辱| 福利姬有哪些| 皇上堵着要生产的肚子| 小奶娃的婬乱生活H| 操视频网站| 麻豆tv下载| 亚洲黄色小视频| 国产精品久久久香蕉| 久久午夜国产精品www|