Saturday, April 25, 2020

5 Advanced Examples of Image Hovering


Hover effects on images (which click when the user hovers the mouse over an HTML element, in many cases an image, and are exhausted when the mouse is then moved) have long been one of the main interaction factors between page and user. But today, with the possibilities offered by modern client-side technologies, Website Designers can really give vent to creativity without limits. In this article we see 5 hovering animations on truly original images. All snippets can be viewed and tested on Code Pen .

1) Distribution in levels

"Levels" are the degrees of depth of an image, useful for breaking down the same image into several different components. Although this functionality is simple to implement with graphic tools, the same cannot be said for HTML , CSS and Javascript . Alvaro Monotoro, however, thanks to an excellent combination of these three languages, has produced an animation that allows, when the user passes the mouse, to highlight a level in a specific image.

The possible combinations are many.

2) CSS3 filters

With the possibilities offered by CSS 3 , many times the presence of Javascript is superfluous. It is necessary, however, to master all the most advanced dynamics, to implement a real replacement. In this snippet we observe a wise use of CSS3 filters that allow to produce very captivating (and different) effects when the mouse is hovered over the images.

3) Slide and Zoom

A combination of incredible CSS 3 effects combined : zoom on the image in partnership with sliding ! The user uses jQuery to make a toggle of the classes necessary for the production of the effect, but the final product can also be obtained through a Vanilla Javascript , keeping HTML and CSS unchanged.

4) Unfold and tooltip

Even in this case we have a combination of two animations different, where the final product is really pleasing, and can be applied to a series of HTML elements defined by the user.
Very minimal HTML layout :

<div class = "pic-container">
    <img src = "http://placehold.it/200x200" class = "pic" />
    <img src = "http://placehold.it/200x200" class = "pic" />
    <img src = "http://placehold.it/200x200" class = "pic" />
    <a class="pic-caption" href="https://twitter.com/_brunoweb">
        Text
    </a>
</ Div>
combined with advanced CSS and zero Javascript.

5) Shifting Reality

In this case we have the opposite factor: a single HTML container , zero CSS and a powerful Javascript for an effect that leaves no room for descriptions. View to believe.
Did you find it interesting?

Read also: Are you looking for Auditors in UAE


No comments:

Post a Comment