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

              
                <section class="my-10">
	<h2 class="carousel-3D-swiper-title">Lorem ipsum dolor sit amet</h2>
	<section class="carousel-3D-swiper-section">
		<!-- Slider main container -->
		<div class="carousel-3D-swiper">
			<!-- Additional required wrapper -->
			<div class="swiper-wrapper" style="max-width: 1200px;">
				<!-- Slides -->
				<div class="swiper-slide">
					<div class="image-wrapper aspect-video">
						<img class="aspect-video" src="https://images.pexels.com/photos/708440/pexels-photo-708440.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=800&w=450" alt="">
					</div>
					<div class="details">
						<h3>Lorem ipsum dolor</h3>
						<span>Web Designer</span>
						<p>Lorem ipsum dolor</p>
					</div>
				</div>
				<div class="swiper-slide">
					<div class="image-wrapper aspect-video">
						<img class="aspect-video" src="https://images.pexels.com/photos/1239291/pexels-photo-1239291.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=800&w=450" alt="">
					</div>
					<div class="details">
						<h3>Lorem ipsum dolor</h3>
						<span>Web Designer</span>
					</div>
				</div>
				<div class="swiper-slide">
					<div class="image-wrapper aspect-video">
						<img class="aspect-video" src="https://images.pexels.com/photos/445109/pexels-photo-445109.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=800&w=450" alt="">
					</div>
					<div class="details">
						<h3>Lorem ipsum dolor</h3>
						<span>Web Designer</span>
					</div>
				</div>
				<div class="swiper-slide">
					<div class="image-wrapper aspect-video">
						<img class="aspect-video" src="https://images.pexels.com/photos/8422523/pexels-photo-8422523.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=800&w=450" alt="">
					</div>
					<div class="details">
						<h3>Lorem ipsum dolor</h3>
						<span>Web Designer</span>
					</div>
				</div>
				<div class="swiper-slide">
					<div class="image-wrapper aspect-video">
						<img class="aspect-video" src="https://images.pexels.com/photos/445109/pexels-photo-445109.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=800&w=450" alt="">
					</div>
					<div class="details">
						<h3>Lorem ipsum dolor</h3>
						<span>Web Designer</span>
					</div>
				</div>
				<div class="swiper-slide">
					<div class="image-wrapper aspect-video">
						<img class="aspect-video" src="https://images.pexels.com/photos/39866/entrepreneur-startup-start-up-man-39866.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=800&w=450" alt="">
					</div>
					<div class="details">
						<h3>Lorem ipsum dolor</h3>
						<span>Web Designer</span>
					</div>
				</div>
			</div>
			<!-- pagination -->
			<div class="swiper-button-prev"></div>
			<div class="swiper-button-next"></div>
			<div class="swiper-pagination" style="bottom: -50px;"></div>
		</div>
	</section>
</section>
              
            
!

CSS

              
                .carousel-3D-swiper-section {
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	color: #000;
	margin: 0;
	padding: 0;
	max-width: 1200px;
	margin: auto;
	overflow: hidden;
	min-height: 500px;
}

.carousel-3D-swiper-title {
	text-align: center;
	font-size: 3rem;
	color: orangered;
}

.carousel-3D-swiper .swiper-slide {
	position: relative;
}

.carousel-3D-swiper .image-wrapper {
	overflow: hidden;
	//@apply aspect-video;
	max-height: 225px;
}

.carousel-3D-swiper .image-wrapper img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 225px;
	-o-object-fit: cover;
	object-fit: cover;
	border-radius: 8px;
	-webkit-box-reflect: below 5px -webkit-linear-gradient(bottom, rgba( 255, 0, 0,	0.1 ) 0%, transparent 32px, transparent 100%);
}

.details {
	padding: 25px 20px;
	font-weight: 600;
	text-align: center;
	background-color: #fff;
}

.details span {
	display: block;
	font-size: 16px;
	color: #f44336;
}

.details h3 {
	margin: 0;
	font-weight: bold;
	font-size: 24px;
	line-height: 1.1;
}

.details p {
	margin: 8px 0 0;
	opacity: 0.65;
	font-size: 14px;
	font-weight: 500;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.carousel-3D-swiper-section .swiper-pagination-bullet {
	margin: 0 4px;
  width: 16px;
  height: 16px;
	z-index: 50;
}

.carousel-3D-swiper-section .swiper-pagination-bullet-active {
	opacity: 1;
	background: orange;
}

              
            
!

JS

              
                  const carousel3Dswiper = new Swiper(".carousel-3D-swiper", {
    loop: true,
    effect: "coverflow",
    grabCursor: true,
    centeredSlides: true,
    slidesPerView: 3,
    coverflowEffect: {
      rotate: 0,
      stretch: 0,
      depth: 350,
      modifier: 1,
      slideShadows: true
    },
		 navigation: {
      nextEl: ".swiper-button-next",
      prevEl: ".swiper-button-prev",
    },
    pagination: {
      el: ".swiper-pagination"
    }
  });
              
            
!
999px

Console