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

              
                <!-- XXXXX -->
<section class="XXXXX">

    <div class="XXXXX__slider">

        <div class="XXXXX__slide">
            <div class="XXXXX__column">
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Water Heaters
                    </div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Tankless
                        Water Heaters</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Water
                        Filtration</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Water
                        Softeners</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Toilet Repair
                    </div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Toilet
                        Installation</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Faucet Repair
                    </div>
                </a>
            </div>
        </div>

        <div class="XXXXX__slide">
            <div class="XXXXX__column">
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Faucet
                        Installation</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Shower Repair
                    </div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Shower
                        Installation</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Sewer Repair
                    </div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Trenchless
                        Sewer Repair</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Pipe Repair
                    </div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Repiping
                    </div>
                </a>
            </div>
        </div>

        <div class="XXXXX__slide">
            <div class="XXXXX__column">
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Drain
                        Cleaning / Repair</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Rooter
                        Services</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Leak
                        Detection</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Hydro Jetting
                    </div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Pipe Lining
                    </div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Camera
                        Inspections</div>
                </a>
                <a class="XXXXX__list-item">
                    <div class="XXXXX__list-icon">
                        <div class="XXXXX__svg-container">
                            <svg aria-hidden="true" data-prefix="fas" data-icon="check" class="svg-inline--fa fa-check fa-w-16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                <path fill="currentColor" d="m173.898 439.404-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z" />
                            </svg>
                        </div>
                    </div>
                    <div class="XXXXX__label">Gas Lines
                    </div>
                </a>
            </div>
        </div>

    </div>
</section>
<!-- /XXXXX -->
              
            
!

CSS

              
                :root {
    --left-color: #f7941d;
    --right-color: #ffffff;
    --left-color-stop: 20%;
    --item-border-thickness: 3px;
    --item-border-color: #f7941d;
    --item-border-radius: 40px;
    --item-height: 2.85em;
    --icon-percent-width: 50%;
}

.XXXXX__slider {
    position: relative;
}

.XXXXX .slick-slider {
    user-select: text;
}

.XXXXX .slick-list {
    margin: 0 -27px;
}

.XXXXX .slick-track {
    display: flex !important;
}

.XXXXX .slick-slide {
    margin: 0 27px;
    padding: 0 15px;
    height: inherit !important;
}

.XXXXX__list-item {
    background: linear-gradient(
        to right,
        var(--left-color) 0%,
        var(--left-color) var(--left-color-stop),
        var(--right-color) var(--left-color-stop),
        var(--right-color) 100%
    );
    border: var(--item-border-thickness) solid var(--item-border-color);
    border-radius: var(--item-border-radius);
    height: var(--item-height);
    margin-bottom: 1em;
    overflow: hidden;
}

.XXXXX__list-item,
.XXXXX__label,
.XXXXX__svg-container {
    display: flex;
}

.XXXXX__label,
.XXXXX__svg-container {
    align-items: center;
    justify-content: center;
    height: 100%;
}

.XXXXX__list-icon {
    width: var(--left-color-stop);
    display: flex;
    align-items: center;
    justify-content: center;
}

.XXXXX__svg-container {
    width: var(--icon-percent-width);
    color: #ffffff;
}

.XXXXX__svg-container svg {
    max-height: 100%;
    max-width: 100%;
    width: 100%;
}

.XXXXX__label {
    flex-grow: 1;
}

.XXXXX__column {
    margin: 0 auto;
    max-width: 400px;
}

.XXXXX .slick-dots {
    top: calc(100% + 50px);
}

.XXXXX .slick-dots li {
    background-color: #000000;
    border-radius: 50%;
    margin: 0 5px;
    opacity: 0.25;
    width: 25px;
    height: 25px;
}

.XXXXX .slick-dots li.slick-active button:before,
.XXXXX .slick-dots li button:before {
    color: transparent;
}

.XXXXX .slick-dots li:hover,
.XXXXX .slick-dots li:focus {
    opacity: 0.5;
}

.XXXXX .slick-dots li.slick-active {
    opacity: 1 !important;
}

@media (hover: hover) and (pointer: fine) {
    /* dot issue fix */
    .XXXXX .slick-dots li:hover,
    .XXXXX .slick-dots li:focus {
        opacity: 0.5;
    }
}

@media only screen and (min-width: 992px) {
    .XXXXX .slick-track {
        justify-content: center;
        max-width: 1140px;
        margin: 0 auto;
    }
}

              
            
!

JS

              
                $(".XXXXX__slider").slick({
    arrows: false,
    infinite: false,
    dots: true,
    mobileFirst: true,
    responsive: [
        {
            breakpoint: 991,
            settings: {
                dots: false,
                draggable: false,
                slidesToShow: 3
            }
        }
    ]
});

              
            
!
999px

Console