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 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="bg-codeblocks">
	<div class="main-box-codeblocks">
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					<nav aria-label="breadcrumb">
						<ol class="breadcrumb">
							<li class="breadcrumb-item"><a href="#">Home</a></li>
							<li class="breadcrumb-item"><a href="#">Products</a></li>
							<li class="breadcrumb-item active" aria-current="page">Product Name</li>
						</ol>
					</nav>
				</div>
			</div>

			<div class="row">
				<div class="col-md-6">
					<div class="box-image-codeblocks">
						<!-- Swiper -->
						<div class="swiper-container gallery-top">
							<div class="swiper-wrapper">
								<div class="swiper-slide" >
									<div class="product-image">
										<img src="https://placehold.it/1080" alt="" class="img-fluid">
									</div>
								</div>
								
								<div class="swiper-slide" >
									<div class="product-image">
										<img src="https://placehold.it/1080" alt="" class="img-fluid">
									</div>
								</div>
								
								<div class="swiper-slide" >
									<div class="product-image">
										<img src="https://placehold.it/1080" alt="" class="img-fluid">
									</div>
								</div>
								
							</div>
							<!-- Add Arrows -->
							<div class="swiper-button-next swiper-button-white"></div>
							<div class="swiper-button-prev swiper-button-white"></div>
						</div>
						<div class="swiper-container gallery-thumbs">
							<div class="swiper-wrapper">
								<div class="swiper-slide">
									<img src="https://placehold.it/1080" alt="" class="img-fluid">
								</div>
								
								<div class="swiper-slide">
									<img src="https://placehold.it/1080" alt="" class="img-fluid">
								</div>
								
								<div class="swiper-slide">
									<img src="https://placehold.it/1080" alt="" class="img-fluid">
								</div>
								
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<h2 class="text-bold text-strong">This is the Product Title</h2>
					<span class="seller-name-codeblocks">
						<h5>by <a href="#">Codeblocks</a></h5>

					</span>
					<span>
						<h1>$30
							<span class="currency-codeblocks">
								<small>USD</small>

							</span></h1>
					</span>
					<span class="description-codeblocks">

						<p>
							<strong>Description:</strong> <br>
							<span class="text-muted">
								Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis, voluptas ratione! Numquam corrupti atque amet accusantium, perspiciatis totam alias qui ea cum tempora et sit ex nihil doloremque recusandae nesciunt.
							</span>
						</p>
					</span>

					<span class="buy-form-codeblocks">
						<form action="" class="form-inline">
							<label for=""> Quantity <br>
								<select name="quantity" id="quantity-codeblocks" class="form-control mx-2">
									<option value="0">0</option>
									<option value="1">1</option>
									<option value="2">2</option>
									<option value="3">3</option>
									<option value="4">4</option>
									<option value="5">5</option>
								</select>
							</label>

							<button class="btn btn-primary btn-lg btn-lg">Add To Cart</button>
						</form>
					</span>
					<span class="extras-codeblocks ">
						<ul class="nav nav-tabs my-2" id="myTab" role="tablist">
							<li class="nav-item" role="presentation">
								<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Full Description</a>
							</li>
							<li class="nav-item" role="presentation">
								<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Comments</a>
							</li>
							<li class="nav-item" role="presentation">
								<a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false">Share</a>
							</li>
						</ul>
						<div class="tab-content" id="myTabContent">
							<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
								<h5>Full Description:</h5>
								<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quasi nostrum quam accusantium dolore ipsa beatae, autem illum libero, repudiandae, nihil cupiditate excepturi sequi eveniet? Incidunt maiores veniam atque cumque placeat!</p>

								<p>
									Lorem ipsum dolor sit amet consectetur adipisicing elit. Porro consectetur quibusdam nulla officia tempore animi saepe perspiciatis harum inventore corrupti? Quidem odit consequatur fugiat earum odio explicabo! Quam, quisquam dolorum.
								</p>
							</div>
							<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
								<div class="media">
									<img src="http://placehold.it/64" class="mr-3" alt="...">
									<div class="media-body">
										<h5 class="mt-0">Kalvin Harris <br> <small class="review-coment">Good Product</small></h5>
										Cras sit amet nibh libero, in gravida nulla. Nulla vel metus scelerisque ante sollicitudin. Cras purus odio, vestibulum in vulputate at, tempus viverra turpis. Fusce condimentum nunc ac nisi vulputate fringilla. Donec lacinia congue felis in faucibus.
									</div>
								</div>

							</div>
							<div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">
								<h5>Compartir</h5>
								<div id="share"></div>
							</div>
						</div>
					</span>

				</div>
			</div>

			<div class="row">

			</div>
		</div>
	</div>
</div>
              
            
!

CSS

              
                .bg-codeblocks {
	position: absolute;
	background: #8E2DE2;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #4A00E0, #8E2DE2);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #4A00E0, #8E2DE2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
width: 100%;
position: fixed;
height: 100vh;

}

.main-box-codeblocks	{
	background-color: #FAFAFA;
	border-radius: 20px;
	padding: 5em 2em;
	width:90%;
	height: auto;
	position: relative;
	display: block;
	box-shadow: 0 0px 20px 2px rgba(0,0,0,0.5);
	margin: 3em auto;
	
}


/* Swiper Slider */
.swiper-container {
      width: 100%;
      height: 300px;
      margin-left: auto;
      margin-right: auto;
    }

    .swiper-slide {
      background-size: cover;
      background-position: center;
    }

    .gallery-top {
      height: 80%;
      width: 100%;
    }

    .gallery-thumbs {
      height: 20%;
      box-sizing: border-box;
      padding: 10px 0;
    }

    .gallery-thumbs .swiper-slide {
      height: 100%;
      opacity: 0.4;
    }

    .gallery-thumbs .swiper-slide-thumb-active {
      opacity: 1;
    }

              
            
!

JS

              
                // Example:
$(document).ready(function(){
  $('.product-image').zoom({url: 'https://placehold.it/1080'});
});

var galleryThumbs = new Swiper('.gallery-thumbs', {
      spaceBetween: 10,
      slidesPerView: 4,
      freeMode: true,
      watchSlidesVisibility: true,
      watchSlidesProgress: true,
    });
    var galleryTop = new Swiper('.gallery-top', {
      spaceBetween: 10,
      navigation: {
        nextEl: '.swiper-button-next',
        prevEl: '.swiper-button-prev',
      },
      thumbs: {
        swiper: galleryThumbs
      }
    });


$("#share").jsSocials({
            shares: ["email", "twitter", "facebook", "googleplus", "linkedin", "pinterest", "stumbleupon", "whatsapp"]
        });
              
            
!
999px

Console