Codeconvey
  • Home
  • Tutorials
    • CSS Slideshow
    • CSS Navigation
    • Modal & Popup
    • Hover Effects
    • HTML Forms
    • Layout
  • CSS Animation
  • How To
  • Resources
No Result
View All Result
Codeconvey
No Result
View All Result

Creative Image Hover Effects with CSS3

Ashfaq Ahmed by Ashfaq Ahmed
December 5, 2019
in Hover Effects
0
Creative Image Hover Effects with CSS3
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter

Today we have a collection of Creative Image Hover Effects that are built with CSS3 & HTML. There are more than 60 effects and you can pick one or more that you want to use on your website.

This vast collection of creative Image hover effects using CSS3 gives you more choice to choose the best effect for your web template

These effects make your website look differently and enhance the user experience. All of them allow you to show some title and description over the image and it will show when the user hovers it.

You can easily customize them by just editing the CSS to make the fit according to your requirements. These image effects are responsive and also work on all major browsers.

How to Create Creative Image Hover Effects

We will start with the markup which is simple and easy to understand. All of the effects HTML code define inside two of divs. The first one is our main div and the second one is child div with the class name effects.

Each image effect place inside a div class name demo and then defines an HTML5 figure element that holds the image.

It also used the figcaption HTML5 element that holds the text, heading, and a link. Here we have the first two effects HTML code example.

<div class="main">
  <div class="effects" id="effects">
    
    <div class="demo">
      <figure class="imghvr-fade"><img src="https://placehold.it/360x270" alt="01">
        <figcaption>
          <h3>Oscar Wilde</h3>
          <p>&quot;You can never be overdressed or overeducated.&quot;</p>
        </figcaption><a href="javascript:;"></a>
      </figure>
    </div>
    
    <div class="demo">
      <figure class="imghvr-push-up"><img src="https://placehold.it/360x270" alt="02">
        <figcaption>
          <h3>Oscar Wilde</h3>
          <p>&quot;You can never be overdressed or overeducated.&quot;</p>
        </figcaption><a href="javascript:;"></a>
      </figure>
    </div>

    
  </div>
</div>

The Styling

The CSS is a bit long because there are 60+ effects, so we are going to explain a few important styles here, but you can find all of the styles in the download source files.

The following CSS is use must need to add for all the effects whether you want to use one or more effects. Its the common style where we will set the font-family, margin, max-with, and background-color, etc.

[class*=' imghvr-'],
[class^=imghvr-] {
  font-family: Montserrat, sans-serif;
  position: relative;
  display: inline-block;
  margin: 0;
  max-width: 100%;
  background-color: rgba(230, 230, 230, .7);
  color: #666;
  overflow: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0)
}

[class*=' imghvr-'] img,
[class^=imghvr-] img {
  vertical-align: top;
  max-width: 100%
}

Similar we have common style for the figcaption the element where we will do the same.

[class*=' imghvr-'] figcaption,
[class^=imghvr-] figcaption {
  background-color: rgba(255, 255, 255, .9);
  padding: 20px;
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  right: 15px;
  border: 1px solid rgba(0, 0, 0, .1)
}

For each effect, we have different styles. For example, Let’s say we want to use the Fade effect than our code looks like:

.imghvr-fade figcaption,
.imghvr-fade:hover img {
  opacity: 0
}

.imghvr-fade:hover figcaption {
  opacity: 1
}

That’s It. Share with your friend and leave your feedback.

Tags: Image Hover Effects
Buy Me A Coffee Demo Download
Previous Post

CSS Tooltip On Hover DIV HTML Element

Next Post

CSS3 Image Slider with Stylized Thumbnails

Next Post
CSS3 Image Slider with Stylized Thumbnails

CSS3 Image Slider with Stylized Thumbnails

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Subscribe More Tutorials

Subscribe to our mailing list to receives monthly updates direct to your inbox!

You might also like

CSS Flip Animation on Hover – Flipping Card

CSS Flip Animation on Hover – Flipping Card

January 7, 2020
CSS Percentage Circle

Pure CSS Percentage Circle With Animation

January 21, 2023
Smooth CSS Fade in on Page Load Animation

Smooth CSS Fade in On Page Load Animation

December 11, 2019
Hexagonal CSS Grid

Auto Adjustable Hexagonal CSS Grid

December 17, 2019
Codeconvey

© 2023 Codeconvey.com - All rights reserved.

Navigate Site

  • Home
  • About Us
  • Contact us
  • License
  • Disclaimer
  • DMCA
  • Terms & Conditions

Follow Us

No Result
View All Result
  • Home
  • CSS Animation
  • CSS Navigation
  • HTML Forms
  • Hover Effects
  • CSS Slideshow
  • Layout
  • Modal & Popup
  • How To
  • Resources

© 2023 Codeconvey.com - All rights reserved.