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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

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

              
                <div class="cta-form red-version top-space bottom-space js-cta-form">
    <div class="container">
        <div class="text-center">
            <span class="cta-form__title h2-responsive uppercase montserat-black">main title</span><br>
            <span class="cta-form__subtitle h4-responsive">subtitle</span>
        </div>
        <div class="cta-form__boxies box-layout-3 js-main-boxies">
            <div class="row no-gutters">
                <div class="col-12 col-xl-6 box-fullscreen">
                    <div class="cta-form__box__main clearfix">
                        <div class="cta-form__box__main-icon"></div>
                        <div class="cta-form__box__main-content flex-align">
                            <div class="h3-responsive uppercase montserat-black">123453</div>
                            <div class="cta-form__box__main-content-text">
                                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus exercitationem quae, fuga aliquid! Atque numquam vitae accusamus optio modi eos explicabo, architecto. Nemo cumque nam voluptas sunt, eveniet, adipisci quod?</p>
                            </div>
                            <a href="#" class="btn btn-primary js-order-meeting">click 1</a>
                        </div>
                    </div>
                </div>
                <div class="col-md-6 col-xl-3 cta-form__box__secondary-wrap box-fullscreen item2">
                    <div class="cta-form__box__secondary">
                        <div class="cta-form__box__secondary-content flex-align">
                            <div class="h3-responsive uppercase montserat-black">woohoo</div>
                            <div class="cta-form__box__secondary-content-text">
                                <p>321654687986</p>
                            </div>
                            <a href="#" class="btn btn-secondary js-order-online">click 2</a>
                        </div>
                    </div>
                </div>
                <div class="col-md-6 col-xl-3 cta-form__box__secondary-wrap box-fullscreen item3">
                    <div class="cta-form__box__secondary">
                        <div class="cta-form__box__secondary-content flex-align">
                            <div class="h3-responsive uppercase montserat-black">here you go</div>
                            <div class="cta-form__box__secondary-content-text">
                                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. </p>
                            </div>
                            <a href="#" class="btn btn-secondary js-order-call">clikc 2</a>
                        </div>
                    </div>
                </div>
                
            </div>
        </div>
        <div class="cta-form__form1 js-cta-form1 relative">FORM 1 <a href="#" class="close js-close-1">close</a></div>
        <div class="cta-form__form2 js-cta-form2 relative">FORM 2 <a href="#" class="close js-close-2">close</a></div>
    </div>
</div>
              
            
!

CSS

              
                
              
            
!

JS

              
                const orderMeeting = document.getElementsByClassName('js-order-meeting');
    const orderOnline = document.getElementsByClassName('js-order-online');
    const mainBoxies = document.getElementsByClassName('js-main-boxies');
    const ctaForm1 = document.getElementsByClassName('js-cta-form1');
    const ctaForm2 = document.getElementsByClassName('js-cta-form2');
    const ctaFormClose1 = document.getElementsByClassName('js-close-1');
    const ctaFormClose2 = document.getElementsByClassName('js-close-2');

    const tlMeetingForm = new TimelineMax({paused: true});
    const tlOnlineForm = new TimelineMax({paused: true});
    const tlMeetingFormClose = new TimelineMax({paused: true});
    const tlOnlineFormClose = new TimelineMax({paused: true});

    tlMeetingForm
        .fromTo(mainBoxies, 0.8, { autoAlpha: 1, xPercent: '0' }, { autoAlpha: 0, xPercent: '-50', display: 'none', ease: Power2.easeOut })
        .set(ctaForm1, {display: 'block'})
        .fromTo(ctaForm1, 0.8, { autoAlpha: 0, xPercent: '50' }, { autoAlpha: 1, xPercent: '0', ease: Power2.easeOut });

    tlOnlineForm
        .fromTo(mainBoxies, 0.8, { autoAlpha: 1, xPercent: '0' }, { autoAlpha: 0, xPercent: '-50', display: 'none', ease: Power2.easeOut })
        .set(ctaForm2, {display: 'block'})
        .fromTo(ctaForm2, 0.8, { autoAlpha: 0, xPercent: '50' }, { autoAlpha: 1, xPercent: '0', ease: Power2.easeOut });

    tlMeetingFormClose
        .fromTo(ctaForm1, 0.8, { autoAlpha: 1, xPercent: '0' }, { autoAlpha: 0, xPercent: '-50', display: 'none', ease: Power2.easeOut })
        .set(mainBoxies, {display: 'block'})
        .fromTo(mainBoxies, 0.8, { autoAlpha: 0, xPercent: '-50' }, { autoAlpha: 1, xPercent: '0', ease: Power2.easeOut });

    tlOnlineFormClose
        .fromTo(ctaForm2, 0.8, { autoAlpha: 1, xPercent: '0' }, { autoAlpha: 0, xPercent: '-50', display: 'none', ease: Power2.easeOut })
        .set(mainBoxies, {display: 'block'})
        .fromTo(mainBoxies, 0.8, { autoAlpha: 0, xPercent: '-50' }, { autoAlpha: 1, xPercent: '0', ease: Power2.easeOut });

    function handleClick(item, timeline) {
        $(item).on('click', function(e) {
            e.preventDefault();
            timeline.play();
        });
    }

    handleClick(orderMeeting, tlMeetingForm);
    handleClick(orderOnline, tlOnlineForm);
    handleClick(ctaFormClose1, tlMeetingFormClose);
    handleClick(ctaFormClose2, tlOnlineFormClose);
              
            
!
999px

Console