Looking for help to implement the hover effect 4 on the following site: .
I was able to create a test on JSFiddle, check it out here: https://jsfiddle.net/34aaqh70/
Struggling to make it auto-responsive, any tips would be appreciated.
If there's a video tutorial that demonstrates this effect, please do share!
Here is the code I've been working on:
*------ Basic Setup ------*/ * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: white;
color: #fff;
font-family: 'Raleway', 'Lato', 'Arial', sans-serif;
font-weight: normal;
font-size: 20px;
text-rendering: optimizeLegibility;
overflow-x: hidden;
}
.clearfix {
zoom: 1
}
.clearfix:after {
content: '.';
clear: both;
display: block;
height: 0;
visibility: hidden;
}
.row {
max-width: 1140px;
margin: 0 auto;
}
/*------ Dividers ------*/
.divider {
width: 25%;
height: 30px;
border-bottom: 1px solid rgba(89, 89, 89, 0.65);
text-align: center;
margin: auto;
margin-bottom: 4%;
}
.divider span {
font-size: 200%;
background-color: white;
padding: 0 10px;
}
/*------ DV BOX ------*/
.dv-box {
padding-bottom: 5%;
}
/*------ Donation ------*/
.donate {
padding-top: 5%;
background-color: white;
}
.donate-content {
color: grey;
text-align: center;
}
.donate h1 {
margin-bottom: 0%;
}
.donate-content .description {
margin-top: 0%;
}
.donate-content p {
padding-left: 5%;
padding-right: 5%;
}
.donate img {
width: 50%;
height: auto;
opacity: 1;
}
.donate img:hover {
opacity: .7;
}
/*------ Volunteer ------*/
.volunteer {
padding-top: 5%;
background-color: white;
padding-bottom: 5%;
}
.volunteer-content {
color: grey;
text-align: center;
}
.volunteer h1 {
margin-bottom: -.5%;
}
.volunteer-content .description {
margin-top: 0%;
}
.volunteer-content p {
padding-left: 5%;
padding-right: 5%;
}
.volunteer img {
width: 60%;
height: auto;
opacity: .9;
}
.volunteer img:hover {
opacity: 0.7;
}
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js">
</head>
...
</body>
</html>