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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


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


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.


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.



	<title> Lu's Gallery </title>


	<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=""> </label>
        <label for="button-2" class="arrows" id="arrow-2"> <img src=""> </label>
        <label for="button-3" class="arrows" id="arrow-3"> <img src=""> </label>
        <label for="button-4" class="arrows" id="arrow-4"> <img src=""> </label>
        <label for="button-5" class="arrows" id="arrow-5"> <img src=""> </label>
        <label for="button-6" class="arrows" id="arrow-6"> <img src=""> </label>
        <label for="button-7" class="arrows" id="arrow-7"> <img src=""> </label>
        <label for="button-8" class="arrows" id="arrow-8"> <img src=""> </label>
        <label for="button-9" class="arrows" id="arrow-9"> <img src=""> </label>
        <label for="button-10" class="arrows" id="arrow-10"> <img src=""> </label>

        <div id="slideshow-inner">


                <li id="slide1">
                    <img class="slide-img" src="">
                    <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>Body of water under white sky</p>

                <li id="slide2">
                    <img class="slide-img" src="">
                    <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>Wat Arun temple</p>

                <li id="slide3">
                    <img class="slide-img" src="">
                    <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>

                <li id="slide4">
                    <img class="slide-img" src="">
                    <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>

                <li id="slide5">
                    <img class="slide-img" src="">
                    <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>Fushimi Inari-taisha</p>

                <li id="slide6">
                    <img class="slide-img" src="">
                    <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, UK</h2>
                            <p>Big Ben</p>

                <li id="slide7">
                    <img class="slide-img" src="">
                    <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, USA</h2>
                            <p>The Times Square</p>

                <li id="slide8">
                    <img class="slide-img" src="">
                    <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>Promenade des anglais</p>

                <li id="slide9">
                    <img class="slide-img" src="">
                    <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>

                <li id="slide10">
                    <img class="slide-img" src="">
                    <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, Czechia</h2>
                            <p>Charles bridge</p>








                * {
    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 }