Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

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

              
                <!--
DRIBBBLE: https://dribbble.com/shots/4281394-Blitzkreig-iOS-App-Gradient-Exploration
-->

<body>

        <div class="screen un">
            <svg id="logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 700"><g id="logoGroup" transform="translate(120 232)"><path id="halfCircle" d="M-103.4-218.4c-15.2 16.7-14.7 42.5 1.4 58.6 16.6 16.6 43.5 16.6 60.1 0 16.1-16.1 16.6-42 1.4-58.6" fill="none" stroke="#fff" stroke-width="10"/><path id="thunder" fill-opacity="0" d="M-55.5-209.8c-.3-.5-.9-.8-1.5-.8h-12.4v-19.6c0-.8-.6-1.6-1.4-1.7-.8-.2-1.7.3-2 1l-14.2 32c-.2.5-.2 1.2.1 1.7.3.5.9.8 1.5.8H-73v19.6c0 .8.6 1.6 1.4 1.7h.4c.7 0 1.3-.4 1.6-1.1l14.2-32.1c.3-.4.3-1-.1-1.5z" fill="#fff"/></g></svg>
            
          <p class="text_max un" style="visibility: hidden;">MAXIMIZE YOUR PERFORMANCE - <span>IN A BLITZ!</span></p>
            
            <div class="loader un" style="visibility:hidden;"></div>
            
            <img src="http://salehriaz.com/Projects/GradientMobileUI/img/logo_txt.svg" class="logo-txt un" width="120px">
            
                <img src="http://salehriaz.com/Projects/GradientMobileUI/img/text_signup.svg" class="text-signup un" width="205px" style="visibility:hidden;">

                <div class="signup-form un" style="visibility:hidden;">
                    <input id="username" class="form-control tr" placeholder="Username" type="text">
                    <input id="email" class="form-control tr" placeholder="Email" type="text">
                    <input id="password" class="form-control tr" placeholder="Password" type="password">
                    <button type="button" id="createBtn" class="form-control button-control tr">CREATE ACCOUNT</button>
                </div>
            
            <div class="options un" style="visibility:hidden;">
                <a class="float-left">Need help?</a>
                <a class="float-right">Sign In</a>
            </div>
        </div>
        <button type="button" id="restart" class="restart tr">RESTART</button>
  <a href="http://salehriaz.com/Projects/GradientMobileUI/" target="_blank" class="viewcomplete tr">FULL SCREEN</a>
        
        
        <script   src="https://code.jquery.com/jquery-3.3.1.min.js"   integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="   crossorigin="anonymous"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.20.4/TweenMax.min.js"></script>
        <script src="js/main.js"></script>
    </body>

              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900');

body{
    font-family: 'Montserrat', sans-serif;
    background-color: #ececec;
}

.screen{
  
    cursor: url('http://salehriaz.com/Projects/GradientMobileUI/img/cursor.svg'), auto;
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    overflow: hidden;
    width: 375px;
    height: 667px;
    background-image: linear-gradient(135deg, #29DAC6 0%, #329DE3 100%);
    border-radius: 10px;
    box-shadow: 0 0 24px 0 rgba(0,0,0,0.1);
}

.screen #logo{
    position: absolute;
    left: 50%;
    top: 45%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 95px;
}

#logoGroup{
    transform: translate(120px, 535px);
}

.text_max{
    font-size: 11px;
    letter-spacing: 1px;
    color: #fff;
    font-weight: 300;
    position: absolute;
    left: 50%;
    bottom: 8%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}

.text_max span{
    font-weight: 400;
}

.loader{
    position: absolute;
    bottom: 0;
    height: 8px;
    width: 100%;
    background-color: #fff;
    
}

.logo-txt{
    position: absolute;
    left: 50%;
    top: 17%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.text-signup{
    position: absolute;
    left: 50%;
    top: 31%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
/*    opacity: 0;*/
}

.signup-form{
    position: absolute;
    left: 50%;
    top: 63%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.form-control{
    cursor: url(http://salehriaz.com/Projects/GradientMobileUI/img/cursor.svg), auto;	
    padding: 14px 15px;
    width: 300px;
    background: rgba(255,255,255,0.35);
    border-radius: 3px;
    font-size: 13px;
    color: #FFFFFF;
    letter-spacing: 1px;
    border: 0;
    margin-bottom: 10px;
    font-weight: 200;
}

.form-control:focus, .restart:focus {outline:0;}

.signup-form input{
    border-left: 3px solid transparent;
}

.signup-form input:focus{
    box-shadow: 0px 0px 15px 0px #0000000d;
    border-left: 3px solid #fff;
}

.button-control{
    padding: 13px 15px;
    width: 330px;
    color: #31A4E0;
    background-color: #fff;
    margin-top: 15px;
    letter-spacing: 1px;
    font-weight: 400;
    box-shadow: 0px 5px 11px 0px #0000001a;
}

.signup-form input:focus::placeholder{
    opacity: 1; /* Firefox */
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #fff;
    opacity: 0.7; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #fff;
}

::-ms-input-placeholder { /* Microsoft Edge */
    color: #fff;
}

.options a{
    pointer-events: none;
    position: absolute;
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.8px;
    
}
.float-left{
    margin-left: 20px;
    left: 0;
    bottom: 3%;
}

.float-right{
    margin-right: 20px;
    right: 0;
    bottom: 3%;
}

.un{
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.tr{
    -webkit-transition: all 0.2s ease-in;
    -moz-transition: all 0.2s ease-in;
    -ms-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
}

.restart, .viewcomplete{
  cursor: pointer;
    background-image: linear-gradient(135deg, #29DAC6 0%, #329DE3 100%);
    border: 0;
    color: #fff;
    opacity: 0.3;
    position: fixed;
    right: 10px;
    top: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 12px;
    letter-spacing: 0.8px;
    z-index: 999;
}

.viewcomplete{
  text-decoration: none;
  top: 50px;
}

#restart:hover, .viewcomplete:hover{
    opacity: 1;
}


              
            
!

JS

              
                (function($){
    
    var tlScreen1 = new TimelineMax();
    
//    TweenMax.to("#earth", 3, {x:500, scale:0.5, rotation:720, opacity: 0.5});
//    TweenLite.to("#astro", 3, { ease: Elastic.easeOut.config(1, 1), x: 500, scale: 0.5}); 
    
    tlScreen1
    .set(".text_max", {visibility: "visible"})
    .add("start")
    .set("#thunder", {fillOpacity: 1})
    .from("#thunder", 1.2, {y:-500, ease: Elastic.easeOut.config(1, 1.1)})
    .from(".text_max", 1.3, {opacity: 0, y:200, ease: Elastic.easeOut.config(1, 1.5)},"start")
    .set(".loader", {visibility: "visible"})
    .from(".loader", 3, {x:-375, ease: Power0.easeNone})
    .to("#logo", 0.5, {y:-575, scale: 0.5})
    .to(".text_max", 0.2, {opacity: 0}, "-=0.5")
    .add("nextScreen")
    .set([".options", ".signup-form", ".text-signup"], {visibility: "visible"})
    .to(".logo-txt", 2, {opacity: 1})
    .from(".text-signup", 1.5,{y:500, opacity: 0, ease: Elastic.easeOut.config(1, 1.5)}, "nextScreen")
    .from(".signup-form", 1.5,{y:500, opacity: 0, ease: Elastic.easeOut.config(1, 1.5)}, "nextScreen")
    .from([".float-left",".float-right"], 1.5,{y:35, opacity: 0, ease: Elastic.easeOut.config(1, 1.5)},"-=0.4");
    
    $("#createBtn").mousedown(function() {
        $(this).css("box-shadow","unset");
    });
    
    $("#createBtn").mouseup(function() {
        $(this).css("box-shadow","0px 5px 11px 0px #0000001a");
    });
    
    $("#restart").click(function() {
        $(".signup-form input").val("");
        tlScreen1.restart();
    });
    
})(jQuery);
              
            
!
999px

Console