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="rtl-slider-flex">
	<div class="rtl-slider">
	  <div class="rtl-slider-slide" style="background-image: url('https://images.pexels.com/photos/91216/pexels-photo-91216.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260');">
	  </div>
	  <div class="rtl-slider-slide" style="background-image: url('https://images.pexels.com/photos/375732/pexels-photo-375732.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260');">
	  </div>
	  <div class="rtl-slider-slide" style="background-image: url('https://images.pexels.com/photos/40023/aurora-northern-lights-aurora-borealis-borealis-40023.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260');">
	  </div>
	</div>
	<div class="rtl-slider-nav">
		<div class="rtl-slider-slide" style="background-image: url('https://images.pexels.com/photos/91216/pexels-photo-91216.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260');">
	  </div>
	  <div class="rtl-slider-slide" style="background-image: url('https://images.pexels.com/photos/375732/pexels-photo-375732.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260');">
	  </div>
	  <div class="rtl-slider-slide" style="background-image: url('https://images.pexels.com/photos/40023/aurora-northern-lights-aurora-borealis-borealis-40023.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260');">
	  </div>
	</div>
	<span class="thumb-prev"><i class="fa fa-angle-up fa-lg"></i></span>
	<span class="thumb-next"><i class="fa fa-angle-down fa-lg"></i><span>
</div>
              
            
!

CSS

              
                body
	margin 0
	padding 0
	background linear-gradient(to right, #00b09b, #96c93d);
	
/* Remove for prod */
.rtl-slider-flex
	width 50%
	margin 10em auto
	padding .75em .75em .5em
	background white
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
	
.thumb-prev, .thumb-next
	bottom 12px !important
	right calc(9% + .75em) !important
.thumb-prev
	right calc(0% + .75em) !important
	
/* Necessary styles */
.rtl-slider-flex
	display flex
	flex-direction row
	justify-content center
	box-sizing border-box
	position relative
	
	.rtl-slider
		width 80%
		margin-right 1%
	
	.rtl-slider-nav
		width 19%	
		margin-top -2px
		
		.rtl-slider-slide
			padding-top 90%
			margin-bottom 4px
			opacity .75
			transition all .3s ease
			cursor pointer
			
		.slick-slide.slick-current.slick-active
			.rtl-slider-slide	
				opacity 1
		
	.rtl-slider-slide
		background #0b69b7 url() no-repeat center / cover
		padding-top 56.25%
			
	.thumb-prev, .thumb-next
		position absolute
		bottom 4px
		right 0
		height 88px
		width 9.5%
		text-align center
		display flex
		justify-content center
		align-items center
		cursor pointer
		transition all .3s ease
		background transparent
		
	.thumb-prev
		right 9.5%
              
            
!

JS

              
                $(document).ready(function(){
	$('.rtl-slider').slick({
	  slidesToShow: 1,
	  slidesToScroll: 1,
	  arrows: false,
	  fade: true,
	  asNavFor: '.rtl-slider-nav'
	});
	$('.rtl-slider-nav').slick({
		slidesToShow: 2,
		slidesToScroll: 1,
		vertical: true,
	   asNavFor: '.rtl-slider',
	   centerMode: false,
	   focusOnSelect: true,
		prevArrow: ".thumb-prev",
   	nextArrow: ".thumb-next",
	});
});

 
              
            
!
999px

Console