Fortnite Button CSS

These buttons usually have the following characteristics:

  • vibrant color: Use bright colors such as neon blue, green and purple.
  • 3D and shadow effects: Add depth by shading or gradients.
  • Hover animation: A change in size, color or shadow occurs on mouse hover.
  • high contrast: Clear borders and a contrasting color scheme that is easy to read.

If you want to integrate these styles in Elementor, you can follow these steps:

图片[1]-Fortnite 按钮 CSS-光子波动网 | 专业WordPress修复服务,全球范围,快速响应

Adding HTML and CSS to Elementor

  • Add HTML code::
    • On the page, add the "HTML" widget.
    • Paste the provided HTML code into the HTML widget, which will create your Fortnite button.
图片[2]-Fortnite 按钮 CSS-光子波动网 | 专业WordPress修复服务,全球范围,快速响应
图片[3]-Fortnite 按钮 CSS-光子波动网 | 专业WordPress修复服务,全球范围,快速响应
<div class="row">
  <button class="tab">PLAY<span></span></button>
  <button>LOCKER<span></span></button>
  <button>BATTLE PASS<span></span></button>
  <button>SHOP<span></span></button>
  <button>QUESTS<span></span></button>
  <button>V-BUCKS<span></span></button>
</div>

<div class="play-cont">
  <h1>LEGO FORTNITE</h1>
  <button class="mode play">SELECT WORLD<span></span></button>
  <button class="play">PLAY<span></span></button>
</div>

  • Adding CSS Styles::
    • If you are using the Elementor ProYou can add the CSS code in the Advanced tab of the page. Steps:
      • Select a widget or container on the page.
      • strike (on the keyboard) Advanced > Custom CSSThe
      • Paste the CSS code here and it will be immediately applied to the button styles on the page.
图片[4]-Fortnite 按钮 CSS-光子波动网 | 专业WordPress修复服务,全球范围,快速响应
@import url('https://fonts.googleapis.com/css?family=Open%20Sans:800');

:root {
  --font: 2rem;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
  height: 100vh;
  box-sizing: border-box;
  padding: 5rem;
  background: url('https://www.lego.com/cdn/cs/aboutus/assets/blta2f7045752055c85/JunoEpicNewsroom_Inline_1920x1080_png.png') no-repeat center center fixed;
  background-color: rgba(0,0,0,0.3);
  background-blend-mode: color;
  font-family: 'Open Sans';
  margin: 0;
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: none;
  font-family: 'Open Sans';
  font-size: var(--font);
  border-radius: calc(var(--font) * 0.6);
  padding: calc(var(--font) * 0.5);
  margin: 0;
  line-height: 1;
  position: relative;
  
  background-color: transparent;
  color: white;
  box-shadow: inset 0 0 0 0 rgb(248, 249, 255, 0.5), inset 0 0 0 0 rgb(248, 249, 255, 0.3), 0 0 0 rgb(248, 249, 255, 0.2);
  transition: all ease 0.2s;
}

button:hover {
  box-shadow: inset 0 0 0 calc(var(--font) * 0.2) rgb(248, 249, 255, 0.5), inset 0 0 calc(var(--font) * 0.2) calc(var(--font) * 0.5) rgb(248, 249, 255, 0.3), 0 0 calc(var(--font) * 0.2) rgb(248, 249, 255, 0.2);
}


button::before {
  content: '';
  height: 110%;
  width: 105%;
  position: absolute;
  border-radius: calc(var(--font) * 0.8);
  background-color: transparent;
}

@keyframes borders {
  0%, 100% {border-width: calc(var(--font) * 0.2) calc(var(--font) * 0.1) calc(var(--font) * 0.02) calc(var(--font) * 0.02);}
  25% { border-width: calc(var(--font) * 0.1) calc(var(--font) * 0.02) calc(var(--font) * 0.02) calc(var(--font) * 0.2);}
  50% { border-width: calc(var(--font) * 0.02) calc(var(--font) * 0.02) calc(var(--font) * 0.2) calc(var(--font) * 0.1);}
  75% { border-width: calc(var(--font) * 0.02) calc(var(--font) * 0.2) calc(var(--font) * 0.1) calc(var(--font) * 0.02);}
}


button:hover::before {
  border: solid rgb(210, 255, 227, 0.8);
  padding: calc(var(--font) * 0.08);
  box-shadow: inset 0 0 calc(var(--font) * 0.2) calc(var(--font) * 0.2) rgb(186, 201, 255, 0.3);
  filter: blur(calc(var(--font) * 0.06));
  animation: borders infinite 2s linear;
  opacity: 0.5;
}

span {
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  display: flex;
  border-radius: calc(var(--font) * 0.6);
  z-index: -1;
}

span::after {
  content: '';
  height: 100%;
  width: 100%;
  position: absolute;
  background: linear-gradient(90deg, rgb(248, 249, 255, 0), rgb(206, 216, 255, 0.6), rgb(248, 249, 255, 0));
  opacity: 0;
  transform: translateX(-100%);
  
}

button:hover > span::after {
  opacity: 1;
  transform: translateX(100%);
  transition: all ease 1s;
}

.tab {
  background-color: white;
  color: black;
}




/* extra unique buttons */
.play-cont {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: fit-content;
  border-radius: 1rem;
  padding: 1rem;
  background-color: rgba(0,0,0, 0.2);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
}


.play {
  --font: 3rem;
  color: black;
  border-radius: 4rem;
  height: 12rem;
  width: 25rem;
  box-shadow: inset 0 0 0 0 rgb(248, 249, 255, 0.5);
  border: 1rem solid transparent;
  position: relative;
  
}

.play:hover::before {
  opacity: 0.2;
  border-radius: 4rem;
}

.play > span {
  background-color: rgb(247, 255, 25);
  height: 8rem;
  width: 21rem;
  border-radius: 2rem;
}

.play > span::after {
  display: none;
}

.play:hover {
  box-shadow: inset 0 0 0 calc(var(--font) * 0.15) rgb(248, 249, 255, 0.6);
}

.mode > span {
  background-color: rgb(200, 204, 205);
  height: 6rem;
}

.mode {
  font-size: 1.5rem;
  width: 25rem;
  height: 10rem;
  top: 2rem;
}

h1 {
  color: white;
  margin: 0;
  position: relative;
  top: 1rem;
  font-style: italic;
}

@media screen and (max-width: 800px) {
  :root {
    --font: 1.2rem;
  }
  body {
    padding: 1rem;
  }
  .play {
    --font: 2rem;
    width: 20rem;
  }
  .mode {
    width: 20rem;
  }
  .play > span {
    width:16rem; 
  }
}

Contact Us
Can't read the article? Contact us for free answers! Free help for personal, small business sites!
Tel: 020-2206-9892
QQ咨询:1025174874
(iii) E-mail: info@361sale.com
Working hours: Monday to Friday, 9:30-18:30, holidays off
© Reprint statement
Author: feng1
THE END
If you like it, support it.
kudos8 share (joys, benefits, privileges etc) with others
commentaries sofa-buying

Please log in to post a comment

    No comments