LOADING...

Preview

Pen ID
Unlock Campus Themeforest adv

 

Code

  
Get on board!

Fields with * are required.

CSS
@import url(https://fonts.googleapis.com/css?family=PT+Sans);
@import url(https://fonts.googleapis.com/css?family=Abril+Fatface);
*, *:after, *:before {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 40px 20px 0;
  background: -webkit-linear-gradient(#49a09d, #5f2c82);
  background: linear-gradient(#49a09d, #5f2c82);
  background-repeat: no-repeat;
  color: white;
  font-family: 'PT Sans', sans-serif;
}
@media (min-width: 640px) {
  body {
    margin: 80px 40px 0;
  }
}

.serif {
  font-family: 'Abril Fatface', cursive;
  letter-spacing: 0.05em;
}

.form--register {
  width: 400px;
  max-width: 95%;
  margin: auto;
  padding: 40px 20px;
  border: 1px solid white;
}
@media (min-width: 640px) {
  .form--register {
    padding: 60px 40px;
  }
}

.form__instructions {
  color: white;
  text-align: right;
  font-size: 12px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 20px;
}

legend {
  margin-bottom: 20px;
  font-size: 1.2em;
}
@media (min-width: 640px) {
  legend {
    font-size: 1.7em;
  }
}

.input-group {
  display: inline-block;
  width: 100%;
  margin: 1.1em 0;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  vertical-align: top;
}

.input__field {
  display: block;
  width: 100%;
  padding: 0.8em;
  position: relative;
  float: right;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 0;
  font-weight: bold;
  color: white;
  -webkit-appearance: none;
  /* for box shadows to show on iOS */
}
.input__field.ng-dirty.ng-invalid {
  box-shadow: 0 0 3px rgba(167, 48, 48, 0.5);
  border: 2px solid rgba(167, 48, 48, 0.5);
}
.input__field.ng-dirty.ng-valid:not(.ng-empty) {
  box-shadow: 0 0 3px rgba(73, 160, 157, 0.5);
  border: 2px solid rgba(73, 160, 157, 0.5);
}

.input__field:focus {
  outline: none;
}

.input__label {
  display: inline-block;
  width: 100%;
  height: 100%;
  padding: 0;
  position: absolute;
  float: right;
  font-size: 70.25%;
  font-weight: bold;
  text-align: left;
  color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: text;
}

.input__label-content {
  position: relative;
  display: block;
  padding: 1.6em 0;
  width: 100%;
  -webkit-transform-origin: 0% 50%;
          transform-origin: 0% 50%;
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}

.graphic {
  position: absolute;
  top: 0;
  left: 0;
  fill: none;
  stroke: white;
  stroke-width: 4px;
  stroke-dasharray: 962;
  stroke-dashoffset: 558;
  -webkit-transform: scale3d(1, -1, 1);
          transform: scale3d(1, -1, 1);
  -webkit-transition: stroke-dashoffset 0.3s;
  transition: stroke-dashoffset 0.3s;
  pointer-events: none;
}

.input__field:focus + .input__label,
.ng-dirty + .input__label {
  cursor: default;
  pointer-events: none;
}

.input__field:focus + .input__label .graphic,
.ng-dirty + .input__label .graphic {
  stroke-dashoffset: 0;
}

.input__field:focus + .input__label .input__label-content,
.ng-dirty + .input__label .input__label-content {
  -webkit-transform: scale3d(0.81, 0.81, 1) translate3d(0, -4em, 0);
          transform: scale3d(0.81, 0.81, 1) translate3d(0, -4em, 0);
}

.button--submit {
  height: 45px;
  margin-top: 20px;
  padding: 8px 30px;
  position: relative;
  background: transparent;
  border: 1px solid white;
  color: white;
  text-transform: uppercase;
  overflow: hidden;
  -webkit-transition: 300ms ease all;
  transition: 300ms ease all;
  -webkit-transition: box-shadow 300ms ease-in-out, color 300ms 0 ease-in-out, opacity 300ms ease-in-out;
  transition: box-shadow 300ms ease-in-out, color 300ms 0 ease-in-out, opacity 300ms ease-in-out;
}
.button--submit:not(.disabled):not(.success):hover {
  box-shadow: 0 0 40px 40px white inset;
  color: #49a09d;
}
.button--submit:focus {
  outline: 1px solid rgba(255, 255, 255, 0.5);
}
.button--submit.disabled {
  opacity: 0.7;
  cursor: not-allowed;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border: 1px dashed white;
}
.button--submit.success {
  cursor: not-allowed;
  background: #49a09d;
}

.button--submit__label {
  display: block;
  -webkit-transition: opacity 300ms ease-out, -webkit-transform 300ms ease-out;
  transition: opacity 300ms ease-out, -webkit-transform 300ms ease-out;
  transition: transform 300ms ease-out, opacity 300ms ease-out;
  transition: transform 300ms ease-out, opacity 300ms ease-out, -webkit-transform 300ms ease-out;
}

.button--submit__default {
  position: relative;
}
.success .button--submit__default {
  -webkit-transform: translate3d(0, -100%, 0);
          transform: translate3d(0, -100%, 0);
  opacity: 0;
  visibility: hidden;
}

.button--submit__success {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translate3d(0, 100%, 0);
          transform: translate3d(0, 100%, 0);
  font-size: 13px;
}
.success .button--submit__success {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translate3d(0, -50%, 0);
          transform: translate3d(0, -50%, 0);
}
JS
var app = angular.module('MyApp', []);

app.controller('MainCtrl', ['$scope', '$timeout', function ($scope, $timeout) {
  $scope.showSuccess = false;
  $scope.registerFormSubmitted = false;
  
  $scope.submitRegisterForm = function(user) {
    console.log('in function submitRegisterForm()', user);
    $scope.registerFormSubmitted = true;

    //Simulate form submission
    $timeout(function() {
      $scope.showSuccess = true;
    }, 500);
  };
  
}]);
Host Instantly Drag and Drop Website Builder

 

Description

100 days of UI Challenge: day 001
Term
Mon, 11/27/2017 - 21:33

Related Codes

Pen ID
Pen ID
Pen ID