Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">
  <div class="aks-input-row">
    <input class="aks-input" type="text" id="name" name="name" placeholder="Name...">
  </div>
  <div class="aks-input-row">
    <div class="aks-date-row">
      <input class="aks-input" type="date" id="date" name="date" placeholder="Name...">
      <div class="aks-date-calender">
        <svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none" shape-rendering="geometricPrecision">
          <rect x="3" y="4" width="18" height="18" rx="2" ry="2" />
          <path d="M16 2v4" />
          <path d="M8 2v4" />
          <path d="M3 10h18" /></svg>
      </div>
    </div>
  </div>
  <div class="aks-input-row">
    <div class="aks-input-icon-wrap">
      <div class="aks-input-icon">
        <svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none" shape-rendering="geometricPrecision">
          <path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
          <path d="M22 6l-10 7L2 6"></path>
        </svg>
      </div>
      <input class="aks-input" type="text" id="name" name="name" placeholder="Name...">
    </div>
  </div>
  <div class="aks-input-row">
    <div class="aks-input-wrap">
      <label class="aks-input-label" for="surname">Surname</label>
      <input class="aks-input" type="text" id="surname" name="surname" placeholder="Surname...">
    </div>
  </div>
  <div class="aks-input-row">
    <div class="aks-select-row">
      <select class="aks-input" name="select" id="select">
        <option value="Option 1" selected>Option 1</option>
        <option value="Option 2">Option 2</option>
        <option value="Option 3">Option 3</option>
        <option value="Option 4">Option 4</option>
      </select>
      <div class="aks-select-arrow"><svg viewBox="0 0 24 24" width="14" height="14" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none" shape-rendering="geometricPrecision">
          <path d="M6 9l6 6 6-6"></path>
        </svg> </div>
    </div>
  </div>
  <div class="aks-input-row" data-password="">
    <input class="aks-input" type="password" id="password" name="password" placeholder="Password..." data-pass-target="" />
    <button class="password-show-hide" data-pass-show-hide="">

      <svg data-pass-show="" class="password-show" viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none" shape-rendering="geometricPrecision">
        <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z" />
        <circle cx="12" cy="12" r="3" /></svg>
      <svg data-pass-hide="" class="password-hide" viewBox="0 0 24 24" width="18" height="18ccccc" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" fill="none" shape-rendering="geometricPrecision">
        <path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24" />
        <path d="M1 1l22 22" /></svg>

    </button>
  </div>
  <div class="aks-input-row">
    <input class="aks-input" type="checkbox" id="checkbox" name="checkbox">
    <label class="aks-input-label" for="checkbox">Checkbox</label>
  </div>
  <div class="aks-input-row">
    <input class="aks-input" type="radio" id="radio1" name="radio">
    <label class="aks-input-label" for="radio1">Radio</label>
  </div>
  <div class="aks-input-row">
    <input class="aks-input" type="radio" id="radio2" name="radio">
    <label class="aks-input-label" for="radio2">Radio</label>
  </div>
  <div class="aks-input-row">
    <input class="aks-switch" type="checkbox" id="switch" name="switch">
    <label class="aks-input-label" for="switch">Switch</label>
  </div>
  <div class="aks-input-row">
    <input class="aks-input" type="submit" id="submit" name="submit">
  </div>
</div>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css2?family=Inter&display=swap");
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
}
.container {
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  padding-top: 2rem;
}
.aks-input-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
  height: auto;
  position: relative;
}
.aks-input-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto;
  position: relative;
}
.aks-input-icon-wrap .aks-input[type="text"] {
  padding-left: 33px;
}
.aks-input-icon {
  position: absolute;
  left: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7575a0;
}
.aks-input-label {
  margin-left: 0.4rem;
  cursor: pointer;
  position: relative;
}
.aks-input-wrap .aks-input-label {
  margin-left: 0rem;
  margin-bottom: 0.3rem;
  display: block;
  font-size: 15px;
  color: #5e6272;
}
.aks-input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 21px;
  width: 21px;
  border-radius: 7px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: unset;
  position: relative;
  margin: 0;
  cursor: pointer;
  border: 0.1rem solid #bbc1e1;
  background: #fff;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="checkbox"]:hover {
  border-color: #275efe;
}
.aks-input[type="checkbox"]:after {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  top: 3px;
  position: absolute;
  -webkit-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="checkbox"]:checked {
  background: #05f;
  border: 1px solid #05f;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="checkbox"]:checked:after {
  -webkit-transform: rotate(43deg);
  transform: rotate(43deg);
}
.aks-input[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px rgba(39, 94, 254, 0.3);
  border-color: #275efe;
}
.aks-input[type="checkbox"]:disabled {
  background: #f6f8ff;
  cursor: not-allowed;
  opacity: 0.9;
  border-color: #bbc1e1;
}

.aks-input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 21px;
  width: 21px;
  border-radius: 9999px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: unset;
  position: relative;
  margin: 0;
  cursor: pointer;
  border: 0.1rem solid #bbc1e1;
  background: #fff;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="radio"]:hover {
  border-color: #275efe;
}
.aks-input[type="radio"]:after {
  content: "";
  width: 19px;
  height: 19px;
  position: absolute;
  border-radius: 9999px;
  background: #fff;
  opacity: 0;
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="radio"]:checked {
  background: #05f;
  border: 1px solid #05f;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="radio"]:checked:after {
  -webkit-transform: scale(0.5);
  transform: scale(0.5);
  opacity: 1;
}
.aks-input[type="radio"]:focus {
  box-shadow: 0 0 0 2px rgba(39, 94, 254, 0.3);
  border-color: #275efe;
}
.aks-input[type="radio"]:disabled {
  background: #f6f8ff;
  cursor: not-allowed;
  opacity: 0.9;
  border-color: #bbc1e1;
}

.aks-switch[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 21px;
  width: 38px;
  border-radius: 11px;
  outline: none;
  display: flex;
  align-items: center;
  vertical-align: unset;
  position: relative;
  margin: 0;
  cursor: pointer;
  border: 0.1rem solid #bbc1e1;
  background: #fff;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-switch[type="checkbox"]:hover {
  border-color: #275efe;
}
.aks-switch[type="checkbox"]:after {
  content: "";
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  width: 13px;
  height: 13px;
  background: #bbc1e1;
  -webkit-transform: translateX(0);
  transform: translateX(0);
  position: absolute;
  left: 2px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-switch[type="checkbox"]:checked {
  background: #05f;
  border: 1px solid #05f;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-switch[type="checkbox"]:checked:after {
  -webkit-transform: translateX(17px);
  transform: translateX(17px);
  background: white;
}
.aks-switch[type="checkbox"]:focus {
  box-shadow: 0 0 0 2px rgba(39, 94, 254, 0.3);
  border-color: #275efe;
}
.aks-switch[type="checkbox"]:disabled {
  background: #f6f8ff;
  cursor: not-allowed;
  opacity: 0.9;
  border-color: #bbc1e1;
}

.aks-input[type="text"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border-radius: 7px;
  padding: 8px 10px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: unset;
  position: relative;
  margin: 0;
  cursor: pointer;
  border: 0.1rem solid #bbc1e1;
  background: #fff;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="text"]:hover {
  border-color: #275efe;
}
.aks-input[type="text"]:focus {
  box-shadow: 0 0 0 2px rgba(39, 94, 254, 0.3);
  border-color: #275efe;
}
.aks-input[type="text"]:disabled {
  background: #f6f8ff;
  cursor: not-allowed;
  opacity: 0.9;
  border-color: #bbc1e1;
}

.aks-input[type="password"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border-radius: 7px;
  padding: 8px 10px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: unset;
  position: relative;
  margin: 0;
  cursor: pointer;
  border: 0.1rem solid #bbc1e1;
  background: #fff;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="password"]:hover {
  border-color: #275efe;
}
.aks-input[type="password"]:focus {
  box-shadow: 0 0 0 2px rgba(39, 94, 254, 0.3);
  border-color: #275efe;
}
.aks-input[type="password"]:disabled {
  background: #f6f8ff;
  cursor: not-allowed;
  opacity: 0.9;
  border-color: #bbc1e1;
}

.password-show-hide {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  color: #7575a0;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: fit-content;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  outline: none;
}
.password-show-hide:hover {
  color: #275efe;
}
.password-show-hide:focus {
  box-shadow: 0 0 0 2px rgba(39, 94, 254, 0.3);
  color: #275efe;
}

.aks-select-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.aks-select-arrow {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
select.aks-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border-radius: 7px;
  padding: 8px 10px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: unset;
  position: relative;
  margin: 0;
  cursor: pointer;
  border: 0.1rem solid #bbc1e1;
  background: #fff;
  color: #6d6d6d;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
select.aks-input:hover {
  border-color: #275efe;
}
select.aks-input:focus {
  box-shadow: 0 0 0 2px rgba(39, 94, 254, 0.3);
  border-color: #275efe;
}
select.aks-input:disabled {
  background: #f6f8ff;
  cursor: not-allowed;
  opacity: 0.9;
  border-color: #bbc1e1;
}

.aks-input[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border-radius: 7px;
  padding: 8px 10px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: unset;
  position: relative;
  margin: 0;
  cursor: pointer;
  border: 0.1rem solid #275efe;
  background: #275efe;
  color: #fff;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="submit"]:hover {
  border-color: #275efe;
}
.aks-input[type="submit"]:focus {
  box-shadow: 0 0 0 3px rgba(39, 94, 254, 0.3);
  border-color: #275efe;
}
.aks-input[type="submit"]:disabled {
  background: #f6f8ff;
  cursor: not-allowed;
  opacity: 0.9;
  border-color: #bbc1e1;
}

.aks-date-row {
  width: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.aks-date-calender {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  color: #7575a0;
  cursor: pointer;
}
.aks-date-calender:hover {
  color: #275efe;
}
.aks-input[type="date"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border-radius: 7px;
  padding: 8px 10px;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: unset;
  position: relative;
  margin: 0;
  cursor: pointer;
  border: 0.1rem solid #bbc1e1;
  background: #fff;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.aks-input[type="date"]:hover {
  border-color: #275efe;
}
.aks-input[type="date"]:focus {
  box-shadow: 0 0 0 2px rgba(39, 94, 254, 0.3);
  border-color: #275efe;
}
.aks-input[type="date"]:disabled {
  background: #f6f8ff;
  cursor: not-allowed;
  opacity: 0.9;
  border-color: #bbc1e1;
}
.aks-input[type="date"]::-webkit-inner-spin-button {
  display: none;
}
.aks-input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
  color: #7575a0;
  cursor: pointer;
  opacity: 0;
}

              
            
!

JS

              
                (function () {
  "use strict";
  var jQueryPlugin = (window.jQueryPlugin = function (ident, func) {
    return function (arg) {
      if (this.length > 1) {
        this.each(function () {
          var $this = $(this);

          if (!$this.data(ident)) {
            $this.data(ident, func($this, arg));
          }
        });

        return this;
      } else if (this.length === 1) {
        if (!this.data(ident)) {
          this.data(ident, func(this, arg));
        }

        return this.data(ident);
      }
    };
  });
})();

(function () {
  "use strict";
  function Pass_Show_Hide($root) {
    const element = $root;
    const pass_target = $root.first("data-password");
    const pass_elemet = $root.find("[data-pass-target]");
    const pass_show_hide_btn = $root.find("[data-pass-show-hide]");
    const pass_show = $root.find("[data-pass-show]");
    const pass_hide = $root.find("[data-pass-hide]");
    $(pass_hide).hide();
    $(pass_show_hide_btn).click(function () {
      if (pass_elemet.attr("type") === "password") {
        pass_elemet.attr("type", "text");
        $(pass_show).hide();
        $(pass_hide).show();
      } else {
        pass_elemet.attr("type", "password");
        $(pass_hide).hide();
        $(pass_show).show();
      }
    });
  }
  $.fn.Pass_Show_Hide = jQueryPlugin("Pass_Show_Hide", Pass_Show_Hide);
  $("[data-password]").Pass_Show_Hide();
})();

              
            
!
999px

Console