css变量实现霓虹灯按钮效果生成器代码

代码语言:html

所属分类:布局界面

代码描述:css变量实现霓虹灯按钮效果生成器代码,通过拖拽按钮,来生成霓虹灯按钮的css代码及动画效果

代码标签: 霓虹灯 按钮 效果 成器

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
<style>
:root {
  --raven: #2c343b;
  --lilia: #f1f3f4;
  --base-font-size: 18px;
  --base-font-weight: 300;
  
  /* Theme */
  --hue: 180;
  --saturation: 50%;
  --light: 50%;
  --theme-hsl: var(--hue), var(--saturation), var(--light);
  
  /* uncomment if you want a gradient 
    
  --gradient-light: 50%;
  */
}

html {
  background: var(--raven);
  color: var(--lilia);
  padding: 1em;
  font-family: arial;
}

.neons {
  padding: 1em;
  min-height: 180px;
}

/* Panel */
.panel {
  display: flex;
  justify-content: space-between;
}

/* Controls */
.controls,
.result {
  background: var(--lilia);
  color: var(--raven);
  padding: 1em;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  border-radius: 4px;
}

.controls label {
  display: block;
}

/* Result ( code ) */

.result {
  padding: 1em;
  color: white;
  text-shadow: 0 2px 10px hsl(var(--theme-hsl));
  overflow: hidden;
  margin-left: 16px
}
.result pre {
  padding: 0 1em;
  margin: 0;
  background: var(--raven);
  overflow: auto;
}
.result code {
  padding: 1em;
  margin: 0;
}

input {
  /* Canary: 
   * Enable the "Experimental Web Platform Features" flag in about:flags
   */
  accent-color: hsl(var(--theme-hsl))
}

.neons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.neons button {
  -webkit-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0