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

              
                <header class="header">
		<div class="main-container">
			<nav class="demos-nav">
				<a href="#demo1" class="demos-nav__link">demo1</a>
				<a href="#demo2" class="demos-nav__link">demo2</a>
				<a href="#demo3" class="demos-nav__link">demo3</a>
				<a href="#demo4" class="demos-nav__link">demo4</a>
			</nav>
		</div>
	</header>
	<section class="section">
		<h2 class="title">Demo 1</h2>
		<div id="demo1" class="cssui-slider cssui-slider_mod--animation-3dslide-to-left">
			<input id="cssui-slider-control-label1" type="radio" class="cssui-slider__switch" name="cssui-slider-control" checked>
			<label for="cssui-slider-control-label1" class="cssui-slider__control">open first slide</label>
			<input id="cssui-slider-control-label2" type="radio" class="cssui-slider__switch" name="cssui-slider-control">
			<label for="cssui-slider-control-label2" class="cssui-slider__control">open second slide</label>
			<input id="cssui-slider-control-label3" type="radio" class="cssui-slider__switch" name="cssui-slider-control">
			<label for="cssui-slider-control-label3" class="cssui-slider__control">open third slide</label>
			<div class="cssui-slider__slides">
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/lily.jpg" alt="Foto of Moreen Gill">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Moreen Gill
									<span class="welcome__label">I'm a Web-Designer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/stas.jpg" alt="Foto of Stas Melnikov">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Stas Melnikov
									<span class="welcome__label">I'm a UI developer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/ksenia.jpg" alt="Foto of Tiffani Bryana">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Tiffani Bryana
									<span class="welcome__label">I'm a Graphic Designer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<section class="section">
		<h2 class="title">Demo 2</h2>
		<div id="demo2" class="cssui-slider cssui-slider_mod--animation-3dscale">
			<input id="cssui-slider-control-label4" type="radio" class="cssui-slider__switch" name="cssui-slider-control2" checked>
			<label for="cssui-slider-control-label4" class="cssui-slider__control">open first slide</label>
			<input id="cssui-slider-control-label5" type="radio" class="cssui-slider__switch" name="cssui-slider-control2">
			<label for="cssui-slider-control-label5" class="cssui-slider__control">open second slide</label>
			<input id="cssui-slider-control-label6" type="radio" class="cssui-slider__switch" name="cssui-slider-control2">
			<label for="cssui-slider-control-label6" class="cssui-slider__control">open third slide</label>
			<div class="cssui-slider__slides">
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/lily.jpg" alt="Foto of Moreen Gill">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Moreen Gill
									<span class="welcome__label">I'm a Web-Designer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/stas.jpg" alt="Foto of Stas Melnikov">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Stas Melnikov
									<span class="welcome__label">I'm a UI developer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/ksenia.jpg" alt="Foto of Tiffani Bryana">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Tiffani Bryana
									<span class="welcome__label">I'm a Graphic Designer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<section class="section">
		<h2 class="title">Demo 3</h2>
		<div id="demo3" class="cssui-slider cssui-slider_mod--slide-to-left">
			<input id="cssui-slider-control-label7" type="radio" class="cssui-slider__switch" name="cssui-slider-control3" checked>
			<label for="cssui-slider-control-label7" class="cssui-slider__control">open first slide</label>
			<input id="cssui-slider-control-label8" type="radio" class="cssui-slider__switch" name="cssui-slider-control3">
			<label for="cssui-slider-control-label8" class="cssui-slider__control">open second slide</label>
			<input id="cssui-slider-control-label9" type="radio" class="cssui-slider__switch" name="cssui-slider-control3">
			<label for="cssui-slider-control-label9" class="cssui-slider__control">open third slide</label>
			<div class="cssui-slider__slides">
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/lily.jpg" alt="Foto of Moreen Gill">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Moreen Gill
									<span class="welcome__label">I'm a Web-Designer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/stas.jpg" alt="Foto of Stas Melnikov">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Stas Melnikov
									<span class="welcome__label">I'm a UI developer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/ksenia.jpg" alt="Foto of Tiffani Bryana">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Tiffani Bryana
									<span class="welcome__label">I'm a Graphic Designer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<section class="section">
		<h2 class="title">Demo 4</h2>
		<div id="demo4" class="cssui-slider cssui-slider_mod--slide-to-top">
			<input id="cssui-slider-control-label10" type="radio" class="cssui-slider__switch" name="cssui-slider-control4" checked>
			<label for="cssui-slider-control-label10" class="cssui-slider__control">open first slide</label>
			<input id="cssui-slider-control-label11" type="radio" class="cssui-slider__switch" name="cssui-slider-control4">
			<label for="cssui-slider-control-label11" class="cssui-slider__control">open second slide</label>
			<input id="cssui-slider-control-label12" type="radio" class="cssui-slider__switch" name="cssui-slider-control4">
			<label for="cssui-slider-control-label12" class="cssui-slider__control">open third slide</label>
			<div class="cssui-slider__slides">
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/lily.jpg" alt="Foto of Moreen Gill">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Moreen Gill
									<span class="welcome__label">I'm a Web-Designer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/stas.jpg" alt="Foto of Stas Melnikov">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Stas Melnikov
									<span class="welcome__label">I'm a UI developer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="cssui-slider__slide">
					<div class="cssui-slider__content">
						<div class="welcome">
							<img class="avatar" src="https://stas-melnikov.ru/cliparts/ksenia.jpg" alt="Foto of Tiffani Bryana">
							<div class="welcome__column">
								<h2 class="welcome__msg">
									Hi, I'm Tiffani Bryana
									<span class="welcome__label">I'm a Graphic Designer</span>
								</h2>
								<div class="socials">
									<a href="#0" class="cssui-social">
										<i class="icon icon-twitter"></i>
										<span class="cssui-social__name">twitter</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-linkedin"></i>
										<span class="cssui-social__name">linkedin</span>
									</a>
									<a href="#0" class="cssui-social">
										<i class="icon icon-codepen"></i>
										<span class="cssui-social__name">codepen</span>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</section>
	<footer class="footer">
		<div class="main-container">
        <span>You liked?</span>
        <a href="https://www.paypal.me/melnik909" class="donate" rel="noopener noreferrer" target="_blank">Buy me a tea?</a>
			  <a href="https://stas-melnikov.ru" class="melnik909" rel="noopener noreferrer" target="_blank">Developed by Stas Melnikov</a>
		</div>
	</footer>
              
            
!

CSS

              
                
/*
 * demo styles
 */

@media screen and (min-width: 981px){
  
  html{
    font-size: 62.5%;
  }
}

@media screen and (min-width: 641px) and (max-width: 980px){
  
  html{
    font-size: 56%;
  }
}

@media screen and (max-width: 640px){
  
  html{
    font-size: 50%;
  }
}

body{
  background-color: #303F9F;
  font-family: "Roboto", "Arial", sans-serif;
  font-size: 1.6rem;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

a{
  color: #fff;
}

.main-container{
  min-width: 100px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media screen and (min-width: 1301px){
  
  .header{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
  }
}

.footer{
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
  color: #fff;
  background-color: #C2185B;
}

@media screen and (max-width: 640px){
 	
  .footer{
    font-size: 1.4rem;
  }
}

.melnik909{
  margin-left: 2rem;
}

.demos-nav{
  padding: 1rem;
  text-align: right;
}

@media screen and (max-width: 1300px){
  
  .demos-nav{
    display: none;
  }
}

.demos-nav__link{
  margin-left: 1.5rem;
}

.demos-nav__link:first-child{
  margin-left: 0;
}

.section{
  position: relative;
}

.section:nth-of-type(odd){
  background: linear-gradient(-8deg, #a40de1, #4a48f6);
}

.section:nth-of-type(odd) .cssui-slider__switch:focus + .cssui-slider__control, .section:nth-of-type(odd) .cssui-slider__switch:checked + .cssui-slider__control{
  background-color: #512DA8;
}

.section:nth-of-type(even){
  background: linear-gradient(-6deg, #ec264e, #d818c4);
}

.section:nth-of-type(even) .cssui-slider__switch:focus + .cssui-slider__control, .section:nth-of-type(even) .cssui-slider__switch:checked + .cssui-slider__control{
  background-color: #C2185B;
}

.title{
  color: #512DA8;
  font-weight: 400;
  font-size: 1.8rem;
  padding: .5rem 2rem;
  margin: 0;
  background-color: #fff;
  position: absolute;
  top: 0;
  left: 0;
}

.welcome{
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 640px){
  .welcome{
    flex-wrap: wrap;
    flex-direction: column;
    text-align: center;
  }
}

.welcome__label{
  display: block;
  font-size: 1.8rem;
  font-weight: 400;
  margin-top: .2em;
}

.welcome__msg{
  margin: 0 0 1rem;
}

@media screen and (max-width: 640px){
  
  .welcome__msg{
    font-size: 3rem;
    margin-top: 3rem;
  }
}

@media screen and (min-width: 641px){
  
  .welcome__msg{
    font-size: 5.5rem;
  }
}

.avatar{
  border-radius: 50%;
  border: .5rem solid #fff;
  width: 15rem;
  height: 15rem;
}

@media screen and (min-width: 641px){
  
  .avatar{
    margin-right: 2rem;
  }
}

.icon{
  display: inline-block;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: contain;
  width: 2rem;
  height: 2rem;
}

.cssui-social{
  display: inline-block;
  vertical-align: middle;
  margin-right: 1rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.cssui-social__name{
  position: absolute;
  left: -9999px;
}

.icon-twitter{
  background-image: url("https://stas-melnikov.ru/codepen/icons/twitter.svg");
}

.icon-linkedin{
  background-image: url("https://stas-melnikov.ru/codepen/icons/linkedin.svg");
}

.icon-codepen{
  background-image: url("https://stas-melnikov.ru/codepen/icons/codepen.svg");
}

/*
 * pure CSS slider
 */

.cssui-slider{
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  color: #fff;
  height: 90vh;
  min-height: 340px;
}

.cssui-slider__slides{
  height: 90vh;
}

.cssui-slider__slide{
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.cssui-slider__switch{
  position: absolute;
  top: 0;
  left: -9999px;
}

.cssui-slider__switch:hover + .cssui-slider__control, .cssui-slider__switch:focus + .cssui-slider__control, .cssui-slider__switch:checked + .cssui-slider__control{
  transform: scale(1.3);
}

.cssui-slider__control{
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  border-radius: 50%;
  cursor: pointer;
  text-indent: -9999px;
  background-color: #fff;
  transition: transform .2s ease-out;
  position: absolute;
  margin-left: -.75rem;
  bottom: 3rem;
  z-index: 2;
}

.cssui-slider__control:nth-of-type(2){
  left: 50%;
}

@media screen and (min-width: 769px){
  
  .cssui-slider__control:nth-of-type(1){
    left: 47%;
  }

  .cssui-slider__control:nth-of-type(3){
    left: 53%;
  }
}

@media screen and (min-width: 481px) and (max-width: 768px){
  
  .cssui-slider__control:nth-of-type(1){
    left: 45%;
  }

  .cssui-slider__control:nth-of-type(3){
    left: 55%;
  }
}

@media screen and (max-width: 480px){
  
  .cssui-slider__control:nth-of-type(1){
    left: 41%;
  }

  .cssui-slider__control:nth-of-type(3){
    left: 59%;
  }
}

.cssui-slider__content{
  height: 100%;
}

/* demo 1 */

.cssui-slider_mod--animation-3dslide-to-left{
  perspective: 500px;
  perspective-origin: center 75%;
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__slides{
  transition: transform .4s;
  transform-style: preserve-3d;
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__slide{
  opacity: 0;
  transition: opacity .4s;
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__slide:nth-of-type(1){
  transform: translate3d(0, 0, 0);
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__slide:nth-of-type(2){
  transform: translate3d(100%, 0, -700px);
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__slide:nth-of-type(3){
  transform: translate3d(200%, 0, -1400px);
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__switch:nth-of-type(1):checked ~ .cssui-slider__slides{
  transform: translate3d(0, 0, 0);
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__switch:nth-of-type(1):checked ~ .cssui-slider__slides .cssui-slider__slide:nth-of-type(1){
  opacity: 1;
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__switch:nth-of-type(2):checked ~ .cssui-slider__slides{
  transform: translate3d(-100%, 0, 700px);
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__switch:nth-of-type(2):checked ~ .cssui-slider__slides .cssui-slider__slide:nth-of-type(2){
  opacity: 1;
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__switch:nth-of-type(3):checked ~ .cssui-slider__slides{
  transform: translate3d(-200%, 0, 1400px);
}

.cssui-slider_mod--animation-3dslide-to-left .cssui-slider__switch:nth-of-type(3):checked ~ .cssui-slider__slides .cssui-slider__slide:nth-of-type(3){
  opacity: 1;
}

/* demo 2 */

.cssui-slider_mod--animation-3dscale{
  perspective: 500px;
  perspective-origin: center 75%;
}

.cssui-slider_mod--animation-3dscale .cssui-slider__slides{
  transition: transform .4s;
  transform-style: preserve-3d;
}

.cssui-slider_mod--animation-3dscale .cssui-slider__slide{
  transition: opacity .4s;
  opacity: 0;
}

.cssui-slider_mod--animation-3dscale .cssui-slider__slide:nth-of-type(1){
  transform: translate3d(0, 0, 0);
}

.cssui-slider_mod--animation-3dscale .cssui-slider__slide:nth-of-type(2){
  transform: translate3d(0, 0, -100vh);
}

.cssui-slider_mod--animation-3dscale .cssui-slider__slide:nth-of-type(3){
  transform: translate3d(0, 0, -200vh);
}

.cssui-slider_mod--animation-3dscale .cssui-slider__switch:nth-of-type(1):checked ~ .cssui-slider__slides{
  transform: translate3d(0, 0, 0);
}

.cssui-slider_mod--animation-3dscale .cssui-slider__switch:nth-of-type(1):checked ~ .cssui-slider__slides .cssui-slider__slide:nth-of-type(1),
.cssui-slider_mod--animation-3dscale .cssui-slider__switch:nth-of-type(2):checked ~ .cssui-slider__slides .cssui-slider__slide:nth-of-type(2),
.cssui-slider_mod--animation-3dscale .cssui-slider__switch:nth-of-type(3):checked ~ .cssui-slider__slides .cssui-slider__slide:nth-of-type(3){
  opacity: 1;
}

.cssui-slider_mod--animation-3dscale .cssui-slider__switch:nth-of-type(2):checked ~ .cssui-slider__slides{
  transform: translate3d(0, 0, 100vh);
}

.cssui-slider_mod--animation-3dscale .cssui-slider__switch:nth-of-type(3):checked ~ .cssui-slider__slides{
  transform: translate3d(0, 0, 200vh);
}

/* demo 3 */

.cssui-slider_mod--slide-to-left .cssui-slider__slides{
  transition: transform .4s;
}

.cssui-slider_mod--slide-to-left .cssui-slider__slide:nth-of-type(1){
  left: 0;
}

.cssui-slider_mod--slide-to-left .cssui-slider__slide:nth-of-type(2){
  left: 100%;
}

.cssui-slider_mod--slide-to-left .cssui-slider__slide:nth-of-type(3){
  left: 200%;
}

.cssui-slider_mod--slide-to-left .cssui-slider__switch:nth-of-type(1):checked ~ .cssui-slider__slides{
  transform: translate3d(0, 0, 0);
}

.cssui-slider_mod--slide-to-left .cssui-slider__switch:nth-of-type(2):checked ~ .cssui-slider__slides{
  transform: translate3d(-100%, 0, 0);
}

.cssui-slider_mod--slide-to-left .cssui-slider__switch:nth-of-type(3):checked ~ .cssui-slider__slides{
  transform: translate3d(-200%, 0, 0);
}

/* demo 4 */

.cssui-slider_mod--slide-to-top .cssui-slider__slides{
  transition: transform .4s;
}

.cssui-slider_mod--slide-to-top .cssui-slider__slide:nth-of-type(1){
  top: 0;
}

.cssui-slider_mod--slide-to-top .cssui-slider__slide:nth-of-type(2){
  top: 100%;
}

.cssui-slider_mod--slide-to-top .cssui-slider__slide:nth-of-type(3){
  top: 200%;
}

.cssui-slider_mod--slide-to-top .cssui-slider__switch:nth-of-type(1):checked ~ .cssui-slider__slides{
  transform: translate3d(0, 0, 0);
}

.cssui-slider_mod--slide-to-top .cssui-slider__switch:nth-of-type(2):checked ~ .cssui-slider__slides{
  transform: translate3d(0, -100%, 0);
}

.cssui-slider_mod--slide-to-top .cssui-slider__switch:nth-of-type(3):checked ~ .cssui-slider__slides{
  transform: translate3d(0, -200%, 0);
}

              
            
!

JS

              
                
              
            
!
999px

Console