<div class="container">
<div class="row">
<div class="col-md-3">
<article class="team blue">
<div class="photo">
<img class="pic" src="https://image.ibb.co/kcBGMS/profile_test02.jpg" alt="libby">
</div>
<div class="profile-text">
<h1 class="title">Libby</h1>
<span class="position">Web Designer</span>
</div>
<ul class="social-icons">
<li><a href="" class="fa fa-facebook"></a></li>
<li><a href="" class="fa fa-twitter"></a></li>
<li><a href="" class="fa fa-linkedin"></a></li>
<li><a href="" class="fa fa-dribbble"></a></li>
</ul>
</article>
</div>
<div class="col-md-3">
<article class="team green">
<div class="photo">
<img src="https://image.ibb.co/mpRLNS/mick_UI.jpg" alt="Mick">
</div>
<div class="profile-text">
<h1 class="title">Mick</h1>
<span class="position">Web Developer</span>
</div>
<ul class="social-icons">
<li><a href="" class="fa fa-facebook"></a></li>
<li><a href="" class="fa fa-twitter"></a></li>
<li><a href="" class="fa fa-linkedin"></a></li>
<li><a href="" class="fa fa-dribbble"></a></li>
</ul>
</article>
</div>
</div>
</div>
$blueGradient: rgba(103, 188, 223, .8);
$lightGreen: rgba(188, 219, 183, .5);
$green: rgba(119, 180, 109, .5);
$green-border: rgba(171, 221, 164, 0.5);
$blue: rgba(80, 205, 227, 1);
$blue-border: rgba(147, 223, 236, 1);
body {
background: linear-gradient(to right, $lightGreen, $blueGradient), url('https://image.ibb.co/mdDPU7/clouds_cornfield_countryside_158827.jpg') center no-repeat;
background-size: cover;
position: relative;
height: 100vh;
font-family: 'Open Sans', sans-serif;
}
.team {
padding: 30px 0 40px;
margin-top: 60px;
background: #fff;
text-align: center;
overflow: hidden;
position: relative;
cursor: pointer;
box-shadow: 0 0 25px 1px rgba(0, 0, 0, .3);
.photo {
display: inline-block;
width: 130px;
height: 130px;
margin-bottom: 50px;
position: relative;
z-index: 1;
}
}
.blue .photo::before {
content: '';
width: 100%;
height: 0;
border-radius: 50%;
background: $blue;
position: absolute;
bottom: 130%;
right: 0;
left: 0;
transform: scale(3);
transition: all .3s 0s ease-in-out;
}
.green .photo::before {
content: '';
width: 100%;
height: 0;
border-radius: 50%;
background: $green;
position: absolute;
bottom: 130%;
right: 0;
left: 0;
transform: scale(3);
transition: all .3s 0s ease-in-out;
}
.team:hover .photo::before {
height: 100%;
}
.blue .pic::after {
content: '';
width: 100%;
height: 100%;
border-radius: 50%;
background: $blue;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
.green .pic::after {
content: '';
width: 100%;
height: 100%;
border-radius: 50%;
background: $blue;
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
.team .photo img {
width: 100%;
height: auto;
border-radius: 50%;
transform: scale(1);
transition: all .9s 0s ease;
}
.blue:hover .photo img {
box-shadow: 0 0 0 14px $blue-border;
transform: scale(.6);
}
.green:hover .photo img {
box-shadow: 0 0 0 14px $blue-border;
transform: scale(.6);
}
.profile-text {
margin-bottom: 30px;
.title {
font-size: 2rem;
font-weight: 700;
color: #333;
letter-spacing: 1.5px;
text-transform: capitalize;
margin-bottom: 6px;
transition: all .3s ease;
}
.position {
display: block;
font-size: 1.5rem;
color: #555;
transition: all .3s .05s ease;
}
}
.team:hover .profile-text .title {
transform: translateY(-50px) scale(1.5);
}
.team:hover .profile-text .position {
transform: translateY(-40px) scale(1.2);
}
.blue .social-icons {
width: 100%;
list-style: none;
padding: 0;
margin: 0;
background: $blue;
position: absolute;
bottom: -100px;
left: 0;
transition: all .6s ease;
li {
display: inline-block;
a {
display: block;
padding: 8px;
font-size: 1.5rem;
color: #fff;
text-decoration: none;
transition: all .5s ease;
&:hover {
color: $blue;
background: #fff;
}
}
}
}
.green .social-icons {
width: 100%;
list-style: none;
padding: 0;
margin: 0;
background: $green;
position: absolute;
bottom: -100px;
left: 0;
transition: all .6s ease;
li {
display: inline-block;
a {
display: block;
padding: 8px;
font-size: 1.5rem;
color: #fff;
text-decoration: none;
transition: all .5s ease;
&:hover {
color: $green;
background: #fff;
}
}
}
}
.team:hover .social-icons {
bottom: 0;
}
View Compiled