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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              h1 Daily UI #001
  span Sign up

.container
  .front.face
    h2 Join our community
    hr
    form
      fieldset.user
        input(placeholder="Username" type="text" name="name")
      fieldset.email
        input(placeholder="Email" type="email" name="email")
      fieldset.password
        input(placeholder="Password" type="password" name="password")
      button.button(role="submit")
        .fa.fa-sign-in
  .back.face
    div.title All good !
    hr
    .bot-wrapper
      div.p You will soon receive a confirmation email from our team !
      div.p We look forward to working with you. Thanks for joining us !
      div.p
        i.fa.fa-check-circle-o
  

            
          
!
            
              
label.error {
  display: none !important;
}
body {
    background: radial-gradient(ellipse farthest-corner at left top, #f35464 30%, #841F4B 100%);
  height: 100vh;
  font-family: 'Raleway';
  color: #333;
}

h1 {
  font-size: 3rem;
  color: #fff;
  margin: 15px;
    span {
    display: block;
    font-size: 2.5rem;
  }
}


.container {
  opacity: 0;

box-sizing: border-box;
    position: absolute;
  padding-bottom: 15px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
    box-shadow: 0 7px 30px rgba(62, 9, 11, .3);
 width: 150px;
  height: 70px;
  border-radius: 15px;
}

.button {
  
      background: radial-gradient(ellipse farthest-corner at left top, #f35464 30%, #841F4B 100%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  cursor: pointer;
  transition: box-shadow 500ms ease;
  font-size:2rem;
  &:hover {
    box-shadow: 0 7px 30px #f35464;
    transition: box-shadow 500ms ease;
  }

  
}

button {
    cursor:pointer;
}
#controller {
  
    z-index:2;
    position:absolute;
  right: 0;
  top: 0;
    display:inline-block;
    padding:20px;
    background-color:rgba(0, 0, 0, 0.4);
  display:none;
}

#slider{
    margin-top:20px;
}

h2 {
  color: #f35464;
  font-weight: bold;
  margin-top: 0;

}

fieldset {
  margin: 10px 0;
  position: relative;
  input {
    width: 100%;
    height: 52px;
    color: #333333;
    padding: 15px 40px 15px 15px;
    border-radius: 5px;
    font-size: 14px;
    outline: none !important;
    border: 1px solid rgba(0, 0, 0, 0.3);
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.2);
    &:focus {
      border-color: #f35464;
  outline: 0;

          box-shadow: inset 0 1px 1px #f35464, 0 0 8px #f35464;
    }
  }
}

fieldset::after {
      
    font-family: FontAwesome;
    position: absolute;
    right: 15px;
    top: 17px;
    z-index: 2;
    width: 20px;
    color: rgba(0, 0, 0, 0.2);
    text-align: center;
}

.user::after {
  content: '\f007';
}

.email::after {
  content: '\f0e0';
}

.password::after {
   content: '\f023';
}

.required:valid {
  background: radial-gradient(ellipse farthest-corner at left top, lighten(#2ecc71,20%) 30%, lighten(#2ecc71,30%) 100%);
}
.required:valid:focus {
      border-color: #f35464;
  outline: 0;

          box-shadow: inset 0 1px 1px lighten(#2ecc71,20%), 0 0 8px lighten(#2ecc71,30%);
}

form {
  text-align: center;
}

.face{
  padding: 15px;
  position: absolute;
  left: 0;
  right:0;
  bottom: 0;
  top: 0;
  backface-visibility: hidden;
  border-radius: inherit;
}

.front {
  overflow: hidden;
}

.back {
  transform: rotateY(-180deg);
  background: #333;
  .title, p, div {
    color: #fff;
    text-align: center;
  }
  .fa {
    font-size: 10rem;
    margin-top: 15px;
  }
}
.bot-wrapper {
  div {
    margin: 15px;
  }
}
.old {
  display: none;
}
.title {
    font-size:30px;
}
            
          
!
            
              var tl = new TimelineMax({
  paused: true
});

$('.button').on('click', function() {
  var $self = $(this);
  if ($self.hasClass('active') && $('form').valid()) {
    tl.resume();
  } else if (tl.progress() == 0) {
    tl.play();
    $self.addClass('active');
  }
  return false;
})

CSSPlugin.defaultTransformPerspective = 800;
TweenLite.set($(".container"), {
  opacity: 1
});

function getButtonTimeline() {
  var $button = $('.button');
  var tl = new TimelineLite();
  tl
    .set($button, {
      y: -300
    })
    .to($button, 0.1, {
      scale: 0.9,
      yoyo: true,
      repeat: 1
    })
    .to($button, 1, {
      borderRadius: 5,
      height: 52,
      width: '100%',
      text: {
        value: "Submit",
        oldClass: "signup",
        newClass: "submit",
        delimiter: " "
      },
      ease: Power4.easeInOut,
      y: 0
    }, '+=0.55');
  return tl;
}

function getContainerTimeline() {
  var $container = $('.container');
  var tl = new TimelineLite();
  tl
    .to($container, 1, {
      width: 316,
      ease: Power4.easeIn
    })
    .to($container, 0.5, {
      height: 346,
      ease: Power4.easeOut
    });
  return tl;
}

function getFormTimeline() {
  var $title = $('h2'),
    $form = $('form'),
    $fieldset = $('fieldset'),
    tl = new TimelineMax();

  var setForm = function() {
    $('.user input').focus();
    $('input').prop('required', true);
    $('input').addClass('required');
  };

  tl
    .from($title, 0.5, {
      autoAlpha: 0,
      rotationX: -90,
      transformOrigin: "center top"
    })
    .staggerFrom($fieldset, 0.7, {
      x: -500,
      autoAlpha: 0,
      scale: 0,
      ease: Power3.easeOut
    }, 0.2)
    .add(setForm);
  return tl;
}

function getFlipTimeline() {
  var $container = $('.container');
  var tl = new TimelineLite();
  tl.to($container, 1.2, {
    rotationY: 180,
    ease: Back.easeOut
  });
  return tl;
}

function getLoaderTimeline() {
  var $submit = $('.button');
  var tl = new TimelineLite();
  tl.to($submit, 0.01, {
    text: {
      value: "",
      oldClass: "submit",
      newClass: "fa fa-spinner fa-spin",
      delimiter: " "
    }
  }); // ff fix
  return tl;
}

function getBackTimeline() {
  var $back = $('.back');
  var $h2 = $('.title');
  var $p = $('div.p');
  var tl = new TimelineLite();
  tl.from($h2, 0.5, {
      autoAlpha: 0,
      rotationX: -90,
      transformOrigin: "center top",
      ease: Back.easeOut
    })
    .staggerFrom($p, 0.5, {
      scale: 0,
      ease: Back.easeOut
    }, 0.2, '-=0.3');
  return tl;
}

var $container = $('.container');
tl
  .add('start', 0)
  .add(getButtonTimeline(), 'start')
  .add(getContainerTimeline(), 'start')
  .add(getFormTimeline())
  .addPause()
  .add(getLoaderTimeline())
  .set($container, {transformStyle: 'preserve-3d'})
  .add(getFlipTimeline(), '+=2')
  .add(getBackTimeline(), '-=0.5');


            
          
!
999px
Loading ..................

Console