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

              
                <!-- Services -->
<div id="services" class="services">
  
    <div class="container">
        <div class="services__inner">
            <div class="services__item">
                <img class="services__photo" src="img/services/services-1.jpg" alt="">
                <div class="services__content">
                    <h2 class="services__title">Designing is The CooL LOVE FOR.</h2>
                    <p class="services__text">Our most popular service is our Virtual Receptionist. We know that sometimes it’s something and you middle most this job was posted less than five minutes ago, and we think it’s a good match for you. If you submit a proposal now, you’ll be one of the first candidates. You may even catch the client while they’re still online.</p>
                    <div class="services__btn">Know more</div>
                </div>
            </div>
            <div class="services__item">
                <img class="services__photo" src="img/services/services-2.jpg" alt="">
                <div class="services__content">
                    <h2 class="services__title">cool psd Design</h2>
                    <p class="services__text">Our most popular service is our we know that sometimes it’s something and you middle most..</p>
                    <div class="services__btn">Know more</div>
                </div>
            </div>
            <div class="services__item">
                <img class="services__photo" src="img/services/services-3.jpg" alt="">
                <div class="services__content">
                    <h2 class="services__title">Designing is The Cool</h2>
                    <p class="services__text">Our most popular service is our Virtual Receptionist. We know that...</p>
                    <div class="services__btn">Know more</div>
                </div>
            </div>
            <div class="services__item">
                <img class="services__photo" src="img/services/services-4.jpg" alt="">
                <div class="services__content">
                    <h2 class="services__title">PSD TO HTML KORI</h2>
                    <p class="services__text">We know that sometimes it’s something and you middle most...</p>
                    <div class="services__btn">Know more</div>
                </div>
            </div>
            <div class="services__item">
                <img class="services__photo" src="img/services/services-5.jpg" alt="">
                <div class="services__content">
                    <h2 class="services__title">cool psd Design</h2>
                    <p class="services__text">Our most popular service is our new virtual Receptionist you middle most...</p>
                    <div class="services__btn">Know more</div>
                </div>
            </div>
            <div class="services__item">
                <img class="services__photo" src="img/services/services-6.jpg" alt="">
                <div class="services__content">
                    <h2 class="services__title">Designing is The Cool FOR</h2>
                    <p class="services__text">Our most popular service is our Virtual Receptionist. We know that sometimes it’s something and you middle most..</p>
                    <div class="services__btn">Know more</div>
                </div>
            </div>
        </div> <!-- /.services__inner -->
    </div> <!-- /.container -->
</div> <!-- /.services -->
              
            
!

CSS

              
                body {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #000000;

    -webkit-font-smoothing: antialiased;
    background-color: #fff;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 30px;
    margin: 15px auto;
}

/* Services ================ */


.services {
    background-color: #f9fbfb;
    padding-bottom: 125px;
}

.services__inner {
    display: flex;
    flex-wrap: wrap;
}

.services__item {
    width: 474px;
    height: 422px;

    margin: 0 7px 7px 0;

    position: relative;
    overflow: hidden;
}

.services__item:nth-child(1) {
    width: 652px;
}

.services__item:nth-child(3) {
    width: 652px;
    height: 370px;
}

.services__item:nth-child(4) {
    height: 370px;
}

.services__item:nth-child(5) {
    height: 370px;
}

.services__item:nth-child(6) {
    width: 652px;
    height: 370px;
}

.services__photo {
    min-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.services__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 100%;
    height: 100%;
    opacity: 1;

    padding: 180px 90px 50px 65px;

    color: #ffffff;

    background-color: rgba(46, 46, 46, 0.85);

    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    transition: all 0.5s linear;
}

.content__open {
    padding-top: 60px;
    background-color: #71f5ea;
    color: #000000;


    transition: all 0.5s linear;
}

.services__title {
    font-size: 20px;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    text-transform: uppercase;
}

.services__text {
    font-size: 16px;
    line-height: 1.8;
}

.services__btn {

    font-size: 18px;
    width: 140px;
    background: url("img/strelka.png") right no-repeat;
    text-transform: uppercase;
    height: 17px;

    cursor: pointer;
}

.services__btn-close {
    font-size: 0;
    background: url("https://c7.hotpng.com/preview/313/595/595/x-mark-check-mark-cross-sign-clip-art-x-mark.jpg") left no-repeat;
    width: 17px;
    color: transparent;
}
              
            
!

JS

              
                $(function () {

    var servicesContent = $('.services__content');
    var knowMore = $('.services__btn');
 
  
    knowMore.on('click', function (event) {

        servicesContent.toggleClass('content__open');
        knowMore.toggleClass('services__btn-close');
    });
});
              
            
!
999px

Console