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

              
                <body>
<wrapper>
	<div id="dws-slider" class="carousel slide" data-ride="carousel">
		<!--Показатели-->
		<ol class="carousel-indicators">
			<li data-target="#dws-slider" data-slide-to="0" class="active"></li>
			<li data-target="#dws-slider" data-slide-to="1"></li>
			<li data-target="#dws-slider" data-slide-to="2"></li>
		</ol>

		<!--Обертка для слайдов-->
		<div class="carousel-inner" role="listbox">
			<div class="item active"><img src="http://images.vfl.ru/ii/1550087534/5e6a055a/25380414.jpg" alt="Картинка 1">
				<div class="carousel-caption">
					<h3 class="text-uppercase">Адаптивный слайдер</h3>
					<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin aliquet elit lorem, ac congue mi
						eleifend sit amet. Sed dignissim viverra neque a tristique.</p>
				</div>
			</div>
			<div class="item"><img src="http://images.vfl.ru/ii/1550087574/791207f8/25380421.jpg" alt="Картинка 2">
				<div class="carousel-caption">
					<h3 class="text-uppercase">Анимированная прокрутка</h3>
					<p>Aenean cursus imperdiet erat sit amet facilisis. Phasellus congue, sem in consectetur accumsan,
						tellus risus sollicitudin mauris, quis ornare libero magna eget ex.</p>
				</div>
			</div>
			<div class="item"><img src="http://images.vfl.ru/ii/1550087607/8e23d664/25380423.jpg" alt="Картинка 3">
				<div class="carousel-caption">
					<h3 class="text-uppercase">Простая установка</h3>
					<p>Praesent dictum, orci eget eleifend auctor, urna ex dapibus odio, vitae pretium neque massa vel
						neque. Donec et interdum diam. Morbi dignissim vestibulum mi ac viverra.</p>
				</div>
			</div>
		</div>

		<!--Элементы управления-->
		<a class="left carousel-control" href="#dws-slider" role="button" data-slide="prev">
			<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
			<span class="sr-only">Previous</span>
		</a>
		<a class="right carousel-control" href="#dws-slider" role="button" data-slide="next">
			<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
			<span class="sr-only">Next</span>
		</a>
	</div>
</wrapper>
<script>
	$('.carousel').carousel({
		interval: 6000
	})
</script>
</body>
              
            
!

CSS

              
                body {
 margin: 0;
 padding: 0;
 font-family: Arial, sans-serif;
 background-image: url("https://dwstroy.ru/lessons/les3649/demo/img/concrete-texture.png");
}
.carousel-inner h3 {
 background-color: rgba(20, 49, 68, 0.6);
 padding: 20px;
 animation: anime-H3 1.3s ease-out;
}
.carousel-inner p {
 font-size: 18px;
 background-color: rgba(30,29,29, 0.6);
 padding: 20px;
 animation: anime-P 1.6s ease-out;
}

@keyframes anime-H3 {
 from {
  opacity: 0;
  transform: translateX(-2000px);
 }
 to {
  opacity: 1;
  transform: translateX(0);
 }
}
@keyframes anime-P {
 from {
  opacity: 0;
  transform: translateX(2000px);
 }
 to {
  opacity: 1;
  transform: translateX(0);
 }
}
              
            
!

JS

              
                
              
            
!
999px

Console