Pen Settings



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


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


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.


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.


                <!-- based on original work by DevTips-->

  <div class="slides">
    <div class="slide slide1"><a name="orientation"></a>
       <div class="example example-1 no-padding">
        <div class="belt">
        <div class="state state-1"><input placeholder="Vul je naam in"/>
          <div class="button">Volgende stap<i class="fa fa-chevron-right iconarrow" aria-hidden="true"></i></div>
        <div class="state state-2"><span class="message"><i class="fa fa-check fa-1" aria-hidden="true"></i>Je bent een stap verder</span>
          <div class="button"><i class="fa fa-chevron-left iconarrow-left" aria-hidden="true"></i>Vorige stap</div>



                body {
  font-family: "Roboto Slab", sans-serif;
  color: rgba(0, 0, 0, 0.87);
  -webkit-font-smoothing: antialiased;
    background-color: #f5f5f5;

body hr {
  border: none;
  border-top: 4px solid black;
  margin-bottom: 40px;

    padding-bottom: 1.3em;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;

    padding-right: 0.2em;

    position: absolute;

    position: absolute;

.slides {
  margin: 0 auto;
  max-width: 860px;

.slide {
  background-color: #fff;
  padding: 30px;

.example {
  background: #eee;
  padding: 30px;
} {
  padding: 0px;

.example-1 {
  overflow: hidden;

.example-1 .belt {
  width: 200%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: -webkit-transform 1s ease-in-out;
  transition: -webkit-transform 1s ease-in-out;
  transition: transform 1s ease-in-out;
  transition: transform 1s ease-in-out, -webkit-transform 1s ease-in-out;
  -webkit-perspective: 1000px;
          perspective: 1000px;

.example-1 .state {
  width: 50%;
  height: 324px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;

.example-1 .state-1 {
  background: #e11684;
  -webkit-transition: -webkit-transform 1s ease-in-out;
  transition: -webkit-transform 1s ease-in-out;
  transition: transform 1s ease-in-out;
  transition: transform 1s ease-in-out, -webkit-transform 1s ease-in-out;
  -webkit-transform-origin: center right;
          transform-origin: center right;

.example-1 .state-2 {
  background: #e4479b;
  box-shadow: 0px 0px 0px black;
  z-index: 2;
  -webkit-transition: all 600ms ease-in-out;
  transition: all 600ms ease-in-out;

.example-1 .button, .example-1 input {
  width: 240px;
  padding: 18px;
  border: none;
  margin-bottom: 20px;

.button {
    position: relative;

input {
    font-family: Roboto Slab;

.example-1 .button {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0px 15px 10px -10px rgba(0, 0, 0, 0.3);
  -webkit-transition: all 200ms cubic-bezier(0.25, 0.39, 0.39, 2.01);
  transition: all 200ms cubic-bezier(0.25, 0.39, 0.39, 2.01);
.example-1 .button:hover {
      background: rgba(0, 0, 0, 0.9);

  -webkit-transform: scale(1.05);
          transform: scale(1.05);
  box-shadow: 0px 25px 15px -15px rgba(0, 0, 0, 0.3);
.example-1 input {
  outline: none;
} .belt {
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
} .state-1 {
  -webkit-transform: scale(0.3) rotateY(-90deg);
          transform: scale(0.3) rotateY(-90deg);


                $('.example-1 .button').click(function(){