Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <body>
    <div class="animated-bg-container">
        <div class="background-image"></div>
    </div>
    <div id="app">
        <div class="nav nav-left depth-1" v-bind:class="{'nav-clickable-backward':backVisible}" @click="backward">
            <i class="fas fa-arrow-left"></i>
        </div>
        <div class="container">
            <!-- STEP ONE -->
            <div id="stepone" class="step depth-1" v-if="step === 'stepone'" key="stepone">
                <div class="header">
                    <h1>
                        <span style="cursor: pointer;" v-bind:class="{gentle:newUser}" @click="newUser = false">Log In&nbsp;&nbsp;</span>
                        <span class="gentle">&bull;</span>
                        <span style="cursor: pointer;" v-bind:class="{gentle:!newUser}" @click="newUser = true">&nbsp;&nbsp;Sign Up</span>
                    </h1>
                </div>
                <div class="conversational">
                    <p>{{steponeLang}}</p>
                </div>
                <div class="form-inputs">
                    <input id="email" type="email" placeholder="email address" aria-label="email address" v-model="userEmail" @keyup="checkCompleteness"
                    />
                    <input id="password" type="password" placeholder="password" aria-label="password" v-model="userPassword" @keyup="checkCompleteness"
                    />
                    <a href="#">
                        <h6 v-if="!newUser">Forgot password?</h6>
                    </a>
                </div>
                <div class="footer"></div>
            </div>



            <!-- STEP TWO -->
            <div id="steptwo" class="step depth-1" v-if="step === 'steptwo'" key="steptwo">
                <div class="header">
                    <h1>
                        Choose Your Plan
                    </h1>
                </div>
                <div class="planselection">
                    <div class="plan1" @click="selectPlan(availablePlans.plan1)" v-bind:class="{'selected':selectedPlan.name === availablePlans.plan1.name}">
                        <h2>{{availablePlans.plan1.name}}</h2>
                        <i class="fas fa-feather-alt"></i>
                        <p>{{availablePlans.plan1.description}}</p>
                        <div class="price-bubble">
                            ${{availablePlans.plan1.price}}
                        </div>
                    </div>
                    <div class="plan2" @click="selectPlan(availablePlans.plan2)" v-bind:class="{'selected':selectedPlan.name === availablePlans.plan2.name}">
                        <h2>{{availablePlans.plan2.name}}</h2>
                        <i class="far fa-lightbulb"></i>
                        <p>{{availablePlans.plan2.description}}</p>
                        <div class="price-bubble">
                            ${{availablePlans.plan2.price}}
                        </div>
                    </div>
                    <div class="plan3" @click="selectPlan(availablePlans.plan3)" v-bind:class="{'selected':selectedPlan.name === availablePlans.plan3.name}">
                        <h2>{{availablePlans.plan3.name}}</h2>
                        <i class="fas fa-award"></i>
                        <p>{{availablePlans.plan3.description}}</p>
                        <div class="price-bubble">
                            ${{availablePlans.plan3.price}}
                        </div>
                    </div>

                </div>
                <div class="footer">

                </div>
            </div>


            <!-- STEP THREE -->
            <div id="stepthree" class="step depth-1" v-if="step === 'stepthree'" key="stepthree">
                <div class="header">
                    <h1>
                        Payment Info
                    </h1>
                </div>
                <div class="conversational">
                    <p>Hey, you are doing great, now for your payment information...</p>
                </div>
                <div class="form-inputs ccinfo">
                    <div class="cardname">
                        <input id="ccname" type="text" placeholder="name on card" aria-label="name on card" v-model="cardName" @keyup="checkCompleteness"
                        />
                    </div>
                    <div class="cardnumber">
                        <input id="ccnumber" type="text" placeholder="card number" aria-label="card number" v-model="cardNumber" @keyup="checkCompleteness"
                        />
                    </div>
                    <div class="cardexp">
                        <input id="ccexp" type="text" placeholder="expiration" aria-label="expiration" v-model="cardExp" @keyup="checkCompleteness"
                        />
                    </div>
                    <div class="cardcvc">
                        <input id="cccvc" type="text" placeholder="cvc number" aria-label="cvc number" v-model="cardCvc" @keyup="checkCompleteness"
                        />
                    </div>
                </div>

                <div class="footer">

                </div>
            </div>

            <!-- STEP FOUR -->
            <div id="stepfour" class="step depth-1" v-if="step === 'stepfour'" key="stept">
                <div class="header">
                    <h1>
                        Billing Address
                    </h1>
                </div>
                <div class="conversational">
                    <p>So close... Now we just need some more billing information to complete your order.</p>
                </div>
                <div class="form-inputs billingaddress">
                    <div class="cardaddress">
                        <input id="ccaddress" type="text" placeholder="address" aria-label="address" v-model="cardAddress" @keyup="checkCompleteness"
                        />
                    </div>
                    <div class="cardcity">
                        <input id="cccity" type="text" placeholder="city" aria-label="city" v-model="cardCity" @keyup="checkCompleteness" />
                    </div>
                    <div class="cardstate">
                        <input id="ccstate" type="text" placeholder="state" aria-label="state" v-model="cardState" @keyup="checkCompleteness" />
                    </div>
                    <div class="cardzip">
                        <input id="cczip" type="text" placeholder="zip" aria-label="zipcode" v-model="cardZip" @keyup="checkCompleteness" />
                    </div>
                </div>

                <div class="footer">

                </div>
            </div>

            <!-- STEP FIVE -->
            <div id="stepfive" class="step depth-1" v-if="step === 'stepfive'" key="stepfive">
                <div class="header">
                    <h1>
                        Order Confirmation
                    </h1>
                </div>
                <div class="ordersummary">
                    <p>Great! We have you checking out with our
                        <span>{{selectedPlan.name}}</span> plan for
                        <span>${{selectedPlan.price}}</span> using card ending in
                        <span>{{lastFour}}</span>.</p>
                    <p>If all looks good, please click on the purchase button to finalize the transaction!</p>
                    <button id="submit-purchase">PURCHASE</button>
                </div>
                <div class="checkout-iconography">
                    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
                        viewBox="0 0 756 858" enable-background="new 0 0 756 858" xml:space="preserve">
                        <path id="bottomslide" fill="#3BDBCC" d="M495.8,541.9h-84.5c-1.1,0-2-0.9-2-2V342.5c0-1.1,0.9-2,2-2h84.5c1.1,0,2,0.9,2,2v197.5
	C497.8,541,496.9,541.9,495.8,541.9z" />
                        <g id="card" v-bind:class="{'animate':step === 'stepfive'}">
                            <path fill="#E5E5E5" d="M556,123.2v199.9c0,1.1-0.9,2-2,2H430.7c-1.1,0-2-0.9-2-2V123.2c0-1.1,0.9-2,2-2H554
		C555.1,121.2,556,122.1,556,123.2z" />

                            <rect x="351.2" y="209.5" transform="matrix(6.123234e-17 -1 1 6.123234e-17 230.0159 676.2959)" fill="#303030" width="203.9"
                                height="27.2" />

                            <rect x="430.5" y="213.9" transform="matrix(6.123234e-17 -1 1 6.123234e-17 274.1384 720.4184)" fill="#FFFFFF" width="133.5"
                                height="18.5" />

                            <rect x="484.3" y="171.1" transform="matrix(6.123234e-17 -1 1 6.123234e-17 323.1085 671.4483)" fill="#A0A0A0" width="26"
                                height="6.2" />

                            <rect x="528.8" y="288.5" transform="matrix(6.123234e-17 -1 1 6.123234e-17 250.194 833.3431)" fill="#A0A0A0" width="26" height="6.2"
                            />

                            <rect x="501.6" y="226.7" transform="matrix(6.123234e-17 -1 1 6.123234e-17 311.9859 771.5512)" fill="#A0A0A0" width="80.3"
                                height="6.2" />
                        </g>
                        <g id="machine">
                            <path id="topslide" fill="#24A097" d="M483.6,546.2h-84.5c-1.1,0-2-0.9-2-2v-206c0-1.1,0.9-2,2-2h84.5c1.1,0,2,0.9,2,2v206
		C485.6,545.3,484.7,546.2,483.6,546.2z" />
                            <path fill="#5ED3CA" d="M426.6,794.8h-304c-1.1,0-2-0.9-2-2V316.7c0-1.1,0.9-2,2-2h304c1.1,0,2,0.9,2,2v476.1
		C428.6,793.9,427.7,794.8,426.6,794.8z" />
                            <path fill="#A4F4EE" d="M422.6,786.2H126c-3.3,0-6-2.7-6-6V271.5c0-3.3,2.7-6,6-6h296.6c3.3,0,6,2.7,6,6v508.8
		C428.6,783.5,425.9,786.2,422.6,786.2z" />
                            <rect x="120" y="295.5" fill="#5ED3CA" width="308.6" height="495.1" />
                            <rect x="146.8" y="295.5" fill="#24A097" width="255" height="499.3" />
                            <rect x="171.4" y="325.5" fill="#F9F9F9" width="205.7" height="158.6" />
                            <g>
                                <g>
                                    <path fill="#6FC1B9" d="M229.4,537.6H174c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C231.4,536.7,230.5,537.6,229.4,537.6z" />
                                    <path fill="#6FC1B9" d="M302.6,537.6h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C304.6,536.7,303.7,537.6,302.6,537.6z" />
                                    <path fill="#6FC1B9" d="M375.8,537.6h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C377.8,536.7,376.9,537.6,375.8,537.6z" />
                                </g>
                                <g>
                                    <path fill="#6FC1B9" d="M229.4,582.6H174c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C231.4,581.7,230.5,582.6,229.4,582.6z" />
                                    <path fill="#6FC1B9" d="M302.6,582.6h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C304.6,581.7,303.7,582.6,302.6,582.6z" />
                                    <path fill="#6FC1B9" d="M375.8,582.6h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C377.8,581.7,376.9,582.6,375.8,582.6z" />
                                </g>
                                <g>
                                    <path fill="#6FC1B9" d="M229.4,627.6H174c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C231.4,626.7,230.5,627.6,229.4,627.6z" />
                                    <path fill="#6FC1B9" d="M302.6,627.6h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C304.6,626.7,303.7,627.6,302.6,627.6z" />
                                    <path fill="#6FC1B9" d="M375.8,627.6h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C377.8,626.7,376.9,627.6,375.8,627.6z" />
                                </g>
                                <g>
                                    <path fill="#6FC1B9" d="M229.4,672.6H174c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C231.4,671.7,230.5,672.6,229.4,672.6z" />
                                    <path fill="#6FC1B9" d="M302.6,672.6h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C304.6,671.7,303.7,672.6,302.6,672.6z" />
                                    <path fill="#6FC1B9" d="M375.8,672.6h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C377.8,671.7,376.9,672.6,375.8,672.6z" />
                                </g>
                            </g>
                            <g>
                                <g>
                                    <path fill="#A4F4EE" d="M229.4,531.2H174c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C231.4,530.3,230.5,531.2,229.4,531.2z" />
                                    <path fill="#A4F4EE" d="M302.6,531.2h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C304.6,530.3,303.7,531.2,302.6,531.2z" />
                                    <path fill="#A4F4EE" d="M375.8,531.2h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C377.8,530.3,376.9,531.2,375.8,531.2z" />
                                </g>
                                <g>
                                    <path fill="#A4F4EE" d="M229.4,576.2H174c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C231.4,575.3,230.5,576.2,229.4,576.2z" />
                                    <path fill="#A4F4EE" d="M302.6,576.2h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C304.6,575.3,303.7,576.2,302.6,576.2z" />
                                    <path fill="#A4F4EE" d="M375.8,576.2h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C377.8,575.3,376.9,576.2,375.8,576.2z" />
                                </g>
                                <g>
                                    <path fill="#A4F4EE" d="M229.4,621.2H174c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C231.4,620.3,230.5,621.2,229.4,621.2z" />
                                    <path fill="#A4F4EE" d="M302.6,621.2h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C304.6,620.3,303.7,621.2,302.6,621.2z" />
                                    <path fill="#A4F4EE" d="M375.8,621.2h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C377.8,620.3,376.9,621.2,375.8,621.2z" />
                                </g>
                                <g>
                                    <path fill="#A4F4EE" d="M229.4,666.2H174c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C231.4,665.3,230.5,666.2,229.4,666.2z" />
                                    <path fill="#A4F4EE" d="M302.6,666.2h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C304.6,665.3,303.7,666.2,302.6,666.2z" />
                                    <path fill="#A4F4EE" d="M375.8,666.2h-55.3c-1.1,0-2-0.9-2-2v-21.7c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v21.7
				C377.8,665.3,376.9,666.2,375.8,666.2z" />
                                </g>
                            </g>
                            <g>
                                <path fill="#C6C6C6" d="M229.4,743.4H174c-1.1,0-2-0.9-2-2v-28.1c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v28.1
			C231.4,742.5,230.5,743.4,229.4,743.4z" />
                                <path fill="#C6C6C6" d="M302.6,743.4h-55.3c-1.1,0-2-0.9-2-2v-28.1c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v28.1
			C304.6,742.5,303.7,743.4,302.6,743.4z" />
                                <path fill="#C6C6C6" d="M375.8,743.4h-55.3c-1.1,0-2-0.9-2-2v-28.1c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v28.1
			C377.8,742.5,376.9,743.4,375.8,743.4z" />
                            </g>
                            <g>
                                <path fill="#FFFFFF" d="M229.4,736.9H174c-1.1,0-2-0.9-2-2v-28.1c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v28.1
			C231.4,736,230.5,736.9,229.4,736.9z" />
                                <path fill="#FFFFFF" d="M302.6,736.9h-55.3c-1.1,0-2-0.9-2-2v-28.1c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v28.1
			C304.6,736,303.7,736.9,302.6,736.9z" />
                                <path fill="#FFFFFF" d="M375.8,736.9h-55.3c-1.1,0-2-0.9-2-2v-28.1c0-1.1,0.9-2,2-2h55.3c1.1,0,2,0.9,2,2v28.1
			C377.8,736,376.9,736.9,375.8,736.9z" />
                            </g>
                        </g>
                    </svg>

                </div>
                <div class="footer">

                </div>
            </div>

        </div>
        <div class="nav nav-right depth-1" v-bind:class="{'nav-visible-forward':forwardVisible, 'nav-clickable-forward':forwardClickable}"
            @click="forward">
            <i class="fas fa-arrow-right"></i>
        </div>
    </div>
</body>
              
            
!

CSS

              
                @import url("https://fonts.googleapis.com/css?family=Raleway:400,700,900");
* {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

body {
    font-family: "Raleway", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fbfbfb;
}

.background-image {
    height: calc(100vh + 400px);
    width: calc(200vw + 400px);
    position: absolute;
    top: 0;
    left: -400px;
    z-index: -1;
    background: url(https://www.toptal.com/designers/subtlepatterns/patterns/funky-lines.png);
    -webkit-animation: backgroundscroll 30s linear infinite;
            animation: backgroundscroll 30s linear infinite;
}

.animated-bg-container {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: absolute;
    z-index: -1;
}

@-webkit-keyframes backgroundscroll {
    to {
        -webkit-transform: translate(400px, -400px);
                transform: translate(400px, -400px);
    }
}

@keyframes backgroundscroll {
    to {
        -webkit-transform: translate(400px, -400px);
                transform: translate(400px, -400px);
    }
}

a,
a:hover,
a:visited,
a:active {
    color: #2ed3cb;
    text-decoration: none;
}

#app {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 100vh;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    min-width: 600px;
}

.container {
    width: 95%;
    max-width: 600px;
    min-width: 335px;
}

.header {
    grid-area: header;
    text-align: center;
    padding-top: 10px;
}

.form-inputs {
    grid-area: form-inputs;
    margin: 50px 20px 20px;
    -ms-flex-item-align: center;
        align-self: center;
}

.planselection {
    grid-area: planselection;
    -ms-flex-item-align: center;
        align-self: center;
}

.conversational {
    grid-area: conversational;
    -ms-flex-item-align: center;
        align-self: center;
    margin: 50px 0 20px;
}

.ordersummary {
    grid-area: ordersummary;
    padding: 10px 0 0px 30px;
    position: relative;
}

.checkout-iconography {
    grid-area: checkouticon;
}

.footer {
    grid-area: footer;
}

.container #stepone,
.container #stepthree,
.container #stepfour {
    border-radius: 5px;
    width: 100%;
    margin: auto;
    background-color: white;
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: 80px auto 20px;
    grid-template-areas: "header header" "form-inputs conversational" "footer footer";
}

.container #steptwo {
    border-radius: 5px;
    width: 100%;
    margin: auto;
    background-color: white;
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 110px auto 20px;
    grid-template-areas: "header" "planselection" "footer";
}

.container #stepfive {
    border-radius: 5px;
    width: 100%;
    margin: auto;
    background-color: white;
    display: grid;
    grid-template-columns: auto 230px;
    grid-template-rows: 110px 300px 20px;
    grid-template-areas: "header header" "ordersummary checkouticon" "footer footer";
}

/* StepStyling */

#stepone .conversational,
#stepone .form-inputs {
    height: 140px;
}

#steptwo .planselection {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0 20px;
}

#steptwo .planselection .plan1,
#steptwo .planselection .plan2,
#steptwo .planselection .plan3 {
    background-color: #f7f7f7;
    /* border: 2px solid #2ed3cb; */
    border-radius: 4px;
    margin: 10px 5px 70px;
    padding: 10px;
    height: 200px;
    width: 100%;
    -webkit-transition: all ease-in-out 0.1s;
    transition: all ease-in-out 0.1s;
    cursor: pointer;
}

#steptwo .planselection>div.selected {
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
    -webkit-transition: all ease-in-out 0.1s;
    transition: all ease-in-out 0.1s;
}

#steptwo .planselection>div.selected>.price-bubble {
    -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, .15), 0 6px 6px rgba(0, 0, 0, 0.15);
            box-shadow: 0 10px 20px rgba(0, 0, 0, .15), 0 6px 6px rgba(0, 0, 0, 0.15);
    -webkit-transition: all ease-in-out 0.1s;
    transition: all ease-in-out 0.1s;
}

#steptwo .planselection>div i {
    font-size: 30px;
    margin: 8px auto 0;
    display: table;
}

#steptwo .planselection>div.plan1 i {
    color: #2ed3cb;
}

#steptwo .planselection>div.plan2 i {
    color: #2ed3cb;
}

#steptwo .planselection>div.plan3 i {
    color: #2ed3cb;
}

#steptwo .planselection>div.plan1 .price-bubble {
    background-color: #2ed3cb;
}

#steptwo .planselection>div.plan2 .price-bubble {
    background-color: #2ed3cb;
}

#steptwo .planselection>div.plan3 .price-bubble {
    background-color: #2ed3cb;
}

#steptwo .planselection>div h2 {
    text-align: center;
    font-size: 22px;
}

#steptwo .planselection>div p {
    font-size: 13px;
    text-align: center;
}

#steptwo .planselection>div .price-bubble {
    width: 80px;
    margin: 0 auto;
    height: 80px;
    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;
    border: 3px solid #f7f7f7;
    color: white;
    background-color: lightcoral;
    border-radius: 50%;
}

#stepthree .conversational,
#stepthree .form-inputs {
    height: 152px;
}

#stepthree .form-inputs.ccinfo .cardname {
    grid-area: cardname;
}

#stepthree .form-inputs.ccinfo .cardnumber {
    grid-area: cardnumber;
}

#stepthree .form-inputs.ccinfo .cardexp {
    grid-area: cardexp;
    margin-right: 5px;
}

#stepthree .form-inputs.ccinfo .cardcvc {
    grid-area: cardcvc;
    margin-left: 5px;
}

#stepthree .form-inputs.ccinfo {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 50px 50px auto;
    grid-template-areas: "cardname cardname" "cardnumber cardnumber" "cardexp cardcvc";
}

#stepfour .conversational,
#stepfour .form-inputs {
    height: 152px;
}

#stepfour .form-inputs.billingaddress .cardaddress {
    grid-area: cardaddress;
}

#stepfour .form-inputs.billingaddress .cardcity {
    grid-area: cardcity;
    margin-right: 5px;
}

#stepfour .form-inputs.billingaddress .cardstate {
    grid-area: cardstate;
    margin-right: 5px;
    margin-left: 5px;
}

#stepfour .form-inputs.billingaddress .cardzip {
    grid-area: cardzip;
    margin-left: 5px;
}

#stepfour .form-inputs.billingaddress {
    display: grid;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    grid-template-columns: auto 65px 67px;
    grid-template-rows: 50px 50px auto;
    grid-template-areas: "cardaddress cardaddress cardaddress" "cardcity cardstate cardzip";
}

#stepfive .ordersummary p span {
    font-weight: 700;
    color: #2ed3cb;
}

#stepfive .ordersummary button {
    font-weight: 700;
    color: white;
    background-color: #2ed3cb;
    height: 50px;
    width: 220px;
    letter-spacing: 3px;
    margin-top: 30px;
    border: none;
    border-radius: 5px;
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

#stepfive .ordersummary button:active {
    -webkit-box-shadow: none;
            box-shadow: none;
    outline: none;
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#stepfive .ordersummary button:focus {
    outline: none;
}

.conversational p {
    font-size: 20px;
    margin: 0 12px;
    padding: 0 8px;
    border-left: 4px solid #2ed3cb;
}

.nav {
    border-radius: 50%;
    margin: 10px;
    border: 2px solid white;
    padding: 15px;
    -webkit-transition: all ease-in-out 0.3s;
    transition: all ease-in-out 0.3s;
    opacity: 0;
}

.nav-visible-forward {
    background-color: #2ed3cb;
    border: 2px solid #2ed3cb;
    color: white;
    opacity: .4;
}

.nav-clickable-forward {
    background-color: #2ed3cb;
    border: 2px solid #2ed3cb;
    color: white;
    cursor: pointer;
    opacity: 1;
}

.nav-clickable-backward {
    background-color: white;
    border: 2px solid #2ed3cb;
    color: #2ed3cb;
    cursor: pointer;
    opacity: 1;
}

.nav-clickable:hover {
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    -webkit-transition: all ease-in-out 0.3s;
    transition: all ease-in-out 0.3s;
}

.gentle {
    color: rgb(236, 236, 236);
}

.hidebutthere {
    opacity: 0;
}

.hide {
    display: none;
}

/* depth-shadows */

.depth-1 {
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.depth-2 {
    -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.depth-3 {
    -webkit-box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.depth-4 {
    -webkit-box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
            box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.depth-5 {
    -webkit-box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
            box-shadow: 0 19px 38px rgba(0, 0, 0, 0.3), 0 15px 12px rgba(0, 0, 0, 0.22);
}

/* Form Styling */

input {
    display: block;
}

input::-webkit-input-placeholder {
    color: rgb(202, 202, 202);
}

input:-ms-input-placeholder {
    color: rgb(202, 202, 202);
}

input::placeholder {
    color: rgb(202, 202, 202);
}

textarea:focus,
input:focus {
    outline: 2px solid #2ed3cb;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    padding: 10px;
    border: 1px solid #e0e0e0;
    margin: 15px 0;
    border-radius: 3px;
    width: 100%;
    font-size: 14px;
}

div>input:first-of-type {
    margin-top: 0;
}

/* icon animation */

@-webkit-keyframes slidecard {
    0% {
        -webkit-transform: translate(170px, -60px) rotate(90deg);
                transform: translate(170px, -60px) rotate(90deg);
        -webkit-transform-origin: 420px 130px;
                transform-origin: 420px 130px;
    }
    40% {
        -webkit-transform: translate(60px, -20px) rotate(0deg);
                transform: translate(60px, -20px) rotate(0deg);
        -webkit-transform-origin: 500px 130px;
                transform-origin: 500px 130px;
    }
    60% {
        -webkit-transform: translate(0px, 0px);
                transform: translate(0px, 0px);
    }
    100% {
        -webkit-transform: translate(0px, 400px);
                transform: translate(0px, 400px);
    }
}

@keyframes slidecard {
    0% {
        -webkit-transform: translate(170px, -60px) rotate(90deg);
                transform: translate(170px, -60px) rotate(90deg);
        -webkit-transform-origin: 420px 130px;
                transform-origin: 420px 130px;
    }
    40% {
        -webkit-transform: translate(60px, -20px) rotate(0deg);
                transform: translate(60px, -20px) rotate(0deg);
        -webkit-transform-origin: 500px 130px;
                transform-origin: 500px 130px;
    }
    60% {
        -webkit-transform: translate(0px, 0px);
                transform: translate(0px, 0px);
    }
    100% {
        -webkit-transform: translate(0px, 400px);
                transform: translate(0px, 400px);
    }
}

#stepfive svg {
    margin-top: -40px;
}

#stepfive svg g#card {
    -webkit-transform: translate(170px, -60px) rotate(90deg);
            transform: translate(170px, -60px) rotate(90deg);
    -webkit-transform-origin: 420px 130px;
            transform-origin: 420px 130px;
}

#stepfive svg g#card.animate {
    -webkit-animation: slidecard 2s ease .5s forwards;
            animation: slidecard 2s ease .5s forwards;
}
              
            
!

JS

              
                var app = new Vue({
    el: '#app',
    data: {
        newUser: false,
        backVisible: false,
        forwardVisible: true,
        forwardClickable: false,
        userEmail: null,
        userPassword: null,
        cardName: null,
        cardNumber: null,
        cardExp: null,
        cardCvc: null,
        cardAddress: null,
        cardCity: null,
        cardState: null,
        cardZip: null,
        step: "stepone",
        transitionType: "slideLeft",
        availablePlans: {
            plan1: {
                name: 'Decent',
                price: 8.99,
                description: 'Lorem, ipsum dolor sit amet consectetur adipisicing elit.'
            },
            plan2: {
                name: 'Mediocre',
                price: 12.99,
                description: 'Lorem, ipsum dolor sit amet consectetur adipisicing elit.'
            },
            plan3: {
                name: 'Amazing',
                price: 59.99,
                description: 'Lorem, ipsum dolor sit amet consectetur adipisicing elit.'
            }
        },
        selectedPlan: {
            name: null,
            price: null,
            description: null
        }
    },
    computed: {
        steponeLang: function () {
            switch (this.newUser) {
                case true:
                    return "Please enter an email and password to sign up";
                case false:
                    return "Please log in to proceed with your purchase";
                default:
                    break;
            }
        },
        lastFour: function () {
            let str = this.cardNumber;
            return str.substr(str.length - 4);
        }
    },
    methods: {
        checkCompleteness: function () {
            switch (this.step) {
                case "stepone":
                    if (this.userEmail && this.userPassword) {
                        this.forwardClickable = true;
                        return true;
                    } else {
                        this.forwardClickable = false;
                        return false;
                    }
                    break;
                case "steptwo":
                    if (this.selectedPlan) {
                        this.forwardClickable = true;
                        return true;
                    } else {
                        this.forwardClickable = false;
                        return false;
                    }
                    break;
                case "stepthree":
                    if (this.cardName && this.cardNumber && this.cardExp && this.cardCvc) {
                        this.forwardClickable = true;
                        return true;
                    } else {
                        this.forwardClickable = false;
                        return false;
                    }
                    break;
                case "stepfour":
                    if (this.cardAddress && this.cardCity && this.cardState && this.cardZip) {
                        this.forwardClickable = true;
                        return true;
                    } else {
                        this.forwardClickable = false;
                        return false;
                    }
                    break;


                default:
                    break;
            }
        },
        selectPlan: function (chosenplan) {
            this.selectedPlan = chosenplan;
            this.checkCompleteness();
        },
        forward: function () {
            switch (this.step) {
                case "stepone":
                    if (this.checkCompleteness()) {
                        this.step = "steptwo";
                        this.forwardClickable = false;
                        this.backVisible = true;
                        this.checkCompleteness();
                    }
                    break;
                case "steptwo":
                    if (this.checkCompleteness()) {
                        this.step = "stepthree";
                        this.forwardClickable = false;
                        this.backVisible = true;
                        this.checkCompleteness();
                    }
                    break;
                case "stepthree":
                    if (this.checkCompleteness()) {
                        this.step = "stepfour";
                        this.forwardClickable = false;
                        this.backVisible = true;
                        this.checkCompleteness();
                    }
                    break;
                case "stepfour":
                    if (this.checkCompleteness()) {
                        this.step = "stepfive";
                        this.forwardClickable = false;
                        this.backVisible = true;
                        this.checkCompleteness();
                    }
                    break;
                default:
                    break;
            }
        },
        backward: function () {
            switch (this.step) {
                case "steptwo":
                    this.step = "stepone";
                    this.forwardClickable = false;
                    this.backVisible = false;
                    this.checkCompleteness();
                    break;
                case "stepthree":
                    this.step = "steptwo";
                    this.forwardClickable = false;
                    this.checkCompleteness();
                    break;
                case "stepfour":
                    this.step = "stepthree";
                    this.forwardClickable = false;
                    this.checkCompleteness();
                    break;
                case "stepfive":
                    this.step = "stepfour";
                    this.forwardClickable = false;
                    this.checkCompleteness();
                    break;

                default:
                    break;
            }

        }
    }
});
              
            
!
999px

Console