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

              
                <div class="grid-container fluid">
  <div class="grid-x">
    <div class="medium-12 large-9 cell">
      <!-- ||*** COUNTER ***|| -->
      <span id="count" class="paging-info"></span>  
      <!-- ||*** SLIDESHOW CONTAINER ***|| -->
        <div id="client-testimonials" class="slideshow">
          
         <!-- ||*** SLIDE 01 ***|| -->
         <div class="content-wrapper">
           <div class="avatar">
          <img src="http://i102.photobucket.com/albums/m104/GovernorFancyPants/Codepen/steve_jobs_zpsb8899f6c.png" alt="" />             </div>
            <div class="slide-content">
              <cite>But then again, cat knows their gin after solutions with holes. My height's hour eleviated our home's chain quickly. His forest's leaf analyzed the insect's support indeed. One's gas defines her past among shoes within monkeys. The cap's sky refined one's blue store softly. His paper said her fingernail's ripped sight grandly, very.</cite>
              <name class="author"><p>&ndash; Anonymous Person, Creative Director, Acme Studios</p></name>
            </div>
    
 </div><!-- // SLIDE 01 -->
          
<!-- ||*** SLIDE 02 ***|| -->
<div class="content-wrapper">
  <div class="avatar">
          <img src="http://i102.photobucket.com/albums/m104/GovernorFancyPants/Codepen/steve_jobs_zpsb8899f6c.png" alt="" />             </div>
  <div class="slide-content">
    <cite>Equally, their rotten coffee loves pond of salad. Exactly, my phone accounts the outline unto lists. A focal sauce attaches one's general dilemma off wars at glasses. His employee stole her valley's shiny scion swiftly. Harshly, their pitch refines my nobody of stills under homes.</cite>
    <name class="author"><p>&ndash; Anonymous Person, VP Information Technology, Acme Industries</p></name>
   </div><!-- // SLIDE 02 -->
  
</div><!-- // SLIDESHOW CONTAINER -->

<!-- ||*** CUSTOM SLIDESHOW NAV ***|| -->
     <div class="slick-pagination">
       <span class="slick-prev"><i class="fa fa-angle-left" aria-hidden="true"></i></span>
       <span class="slick-next"><i class="fa fa-angle-right" aria-hidden="true"></i></span>
    </div><!-- // CUSTOM SLIDESHOW NAV  -->
    </div>
  </div>
</div>
              
            
!

CSS

              
                @mixin icon {
  font-family: FontAwesome;
  font-size: 16px;
  line-height: 16px;
  position: absolute;
  top: 8px;
  left: 6px;
}

//Variables
$color-icon-alternate: rgba(255,255,255,.2);
$light: #fefefe;

body {
  font-family: helvetica, arial, sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  background-color: #333;
  color: #fff;
  font-weight: 100;
  margin: 60px;
}
.cell {
  position: relative;
}
#count {
    position: absolute;
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: 3em;
    line-height: 3em;
    padding: 0 1em;
    background-color: rgba(155, 89, 182, 0.84);
    z-index: 10;
    color: $light;
    text-align: center;
    font-weight: 400;
}
#client-testimonials {
	box-shadow: 0 30px 20px -10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border-radius: 8px;
    background-color: #2c3e50;
    height: 30rem;
    
    &:before {
      content: "";
      position: absolute;
      bottom: 0;
      height: 8px;
      width: 100%;
      background-color: rgba(0,0,0,.84);
   }
   .content-wrapper {
		position: relative;
		top: 0;
		padding-top: 3rem;
		height: 27em;
		transition: transform 1s ease;
  
		.slide-content {
			position: relative;
			padding: 3rem;
			top: 100px;
	
			cite {
				position: relative;
				font-size: 1rem;
				line-height: 1.4;
				margin-bottom: .5rem;
				font-style: normal;
        color: $light;
				
					&:before {
						content: "\f10d";
						@include icon;
						color: $color-icon-alternate;
						font-size: 32px;
						top: -2rem;
						left: -1rem;
					}
			}
			name {
				color: rgba(254,254,254,.7);
				p {
					font-size: rem-calc(13);
					line-height: 1.2;
					font-style: italic;
					color: rgba(254,254,254,.7);
					padding: 0;
				}
			}
		}
	}
}
/* ---- OWL NAVIGATION ---- */
.slick-pagination {
	position: absolute;
	bottom: 0;
	height: 4em;
	width: 100%;
	padding: 1em;
	z-index: 10;
  
	.slick-prev,
	.slick-next {
	    height: 2rem;
	    width: 2rem;
	    border: 2px solid rgba(255, 255, 255, 0.2);
	    border-radius: 100%;
	    transition: border-color 0.2s ease;
	    cursor: pointer;
	    text-align: center;
	    color: $light;
	
	    &:hover {
	      border: 2px solid rgba(255, 255, 255, 0.5);
	    }
	
	    i {
	      position: relative;
	      top: 2px;
	      left: 0;
	    }
	}
  .slick-prev {
      position: absolute;
      float: left;
      left: 1rem;
      width: 2rem;
      
      &:before {
        top: 7px;
        left: 13px;
      }
      i {
	      left: -1px;
      }
    }
    .slick-next {
      float: right;
      position: absolute;
      right: 1em;
      
      &:before {
        top: 7px;
        left: 13px;
      }
      i {
	      right: -1px;
      }
    }
}

.avatar {
	position: absolute;
	width: 100px;
	top: 60px;
	text-align: center;
	margin: auto;
	left: 0;
	right: 0;	
	
		img {
			width: 100px;
			height: 100px;
			border: 4px solid #fff;
			border-radius: 100%;
			transition: opacity 2s ease;
		}
}
              
            
!

JS

              
                 var $status = $('.paging-info');
 var $slickElement = $('.slideshow');

    // THIS COUNTS AND DISPLAYS THE DYNAMIC SLIDE COUNT
    $slickElement.on('init reInit afterChange', function (event, slick, currentSlide, nextSlide) {
        //currentSlide is undefined on init -- set it to 0 in this case (currentSlide is 0 based)
        var i = (currentSlide ? currentSlide : 0) + 1;
        $status.text(i + ' of ' + slick.slideCount);
    });

    // SLICK SLIDER FUNCTION
    $slickElement.slick({
        slide: '.content-wrapper',
        autoplay: false,
        arrows: false, // important for custom navigation
        dots: false
    });

// CREATES THE CUSTOM SLIDER NAVIGATION CLICK FUNCTIONS
$('.slick-prev').click(function(){
  $slickElement.slick('slickPrev');
})

$('.slick-next').click(function(){
  $slickElement.slick('slickNext');
})
              
            
!
999px

Console