hover effect Archives - csshint - A designer hub https://csshint.com/tag/hover-effect/ Sun, 19 Feb 2023 11:15:55 +0000 en-US hourly 1 https://wordpress.org/?v=6.3.4 Responsive Content Block With Hover Effect https://csshint.com/responsive-content-block-with-hover-effect/ Fri, 23 Oct 2020 04:06:26 +0000 http://csshint.com/?p=4233 Check out This Cool Responsive Content Block With Hover Effect for your projects. Designed by Dylan Mcleod. HTML [code language=”html”] <div id="btns"> <div class="btn" onclick="window.location=’#’"> <svg class="icon"> <use xlink:href="#helmet"></use>&nbsp;</svg> <h2>Heading</h2> <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p> </div> <div class="btn" onclick="window.location=’#’"> <svg class="icon"> <use xlink:href="#cutters"></use>&nbsp;</svg> <h2>Heading</h2> <p>Cum sociis natoque penatibus […]

The post Responsive Content Block With Hover Effect appeared first on csshint - A designer hub.

]]>
Check out This Cool Responsive Content Block With Hover Effect for your projects. Designed by Dylan Mcleod.

Responsive Content Block With Hover Effect

Responsive Content Block With Hover Effect


HTML

[code language=”html”]

<div id="btns">
<div class="btn" onclick="window.location=’#’">
<svg class="icon">
<use xlink:href="#helmet"></use>&nbsp;</svg>
<h2>Heading</h2>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
</div>
<div class="btn" onclick="window.location=’#’">
<svg class="icon">
<use xlink:href="#cutters"></use>&nbsp;</svg>
<h2>Heading</h2>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
</div>
<div class="btn" onclick="window.location=’#’">
<svg class="icon">
<use xlink:href="#heart"></use>&nbsp;</svg>
<h2>Heading</h2>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
</div>
<div class="btn" onclick="window.location=’#’">
<svg class="icon">
<use xlink:href="#caution"></use>&nbsp;</svg>
<h2>Heading</h2>
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
</div>
</div>

[/code]

CSS / SCSS

[code language=”css”]

$primary-color: #fff;
@mixin box-sizing {box-sizing: border-box;}
@mixin transition {transition: all .3s ease-in-out;}
@mixin boxshadow {box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.2);}

html {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
padding: 20px;
background: #ddf0fc;
@include box-sizing;
}

#btns * {
@include transition;
}

#btns {
max-width: 1200px;
margin: auto;
display: flex;
justify-content: space-around;
align-items: stretch;
flex-flow: row wrap;
@include boxshadow;
}

.btn {
position: relative;
padding: 10px 20px 25px;
width: 25%;
background: #111;
font-family: lato;
cursor: pointer;
@include box-sizing;
}

/* Button Backgrounds */

.btn:nth-child(1) {
background: #117ec3;
}

.btn:nth-child(2) {
background: #1491e1;
}

.btn:nth-child(3) {
background: #2ba1eb;
}

.btn:nth-child(4) {
background: #49afef;
}
/* Arrows */

.btn:nth-child(1):after,
.btn:nth-child(2):after,
.btn:nth-child(3):after {
position: absolute;
top: 45%;
right: -18px;
z-index: 1;
content: "";
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
border-left: 20px solid #117ec3;
@include transition;
}

.btn:nth-child(2):after {
border-left: 20px solid #1491e1;
}

.btn:nth-child(3):after {
border-left: 20px solid #2ba1eb;
}
/* Icon */

.btn .icon {
display: block;
margin: 10px auto;
width: 80px;
height: 80px;
transform-origin: center;
transform: scale(0.9);
color: $primary-color;
}

.btn .icon svg {
fill: currentColor;
}

.btn .icon path {
fill: currentColor;
}

.btn .icon {
fill: currentColor;
}

/* Text Styles */

.btn h2 {
margin-bottom: 15px;
text-align: center;
color: $primary-color;
font-family: raleway;
font-size: 1.4em;
line-height: 1em;
font-weight: 400;
}

.btn p {
color: $primary-color;
text-align: center;
font-size: 1em;
line-height: 1.5em;
font-weight: 300;
}

/* Hover Effects */

.btn:hover {
background: #0b6ca9;
}

.btn:hover:after {
border-left: 20px solid #0b6ca9;
}

.btn:hover .icon {
transform-origin: center;
transform: scale(1);
color: $primary-color;
}

.btn:hover h2 {
color: $primary-color;
}

/* Media Queries */

@media all and (max-width: 950px) and (min-width: 701px) {
.btn {
width: 50%;
}

.btn:nth-child(2):after {
border-left: 0px;
}
}

@media all and (max-width: 700px) and (min-width: 0px) {
.btn {
display: block;
width: 100%;
}

.btn:nth-child(1):after,
.btn:nth-child(2):after,
.btn:nth-child(3):after {
border-left: 0px;
}
}

[/code]

SVG Icon – Scale on Hover Buttons Snippet

The post Responsive Content Block With Hover Effect appeared first on csshint - A designer hub.

]]>
15+ Cool Animated CSS Hover Effects https://csshint.com/animated-css-hover-effects/ Fri, 22 May 2020 02:54:55 +0000 http://csshint.com/?p=1756 Latest Collection of free Amazing Animated Css Hover Effects Code Examples. See the Pen Hover.css by vavik (@vavik96) on CodePen. 1. Hover.css A collection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and so on. Easily apply to your own elements, modify or just use for inspiration. Available […]

The post 15+ Cool Animated CSS Hover Effects appeared first on csshint - A designer hub.

]]>
Latest Collection of free Amazing Animated Css Hover Effects Code Examples.

1. Hover.css

A collection of CSS3 powered hover effects to be applied to links, buttons, logos, SVG, featured images and so on. Easily apply to your own elements, modify or just use for inspiration. Available in CSS, Sass, and LESS.

Author

  • Vavik

demo and code Get Hosting

2. Rumble on Hover

Author

  • Kyle Foster

demo and code Get Hosting

3. Shaking Shapes

Author

  • Laura Montgomery

demo and code Get Hosting

4. Button on Hover Slide Effect

Author

  • RazorX

demo and code Get Hosting

5. Hover CSS3

Author

  • Berlin Eric

demo and code Get Hosting

6. Strikethrough Hover

Author

  • tsimenis

demo and code Get Hosting

7. Image with Slide Up Title

Author

  • LittleSnippets

demo and code Get Hosting

10. Gradient Button Hover

Author

  • Muhammed Erdem

demo and code Get Hosting

11. Fade Siblings on Hover

Author

  • Shaw

demo and code Get Hosting

12. Pure CSS Blur Hover Effect

Author

  • Matthew Craig

demo and code Get Hosting

13. Button Hover Effects

Author

  • Kyle Brumm

demo and code Get Hosting

14. Glitch Hover Effect

Author

  • Kevin Konrad Henriquez

demo and code Get Hosting

15. Thumbnail Hover Effect

Author

  • Aysha Anggraini

demo and code Get Hosting

The post 15+ Cool Animated CSS Hover Effects appeared first on csshint - A designer hub.

]]>