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="container">
  <div class="slick-carousel-wrap">
            <div class="row slick-carousel js-hotels-slider">
                <div class="col-3 slick-carousel-item">
                    <a href="#" class="tour-card">
                        <div class="tour-card__thumbnail responsive-thumbnail">
                            <img class="" src="https://via.placeholder.com/150

C/O https://placeholder.com/">
                            
                            <svg class="radial-progress-bar radial-progress-bar-2" width="58" height="58"
                                 viewbox="0 0 58 58"
                                 style="stroke-dasharray: 109.2, 140">
                                <use href="#progressbar"></use>
                                <text transform="matrix(1 0 0 1 12.1257 33.9479)" fill="#0D0F0F">3.9/5</text>
                            </svg>
                        </div>
                        <div class="tour-card__body hotels-content">

                            <div class="hotels-content__heading">
                                Emre Hotel 4&nbsp;<svg class="svg-icon svg-icon--rating" width="10" height="8">
                                    <use xmlns:xlink="http://www.w3.org/1999/xlink"
                                         xlink:href="Images/icons-search.svg#rating"></use>
                                </svg>
                            </div>
                            <div>
                                Турция , Мармарис
                            </div>
                            <div class="hotels-content__price">
                                от 17 695 <span>грн/чел</span>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-3 slick-carousel-item">
                    <a href="#" class="tour-card">
                        <div class="tour-card__thumbnail responsive-thumbnail">
                            <img src="https://via.placeholder.com/150

C/O https://placeholder.com/">
                            <div class="lds-spinner"></div>
                        </div>
                        <div class="tour-card__body hotels-content">

                            <div class="hotels-content__heading">
                                Rixos Premium Tekirova 3&nbsp;<svg class="svg-icon svg-icon--rating" width="10"
                                                                   height="8">
                                    <use xmlns:xlink="http://www.w3.org/1999/xlink"
                                         xlink:href="Images/icons-search.svg#rating"></use>
                                </svg>
                            </div>
                            <div>
                                Турция , Текирова
                            </div>
                            <div class="hotels-content__price">
                                от 19 500 <span>грн/чел</span>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-3 slick-carousel-item">
                    <a href="#" class="tour-card">
                        <div class="tour-card__thumbnail responsive-thumbnail">
                            <img class="objectFitCover lazyload"
                                 src="https://via.placeholder.com/150

C/O https://placeholder.com/">
                            <div class="lds-spinner"></div>
                        </div>
                        <div class="tour-card__body hotels-content">

                            <div class="hotels-content__heading">
                                Tui Fun &amp; Sun Miarosa Ghazal Resort 5&nbsp;<svg
                                        class="svg-icon svg-icon--rating" width="10" height="8">
                                    <use xmlns:xlink="http://www.w3.org/1999/xlink"
                                         xlink:href="Images/icons-search.svg#rating"></use>
                                </svg>
                            </div>
                            <div>
                                Турция , Кемер
                            </div>
                            <div class="hotels-content__price">
                                от 22 489 <span>грн/чел</span>
                            </div>
                        </div>
                    </a>
                </div>
                <div class="col-3 slick-carousel-item">
                    <a href="#" class="tour-card">
                        <div class="tour-card__thumbnail responsive-thumbnail">
                            <img class="objectFitCover lazyload"
                                 src="https://via.placeholder.com/150

C/O https://placeholder.com/">
                            <div class="lds-spinner"></div>
                        </div>
                        <div class="tour-card__body hotels-content">

                            <div class="hotels-content__heading">
                                Florida Park Hotel 5&nbsp;<svg class="svg-icon svg-icon--rating" width="10"
                                                               height="8">
                                    <use xmlns:xlink="http://www.w3.org/1999/xlink"
                                         xlink:href="Images/icons-search.svg#rating"></use>
                                </svg>
                            </div>
                            <div>
                                Испания , Коста Брава
                            </div>
                            <div class="hotels-content__price">
                                от 18 100 <span>грн/чел</span>
                            </div>
                        </div>
                    </a>
                </div>
              <div class="col-3 slick-carousel-item">
                    <a href="#" class="tour-card">
                        <div class="tour-card__thumbnail responsive-thumbnail">
                            <img class="objectFitCover lazyload"
                                 src="https://via.placeholder.com/150

C/O https://placeholder.com/">
                            <div class="lds-spinner"></div>
                        </div>
                        <div class="tour-card__body hotels-content">

                            <div class="hotels-content__heading">
                                Florida Park Hotel 5&nbsp;<svg class="svg-icon svg-icon--rating" width="10"
                                                               height="8">
                                    <use xmlns:xlink="http://www.w3.org/1999/xlink"
                                         xlink:href="Images/icons-search.svg#rating"></use>
                                </svg>
                            </div>
                            <div>
                                Испания , Коста Брава
                            </div>
                            <div class="hotels-content__price">
                                от 18 100 <span>грн/чел</span>
                            </div>
                        </div>
                    </a>
                </div>
            </div>
            <div class="slick-navigation">
                <div class="js-dots"></div>
            </div>
        </div>
</div>

              
            
!

CSS

              
                $rem-baseline: 16px !default;
$rem-fallback: false !default;
$rem-px-only: false !default;

@function rem-separator($list, $separator: false) {
  @if $separator == "comma" or $separator == "space" {
    @return append($list, null, $separator);
  }

  @if function-exists("list-separator") == true {
    @return list-separator($list);
  }

  // list-separator polyfill by Hugo Giraudel (https://sass-compatibility.github.io/#list_separator_function)
  $test-list: ();
  @each $item in $list {
    $test-list: append($test-list, $item, space);
  }

  @return if($test-list == $list, space, comma);
}

@mixin rem-baseline($zoom: 100%) {
  font-size: $zoom / 16px * $rem-baseline;
}

@function rem-convert($to, $values...) {
  $result: ();
  $separator: rem-separator($values);

  @each $value in $values {
    @if type-of($value) == "number" and unit($value) == "rem" and $to == "px" {
      $result: append($result, $value / 1rem * $rem-baseline, $separator);
    } @else if type-of($value) == "number" and unit($value) == "px" and $to == "rem" {
      $result: append($result, $value / $rem-baseline * 1rem, $separator);
    } @else if type-of($value) == "list" {
      $value-separator: rem-separator($value);
      $value: rem-convert($to, $value...);
      $value: rem-separator($value, $value-separator);
      $result: append($result, $value, $separator);
    } @else {
      $result: append($result, $value, $separator);
    }
  }

  @return if(length($result) == 1, nth($result, 1), $result);
}

@function rem($values...) {
  @if $rem-px-only {
    @return rem-convert(px, $values...);
  } @else {
    @return rem-convert(rem, $values...);
  }
}

@mixin rem($properties, $values...) {
  @if type-of($properties) == "map" {
    @each $property in map-keys($properties) {
      @include rem($property, map-get($properties, $property));
    }
  } @else {
    @each $property in $properties {
      @if $rem-fallback or $rem-px-only {
        #{$property}: rem-convert(px, $values...);
      }
      @if not $rem-px-only {
        #{$property}: rem-convert(rem, $values...);
      }
    }
  }
}




@charset "UTF-8";

// Default Variables

// Slick icon entity codes outputs the following
// "\2190" outputs ascii character "←"
// "\2192" outputs ascii character "→"
// "\2022" outputs ascii character "•"

$slick-font-path: "./fonts/" !default;
$slick-font-family: "slick" !default;
$slick-loader-path: "./" !default;
$slick-arrow-color: white !default;
$slick-dot-color: black !default;
$slick-dot-color-active: $slick-dot-color !default;
$slick-prev-character: "\2190" !default;
$slick-next-character: "\2192" !default;
$slick-dot-character: "\2022" !default;
$slick-dot-size: 6px !default;
$slick-opacity-default: 0.75 !default;
$slick-opacity-on-hover: 1 !default;
$slick-opacity-not-active: 0.25 !default;

@function slick-image-url($url) {
  @if function-exists(image-url) {
    @return image-url($url);
  } @else {
    @return url($slick-loader-path + $url);
  }
}

@function slick-font-url($url) {
  @if function-exists(font-url) {
    @return font-url($url);
  } @else {
    @return url($slick-font-path + $url);
  }
}

.slick-list {
  max-width: 100%;
}

.slick-carousel {
  &.slick-initialized {
    display: block;
  }
  .slick-track {
   margin-left: 0;
  }
  .slick-slide {
    outline: none;
    img {
      max-width: 100%;
    }
  }

  &-flex {
    .slick-track, .slick-list {
      display: flex;
    }
    .slick-slide, .slick-slide > div {
      display: flex;
    }
    .slick-carousel-item {
      display: flex !important;
    }

  }
}


.tour-gallery-nav, .slick-carousel, .slick-carousel-wrap {
  .slick-arrow {
    position: absolute;
    display: block;
    width: 30px;
    font-size: 0px;
    cursor: pointer;
    background: transparent;
    color: transparent;
    top: 0;
    bottom: 0;
    padding: 0;
    border: none;
    outline: none;
    text-align: center;
    z-index: 1;
    &.slick-disabled:before {
      opacity: $slick-opacity-not-active;
    }
    &:before {
      content: ' ';
      display: block;
      width: 24px;
      height: 24px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    &:hover, &:focus {
      outline: none;
      background: transparent;
      color: transparent;
    }
  }

  .slick-prev {
    left: 0px;
    [dir="rtl"] & {
      left: auto;
      right: -25px;
    }
    &:before {
      content: $slick-prev-character;
      [dir="rtl"] & {
        content: $slick-next-character;
      }
    }
  }

  .slick-next {
    right: 0px;
    [dir="rtl"] & {
      left: -25px;
      right: auto;
    }
    &:before {
      transform: rotate(180deg) translate(50%, 50%);
    }
  }
}

.slick-carousel, .slick-carousel-wrap {
  .slick-dots {
    list-style: none;
    display: block;
    text-align: center;
    padding: 0;
    margin: 0;
    width: 100%;
    li {
      position: relative;
      display: inline-block;
      height: rem(20px);
      width: rem(20px);
      margin: 0 2px;
      padding: 0;
      cursor: pointer;
      button {
        border: 0;
        background: transparent;
        display: block;
        height: rem(20px);
        width: rem(20px);
        outline: none;
        line-height: 0px;
        font-size: 0px;
        color: transparent;
        padding: rem(4px);
        cursor: pointer;
        &:hover, &:focus {
          outline: none;
        }
        &:hover {
          &:before {
            background: #387c89;
          }
        }

        &:before {
          position: absolute;
          top: 50%;
          left: 50%;
          margin-top: rem(-4px);
          margin-left: rem(-4px);
          content: "";
          width: rem(8px);
          height: rem(8px);
          display: inline-block;
          font-size: $slick-dot-size;
          line-height: 20px;
          text-align: center;
          color: $slick-dot-color;
          border-radius: 50%;
          background: #bed8dc;
          -webkit-font-smoothing: antialiased;
          -moz-osx-font-smoothing: grayscale;
        }
      }
      &.slick-active button:before {
        background: #387c89;
      }
    }
  }
  .slick-arrow {
    &:before {
      border-radius: 50%;
    }
    @media(hover: hover) and (pointer: fine) {
      &:hover {
        &:before {
          background-color: #363f4c !important;
        }
      }
    }
  }
}

.slick-carousel-wrap {
  position: relative;
  .slick-dotted {
    margin-bottom: 10px;
  }
  .slick-dotted ~ .slick-navigation .slick-arrow {
    bottom: 34px;
  }
}

@media screen and (min-width: 1280px) {
  .slick-carousel, .slick-carousel-wrap {
    position: relative;
    .slick-prev {
      left: -32px;
    }
    .slick-next {
      right: -32px;
    }
  }
}

@media screen and (max-width: 1279px) {
  .slick-carousel-wrap {
    .slick-arrow {
      position: relative;
      margin-top: 6px;
    }
    .slick-navigation {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}

.slick-carousel .slick-prev:before,
.slick-carousel .slick-next:before,
.slick-carousel-wrap .slick-prev:before,
.slick-carousel-wrap .slick-next:before {
  background: #4b5669 url('data:image/svg+xml;charset=utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="1 0 24 24"><path fill="#ffffff" d="M13.996 17a.995.995 0 0 1-.709-.294L9.294 12.71a1.001 1.001 0 0 1 0-1.42l3.993-3.996a1.001 1.001 0 0 1 1.419.001c.39.391.39 1.028 0 1.419L11.422 12l3.285 3.286a1 1 0 0 1-.002 1.42.991.991 0 0 1-.709.294z"/></svg>') center no-repeat;
}

.hot-tours__col {
  margin-bottom: 20px;
  .tour-card {
    height: 100%;
  }
}
.hot-tours {
  margin-left: -10px;
  margin-right: -10px;
  .tour-card {
    position: relative;
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    &:hover {
      box-shadow: 0 2px 10px 0 rgba(176, 176, 176, 0.6);
      z-index: 1;
    }
  }
}

.tour-card {
  display: flex;
  flex-direction: column;
  color: #4b5669;
  &:hover {
    color: #4b5669;
    text-decoration: none;
  }
  &__thumbnail {
    position: relative;
    height: 180px;
    .lds-spinner {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 2;
    }
    img {    
      border-radius: 4px;
      width: 100%;
      height: 100%;      
    }

   
  }
  &__body {
    padding-top: 9px;
    //line-height: 1.38;
    font-size: 13px;
    flex-grow: 1;
  }
  &__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    .btn-brand {
      min-width: 120px;
      font-size: 13px;
      line-height: 14px;
    }
  }
  &__price {
    
    font-weight: 600;
   
    font-size: 12px;
    span {
      font-size: 24px;
      line-height: 31px;
    }
  }
  .radial-progress-bar {
    position: absolute;
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
    border-radius: 50%;
    fill: #ffffff;
    box-shadow: 0 1px 8px 1px rgba(0, 0, 0, 0.2);
  }
}

.hot-content {
  line-height: 1.38;
  &__heading {
    margin: 4px 0;
    font-weight: 600;
    line-height: 18px;   
  }
}

.hotels-content {
  &__rating {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;   
    font-weight: 600;
    
  }
  &__heading {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;  
  }

}

.rating {
  display: flex;
}






              
            
!

JS

              
                $('.js-hotels-slider').each(function () {
                var slider = $(this);
                slider.slick({
                    slide: '.slick-carousel-item',
                    infinite: true,
                    slidesToShow: 4,
                    slidesToScroll: 4,
                    rows: 0,
                    dots: true,
                    appendArrows: slider.parent().find('.slick-navigation'),
                    appendDots: slider.parent().find('.js-dots'),
                    responsive: [{
                        breakpoint: 1200,
                        settings: {
                            slidesToShow: 2,
                            slidesToScroll: 2
                        }
                    }, {
                        breakpoint: 768,
                        settings: {
                            slidesToShow: 1,
                            slidesToScroll: 1,
                            dots: true
                        }
                    }]
                });
            });
              
            
!
999px

Console