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

              
                <section id="portfolio" class="clear bounce-in">
        <div class="containerContent">
        <div class="set_size_section1">
            <h2 class="services_h2 center">IMAGE GALLERY</h2>
            <div class="folio-list">
                    <div class="thumbnail folio-thumb">
                        <figure class="gallery-item">
                            <img alt="" src="https://www.mediafire.com/convkey/797a/lemqg6meill6ei1zg.jpg" width="230" height="230">
                            <figcaption class="img-title">
                                <h5>Image Title1 - lorem ipsum lorem ipsum lorem ipsum</h5>
                                <p>lorem ipsum ut magna pharera aliquet non und s lorem ipsum belit. Donec sed odio rera magna pharera aliquet</p>
                            </figcaption>
                        </figure>
                        <h3>Ebony &amp; Ivory</h3>
                        <p>Branding</p>
                    </div>
                    <div class="thumbnail folio-thumb">
                        <figure class="gallery-item">
                            <img alt="" src="https://www.mediafire.com/convkey/8947/l8r9z9z1tv1yhttzg.jpg" width="230" height="230">
                            <figcaption class="img-title">
                                <h5>Image Title1 - lorem ipsum lorem ipsum lorem ipsum</h5>
                                <p>lorem ipsum ut magna pharera aliquet non sodales lorem ipsum belit. Donec sed odio rera magna pharera aliquet</p>
                            </figcaption>
                        </figure>
                        <h3>Smart Stationary</h3>
                        <p>Print Design</p>
                    </div>
                    <div class="thumbnail folio-thumb">
                        <figure class="gallery-item">
                            <img alt="" src="https://www.mediafire.com/convkey/c5e0/4sjj994c8fd638czg.jpg" width="230" height="230">
                            <figcaption class="img-title">
                                <h5>Donec porttitora entum suscipit aen ean rhoncus posuere.</h5>
                                <p>aenean rhoncus posuere odio in tincidunt. Proin iaculis purus consequat sem cure digni. purus consequat sem cure digni.</p>
                            </figcaption>
                        </figure>
                        <h3>Clever Poster</h3>
                        <p>Print Design</p>
                    </div>
                    <div class="thumbnail folio-thumb">
                        <figure class="gallery-item">
                            <img alt="" src="https://www.mediafire.com/convkey/1134/bina9r358x0h77rzg.jpg" width="230" height="230">
                            <figcaption class="img-title">
                                <h5>Image Title1 - lorem ipsum lorem ipsum lorem ipsum</h5>
                                <p>lorem ipsum ut magna pharera aliquet non sodales lorem ipsum belit. Donec sed odio rera magna pharera aliquet</p>
                            </figcaption>
                        </figure>
                        <h3>Vinyl Record</h3>
                        <p>Product Mock-Up</p>
                    </div>
                    <div class="thumbnail folio-thumb">
                        <figure class="gallery-item">
                            <img alt="" src="https://www.mediafire.com/convkey/9e8e/zl3ogquqcjqo60wzg.jpg" width="230" height="230">
                            <figcaption class="img-title">
                                <h5>Image Title1 - lorem ipsum lorem ipsum lorem ipsum</h5>
                                <p>lorem ipsum ut magna pharera aliquet non sodales lorem ipsum belit. Donec sed odio rera magna pharera aliquet</p>
                            </figcaption>
                        </figure>
                        <h3>Treehouse Template</h3>
                        <p>Web Design</p>
                    </div>
                    <div class="thumbnail folio-thumb">
                        <figure class="gallery-item">
                            <img alt="" src="https://www.mediafire.com/convkey/2e58/33z7j0bzjbz2obfzg.jpg" width="230" height="230">
                            <figcaption class="img-title">
                                <h5>Image Title1 - lorem ipsum lorem ipsum lorem ipsum</h5>
                                <p>lorem ipsum ut magna pharera aliquet non sodales lorem ipsum belit. Donec sed odio rera magna pharera aliquet</p>
                            </figcaption>
                        </figure>
                        <h3>Burned Logo</h3>
                        <p>Branding</p>
                    </div>
            </div>
        </div>
        </div>
    </section>

<footer>
    <div class="about-me-img">
        <a href="http://jakubtursky.studenthosting.sk/?lang=en">
        <img src="https://www.mediafire.com/convkey/722e/qk13jrjdq7z45k1zg.jpg" alt="Jakub Turský" width="110px" height="110px">
        </a>
        <div class="authorWindowWrapper">
            <div class="authorWindow">
                <p>Image gallery with hover effect <br>
                    Created by <a href="http://jakubtursky.studenthosting.sk/?lang=en"><strong>Jakub Turský</strong></a> <br>
                    For next info about me you can visit me site ( click on my image, name, or copy url www.jakubtursky.studenthosting.sk/?lang=en ) <br>
                </p>
            </div>
        </div>
    </div>
</footer>
              
            
!

CSS

              
                html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video {
    margin: 0;
    padding: 0;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
  display: block;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html,body {
    width: 100%;
    height: 100%;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}


body {
    background: #FFF;
    color: #666;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 100%;
}

section {
    width: 100%;
}

p {
    line-height: 150%;
}

#portfolio {
  padding: 20px 0px 50px 0px;
  position: relative;
  display: block;
  background: #f7f7f7;
}

.containerContent {
  margin: 0 auto;
  width: 100%;
  max-width: 1400px;
}

.set_size_section1 {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  display: inline-block;
}

.services_h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  color: black;
  margin-bottom: 5px;
  margin-top: 20px;
  font-size: 30px;
  text-align: center;
}

#portfolio .folio-list {
  padding: 0;
  list-style: none;
  margin: 0 auto;
  width: 60%;
  justify-content: center;
  display: flex;
  margin-top: 50px;
  flex-direction: row;
  flex-wrap: wrap;
}



.thumbnail {
  display: block;
  padding: 4px;
  margin-top: 10px;
  margin-right: 30px;
  line-height: 1.42857143;
  border-radius: 4px;
  -webkit-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
}

figure {
  margin: 0;
}


#portfolio .folio-list img {
    position: absolute;
    width: 230px;
    height: 230px;
    -webkit-transition: all 300ms ease-out;
    -moz-transition: all 300ms ease-out;
    -o-transition: all 300ms ease-out;
    -ms-transition: all 300ms ease-out;
    transition: all 300ms ease-out;
}

#portfolio .folio-thumb > h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: black;
    text-align: center;
    font-size: 16px;
    margin-top: 25px;
    margin-bottom: 3px;
}

#portfolio .folio-thumb > p {
    font-family: 'Droid Serif', serif;
    word-spacing: 1px;
    text-align: center;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 30px;
}

.img-title {
    position: absolute;
    top: 0;
    right: 0;
    cursor: pointer;
    display: block;
    bottom: 0;
    left: 0;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    margin: 0;
    text-align: center;
    opacity: 0;
    background-color: #333;
    -ms-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.img-title h5 {
    color: #fed136;
    font-family: 'RobotoSlab', serif;
    text-align: left;
    font-size: 15.5px;
    display: block;
    margin: 60px 10px 10px 20px;
}

.img-title p {
    color: #fff;
    text-align: left;
    font-family: 'Droid Serif', serif;
    font-style: italic;
    margin: 10px 10px 10px 20px;
    font-size: 12px;
    display: block;
}

.gallery-item:hover .img-title {
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
     filter: alpha(opacity=90);
}

.gallery-item {
    position: relative;
    width: 230px;
    height: 230px;
    display: block;
    overflow: hidden;
}

.img-title h5, .img-title p {
    position: relative;
    left: -200px;
    width: 190px;
    -webkit-transition: all 300ms ease-out;
    -moz-transition: all 300ms ease-out;
    -o-transition: all 300ms ease-out;
    -ms-transition: all 300ms ease-out;
    transition: all 300ms ease-out;
}

.img-title h5 {
    -webkit-transition-delay: 200ms;
    -moz-transition-delay: 200ms;
    -o-transition-delay: 200ms;
    -ms-transition-delay: 200ms;
    transition-delay: 200ms;
}

.img-title p {
    -webkit-transition-delay: 400ms;
    -moz-transition-delay: 400ms;
    -o-transition-delay: 400ms;
    -ms-transition-delay: 400ms;
    transition-delay: 400ms;
    width: 180px;
}

.gallery-item:hover img{
    -moz-transform: scale(1.2);
    -o-transform: scale(1.2);
    -ms-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    width: 250px\9;
    height: 250px\9;
}


/* AUTHOR LINK */


footer{
  z-index: 100;
  padding-top: 50px;
  padding-bottom: 50px;
  width: 100%;
  bottom: 0;
  left: 0;
}

footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  opacity: 0;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  word-wrap: break-word;
  line-height: 25px;
  -webkit-transform: translateX(-200px);
  transform: translateX(-200px);
  margin: 0;
}

footer .authorWindow a{
  text-decoration: none;
}

footer p strong {
    color: rgba(255, 255, 255, 0.9);
  margin-left: 5px;
  cursor:pointer;
}

.about-me-img {
  width: 120px;
  height: 120px;
  left: 10px;
  /* bottom: 30px; */
  position: relative;
  border-radius: 100px;
  border: 1px solid #4A5F67;
}


.about-me-img img {
  margin-top: 8px;
  margin-left: 5px;
}


.authorWindow{
  width: 600px;
  background: #4A5F67;
  padding: 22px 20px 22px 20px;
  border-radius: 5px;
  overflow: hidden;
}

.authorWindowWrapper{
  display:none; 
  left: 110px;
  bottom: -20px;
  padding-left: 30px;
  position: absolute;
}


.trans{
  opacity: 1;
  -webkit-transform: translateX(0px);
  transform: translateX(0px);
  transition: all 500ms ease;
}

@media screen and (max-width: 768px) {
    .authorWindow{
         width: 210px;
    }

    .authorWindowWrapper{
             bottom: -170px;
  margin-bottom: 20px;
    }

    footer p{
          font-size: 14px;
    }
}
              
            
!

JS

              
                $('.gallery-item').hover(function(){
            $(this).find('h5, p').stop().animate({
                opacity: '1',              
                marginLeft: '230px'
            }, 300);
        }, function(){
            $(this).find('h5, p').stop().animate({
                opacity: '0',              
                marginLeft: '0px'
            }, 100);
        });

  	/* AUTHOR LINK */
     $('.about-me-img img, .authorWindowWrapper').hover(function(){
            $('.authorWindowWrapper').stop().fadeIn('fast').find('p').addClass('trans');
        }, function(){
        });
  
              
            
!
999px

Console