css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
<html>

<head>
	<title> Lu's Gallery </title>
</head>

<body>

	<div id="slideshow-wrap">

        <input type="radio" id="button-1" name="controls" checked="checked"/>
        <label for="button-1"></label>

        <input type="radio" id="button-2" name="controls"/>
        <label for="button-2"></label>

        <input type="radio" id="button-3" name="controls"/>
        <label for="button-3"></label>

        <input type="radio" id="button-4" name="controls"/>
        <label for="button-4"></label>

        <input type="radio" id="button-5" name="controls"/>
        <label for="button-5"></label>

        <input type="radio" id="button-6" name="controls"/>
        <label for="button-6"></label>

        <input type="radio" id="button-7" name="controls"/>
        <label for="button-7"></label>

        <input type="radio" id="button-8" name="controls"/>
        <label for="button-8"></label>

        <input type="radio" id="button-9" name="controls"/>
        <label for="button-9"></label>

        <input type="radio" id="button-10" name="controls"/>
        <label for="button-10"></label>


        <label for="button-1" class="arrows" id="arrow-1"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>
        <label for="button-2" class="arrows" id="arrow-2"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>
        <label for="button-3" class="arrows" id="arrow-3"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>
        <label for="button-4" class="arrows" id="arrow-4"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>
        <label for="button-5" class="arrows" id="arrow-5"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>
        <label for="button-6" class="arrows" id="arrow-6"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>
        <label for="button-7" class="arrows" id="arrow-7"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>
        <label for="button-8" class="arrows" id="arrow-8"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>
        <label for="button-9" class="arrows" id="arrow-9"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>
        <label for="button-10" class="arrows" id="arrow-10"> <img src="http://www.essentialapparel.com/html/images/rightArrow.png"> </label>

        <div id="slideshow-inner">

            <ul>

                <li id="slide1">
                    <img class="slide-img" src="https://lh3.googleusercontent.com/-xchqHuSHHCw/VPCtLghscqI/AAAAAAAAAEw/md2z4iaYLGU/w364-h273-no/pic-amsterdam.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-1"/>
                        <label for="show-description-1" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>Amsterdam, Netherlands</h2>
                            <p>Reguliersgracht on the corner with the Keizersgracht</p>
                        </div>
                    </div>
                </li>

                <li id="slide2">
                    <img class="slide-img" src="https://lh6.googleusercontent.com/-u18RV6LxL6M/VPCtKHQU3GI/AAAAAAAAAEw/5zOkkhqc63k/w364-h227-no/pic-bangkok.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-2"/>
                        <label for="show-description-2" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>Bangkok, Thailand</h2>
                            <p>Beautiful temple</p>
                        </div>
                    </div>
                </li>

                <li id="slide3">
                    <img class="slide-img" src="https://lh4.googleusercontent.com/-NcG6LT9T5CQ/VPCtLnkXtNI/AAAAAAAAAEw/JrsuLpjmh-w/w364-h226-no/pic-barcelona.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-3"/>
                        <label for="show-description-3" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>Barcelona, Spain</h2>
                            <p>Gaudi Park</p>
                        </div>
                    </div>
                </li>

                <li id="slide4">
                    <img class="slide-img" src="https://lh6.googleusercontent.com/-Xw9fGDZqbUg/VPCtNGEZPQI/AAAAAAAAAEw/762VAtlD0Ps/w960-h468-no/pic-dubai.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-4"/>
                        <label for="show-description-4" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>Dubai, India</h2>
                            <p>Burj Al Arab Hotel</p>
                        </div>
                    </div>
                </li>

                <li id="slide5">
                    <img class="slide-img" src="https://lh4.googleusercontent.com/-gZcI833K9B4/VPCtNJiD6uI/AAAAAAAAAEw/n_CY4Fy5o1Y/w640-h427-no/pic-kyoto.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-5"/>
                        <label for="show-description-5" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>Kyoto, Japan</h2>
                            <p>Shinto arches</p>
                        </div>
                    </div>
                </li>

                <li id="slide6">
                    <img class="slide-img" src="https://lh5.googleusercontent.com/-1fY3tgy_H-M/VPCtN4ZbsNI/AAAAAAAAAEw/Zgc9JAXyRvU/w498-h312-no/pic-ldn.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-6"/>
                        <label for="show-description-6" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>London, U.K.</h2>
                            <p>Big Ben</p>
                        </div>
                    </div>
                </li>

                <li id="slide7">
                    <img class="slide-img" src="https://lh5.googleusercontent.com/-z6f4Lx_CiBQ/VPCtcJ3_tsI/AAAAAAAAAEw/65J8YTJtWhY/w785-h523-no/pic-newyork.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-7"/>
                        <label for="show-description-7" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>New York City, U.S.A.</h2>
                            <p>City that never sleeps</p>
                        </div>
                    </div>
                </li>

                <li id="slide8">
                    <img class="slide-img" src="https://lh5.googleusercontent.com/-Jjb-C5NM8PI/VPCtbs7QgmI/AAAAAAAAAEw/rYFHL3tGtOU/w364-h228-no/pic-nice.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-8"/>
                        <label for="show-description-8" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>Nice, France</h2>
                            <p>The best of French Riviera</p>
                        </div>
                    </div>
                </li>

                <li id="slide9">
                    <img class="slide-img" src="https://lh3.googleusercontent.com/-qCf0xSzW0eY/VPCtQoyLvwI/AAAAAAAAAEw/3aOY7BN-nHE/w465-h391-no/pic-paris.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-9"/>
                        <label for="show-description-9" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>Paris, France</h2>
                            <p>The Eiffel Tower</p>
                        </div>
                    </div>
                </li>

                <li id="slide10">
                    <img class="slide-img" src="https://lh5.googleusercontent.com/-arcO975KieE/VPCtU2ntdHI/AAAAAAAAAEw/6jOZob4K6Zg/w858-h569-no/pic-prague.jpg">
                    <div class="description">
                        <input type="checkbox" id="show-description-10"/>
                        <label for="show-description-10" class="show-description-label"> <span> &hearts; </span> </label>
                        <div class="description-text">
                            <h2>Prague, Czech Republic</h2>
                            <p>Old Town Square</p>
                        </div>
                    </div>
                </li>

            </ul>

        </div>

    </div>



</body>

</html>

            
          
!
            
              * {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #000;
}

#slideshow-wrap {
    display: block;
    height: 320px;
    min-width: 260px;   /* you can't make width any smaller by resizing the browser window */
    max-width: 640px;   /* size in full window */
    margin: auto;
    border: 10px #ffffff solid;
    margin-top: 20px;
    position: relative;
}

#slideshow-wrap .slide-img {
    width: 100%;
}

#slideshow-inner {
    width: 100%;        /* takes max width of slideshow-wrap */
    height: 100%;       /* takes max height of slideshow-wrap */
    background-color: #000000;  /* this background is behind images */
    overflow: hidden;   /* this hides other images and makes only the current image visible */
}

#slideshow-inner > ul {
    list-style: none;
    height: 100%;       /* ul is the same height as slideshow-inner */
    width: 1000%;        /* this makes sure that you can only see 1 pic at a time */
    position: relative; /* this makes sure that you can only see 1 pic at a time */
                            /* fixed would make current image to take width of full screen */
                            /* absolute would make all images visible */
    left: 0px;
    transition: left 0.5s linear;               /* here we specify how fast will the next image appear */
        -webkit-transition: left 0.5s linear;
        -moz-transition: left 0.5s linear;
        -o-transition: left 0.5s linear;
}

#slideshow-inner > ul > li {
    width: 10%; /* since there are 5 images, each has to take 20% of */
                /* slideshow-inner's width so that we have 1 image per slide */
    height: 320px;  /* hight is the same as wrap's (this is max height) */
    float: left;    /* if we type 'right', last image becomes 1st one */
    position: relative;
}

#slideshow-inner > ul > li > img {
    height: 100%;   /* each image has max height */
}

span {
    color: #ff69b4; /* #ff69b4 - hot pink */
    font-size: 25px;
} 

#slideshow-wrap input[type=radio] {
    position: absolute;
    left: 50%;              /* we need inputs just to make nav dots */
    bottom: 15px;           /* inputs are small dots 15px from the bottom of the wrap */
    z-index: 100;           /* inputs don't show on screen */
    visibility: hidden;
}

#slideshow-wrap label:not(.arrows):not(.show-description-label) {
    position: absolute;
    left: 43%;  /* makes bullets seperated by half their size */
    bottom: -45px; /* makes bullets 45px below images */
    z-index: 100;
    width: 12px;
    height: 12px;
    background-color: #ffffff;  
    border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
    cursor: pointer;
}

#slideshow-wrap input[type=radio]#button-1:checked~label[for=button-1] { background-color: #FF69B4; }   /* bullet color when active */

#slideshow-wrap input[type=radio]#button-2:checked~label[for=button-2] { background-color: #FF69B4; }

#slideshow-wrap input[type=radio]#button-3:checked~label[for=button-3] { background-color: #FF69B4; }

#slideshow-wrap input[type=radio]#button-4:checked~label[for=button-4] { background-color: #FF69B4; }

#slideshow-wrap input[type=radio]#button-5:checked~label[for=button-5] { background-color: #FF69B4; }

#slideshow-wrap input[type=radio]#button-6:checked~label[for=button-6] { background-color: #FF69B4; }

#slideshow-wrap input[type=radio]#button-7:checked~label[for=button-7] { background-color: #FF69B4; }

#slideshow-wrap input[type=radio]#button-8:checked~label[for=button-8] { background-color: #FF69B4; }

#slideshow-wrap input[type=radio]#button-9:checked~label[for=button-9] { background-color: #FF69B4; }

#slideshow-wrap input[type=radio]#button-10:checked~label[for=button-10] { background-color: #FF69B4; }


#slideshow-wrap label[for=button-1] { margin-left: -36px }

#slideshow-wrap label[for=button-2] { margin-left: -18px }

#slideshow-wrap label[for=button-4] { margin-left: 18px }

#slideshow-wrap label[for=button-5] { margin-left: 36px }

#slideshow-wrap label[for=button-6] { margin-left: 54px }

#slideshow-wrap label[for=button-7] { margin-left: 72px }

#slideshow-wrap label[for=button-8] { margin-left: 90px }

#slideshow-wrap label[for=button-9] { margin-left: 108px }

#slideshow-wrap label[for=button-10] { margin-left: 126px }


#slideshow-wrap input[type=radio]#button-1:checked~#slideshow-inner > ul { left: 0; }

#slideshow-wrap input[type=radio]#button-2:checked~#slideshow-inner > ul { left: -100%; }

#slideshow-wrap input[type=radio]#button-3:checked~#slideshow-inner > ul { left: -200%; }

#slideshow-wrap input[type=radio]#button-4:checked~#slideshow-inner > ul { left: -300%; }

#slideshow-wrap input[type=radio]#button-5:checked~#slideshow-inner > ul { left: -400%; }

#slideshow-wrap input[type=radio]#button-6:checked~#slideshow-inner > ul { left: -500%; }

#slideshow-wrap input[type=radio]#button-7:checked~#slideshow-inner > ul { left: -600%; }

#slideshow-wrap input[type=radio]#button-8:checked~#slideshow-inner > ul { left: -700%; }

#slideshow-wrap input[type=radio]#button-9:checked~#slideshow-inner > ul { left: -800%; }

#slideshow-wrap input[type=radio]#button-10:checked~#slideshow-inner > ul { left: -900%; }


label.arrows {
    position: absolute;
    top: 50%;
    margin-top: -25px;
    display: none;
    opacity: 0.7;
    cursor: pointer;
    z-index: 1000;
}

label.arrows:hover { opacity: 1 }

input[type=radio]#button-1:checked~.arrows#arrow-2, input[type=radio]#button-2:checked~.arrows#arrow-3, input[type=radio]#button-3:checked~.arrows#arrow-4, input[type=radio]#button-4:checked~.arrows#arrow-5, input[type=radio]#button-5:checked~.arrows#arrow-6, input[type=radio]#button-6:checked~.arrows#arrow-7, input[type=radio]#button-7:checked~.arrows#arrow-8, input[type=radio]#button-8:checked~.arrows#arrow-9, input[type=radio]#button-9:checked~.arrows#arrow-10 {
    right: -55px;   /* space betwwen wrap and right arrow */
    display: block;
}

input[type=radio]#button-2:checked~.arrows#arrow-1, input[type=radio]#button-3:checked~.arrows#arrow-2, input[type=radio]#button-4:checked~.arrows#arrow-3, input[type=radio]#button-5:checked~.arrows#arrow-4, input[type=radio]#button-6:checked~.arrows#arrow-5, input[type=radio]#button-7:checked~.arrows#arrow-6, input[type=radio]#button-8:checked~.arrows#arrow-7, input[type=radio]#button-9:checked~.arrows#arrow-8, input[type=radio]#button-10:checked~.arrows#arrow-9 {
    left: -55px;    /* space between wrap and left arrow */
    display: block;
    transform: scaleX(-1);              /* this mirrors the arrow image */
        -webkit-transform: scaleX(-1);
        -moz-transform: scaleX(-1);
        -ms-transform: scaleX(-1);
        -o-transform: scaleX(-1);
}

.arrows img {
    width: 20px;
    height: 20px;
}

/* this part keeps arrows in position we set before (55px away from wrap) */
input[type=radio]#button-2:checked~.arrows#arrow-1 { left: -19px }      

input[type=radio]#button-3:checked~.arrows#arrow-2 { left: -37px }

input[type=radio]#button-4:checked~.arrows#arrow-3 { left: -55px }

input[type=radio]#button-5:checked~.arrows#arrow-4 { left: -73px }

input[type=radio]#button-6:checked~.arrows#arrow-5 { left: -91px }

input[type=radio]#button-7:checked~.arrows#arrow-6 { left: -109px }

input[type=radio]#button-8:checked~.arrows#arrow-7 { left: -127px }

input[type=radio]#button-9:checked~.arrows#arrow-8 { left: -145px }

input[type=radio]#button-10:checked~.arrows#arrow-9 { left: -163px }


.description {
    position: absolute;
    top: 0;
    left: 0;
    width: 260px;
    z-index: 1000;
}

.description input { visibility: hidden }

.description label {
    background-color: #ffffff;
    position: relative;
    left: -17px;
    top: 0px;
    width: 40px;
    height: 27px;           
    display: inline-block;
    text-align: center;
    padding-top: 7px;
    border-bottom-right-radius: 15px;
    cursor: pointer;
    z-index: 5;
    color: #000000;
}

.description .description-text {
    background-color: rgba(255,255,250,.5); /* white background, 0.5 opacity */
    padding-left: 45px;
    padding-top: 25px;
    padding-right: 15px;
    padding-bottom: 15px;
    position: relative;
    top: -35px;
    z-index: 4;
    opacity: 0;
    transition: opacity .2s;
        -webkit-transition: opacity .2s;
        -moz-transition: opacity .2s;
        -o-transition: opacity .2s;
    color: #000000;
}

.description h2 {
    color: #ff69b4;
}

.description input[type=checkbox]:checked~.description-text { opacity: 1 }

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console