cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

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.

            
              <ul class="scifiUI">
  <li>
    <input type="radio" name="tab" id="tab1" checked>
    <label for="tab1">Tab1</label>
    <div class="section">
     The user interface, in the industrial design field of human–machine interaction, is the space where interactions between humans and machines occur. The goal of this interaction is effective operation and control of the machine on the user's end, and feedback from the machine, which aids the operator in making operational decisions. Examples of this broad concept of user interfaces include the interactive aspects of computer operating systems, hand tools, heavy machinery operator controls, and process controls. The design considerations applicable when creating user interfaces are related to or involve such disciplines as ergonomics and psychology.
    </div>
  </li>
  <li>
    <input type="radio" name="tab" id="tab2" />
    <label for="tab2">Tab2</label>
    <div class="section">
    User Experience (UX) involves a person's behaviors, attitudes, and emotions about using a particular product, system or service. User Experience includes the practical, experiential, affective, meaningful and valuable aspects of human-computer interaction and product ownership. Additionally, it includes a person’s perceptions of system aspects such as utility, ease of use and efficiency. User Experience may be considered subjective in nature to the degree that it is about individual perception and thought with respect to the system. User Experience is dynamic as it is constantly modified over time due to changing usage circumstances and changes to individual systems as well as the wider usage context in which they can be found.
    </div>
  </li>
  <li>
    <input type="radio" name="tab" id="tab3" />
    <label for="tab3">Tab3</label>
    <div class="section">
      Interactive Design is defined as a user-oriented field of study that focuses on meaningful communication of media through cyclical and collaborative processes between people and technology. Successful interactive designs have simple, clearly defined goals, a strong purpose and intuitive screen interface.
    </div>
  </li>
  <li>
    <input type="radio" name="tab" id="tab4" />
    <label for="tab4">Tab4</label>
    <div class="section">
      In computer science, functional programming is a programming paradigm, a style of building the structure and elements of computer programs, that treats computation as the evaluation of mathematical functions and avoids changing state and mutable data. It is a declarative programming paradigm, which means programming is done with expressions. In functional code, the output value of a function depends only on the arguments that are input to the function, so calling a function f twice with the same value for an argument x will produce the same result f(x) both times. Eliminating side effects, i.e. changes in state that do not depend on the function inputs, can make it much easier to understand and predict the behavior of a program, which is one of the key motivations for the development of functional programming.
    </div>
  </li>
</ul>
            
          
!
            
              @import "compass/css3";

@import url(https://fonts.googleapis.com/css?family=Rajdhani:300);

$colorWhite: rgba(255,255,255,1);
$colorDamnLight: rgba(0,220,220,1);
$colorLight: rgba(0,190,190,1);
$colorDark: rgba(60,60,60,1);
$colorBlack: rgba(33,33,33,1);
$fontSize: 18px;

html, body {
  background-color: $colorBlack;
  width: 100%;
  height: 100%;
  font-family: 'Rajdhani', sans-serif;
  font-size: $fontSize;
}

.scifiUI {
  list-style: none;
  position: relative;
  width: 600px;
  margin: 50px auto;
  padding: 0;
  font-size: 1em;
  color: $colorLight;
}
  
li {
  display: inline-block;

  input[type="radio"] {
    @include opacity(0);
    position: absolute;
    outline: none;

    &:checked {

      ~ label {
        background: $colorLight;
        color: $colorBlack;
        height: 50px;
        font-size: 1.2em;
        cursor: default;
        @include box-shadow(0 0 10px $colorDamnLight);
      }
      
      ~ .section {
        @include opacity(1);
        width: 500px;
        padding: 50px;
        border: 1px solid $colorLight;
        color: $colorDamnLight;
        letter-spacing: .1em;
        text-indent: 1em;
        z-index: 1;
      }
    }
  }

  label {
    display: block;
    width: 120px;
    height: 40px;
    border: 1px solid rgba($colorLight, .7);
    border-bottom: 0;
    @include border-radius(5px 5px 0 0);
    color: rgba($colorLight, .7);
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    @include transition(all 200ms ease-in-out);

    &:hover {
      height: 50px;
      border-color: $colorLight;
      color: $colorLight;
    }
  }

  .section {
    @include opacity(0);
    position: absolute;
    top: 51px;
    left: 0;
    width: 1000px;
    padding: 50px;
    border: 1px solid $colorLight;
    background: rgba($colorLight, .1);
    color: $colorWhite;
    letter-spacing: -1em;
    text-indent: 1em;

    @include transition(all 200ms ease-in-out);
  }
}
            
          
!
            
              /* Yep! Do not need JavaScript */
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console