html css card slider || hover card effects || profile card html and css effect
Description-.- Hi, thanks for watching our video about html css card slider || hover card effects || profile card html and css effects!
In this video we’ll walk you through:
* Amazing hover effects icon
*Css different query
*with secure code
ABOUT OUR CHANNEL
Our channel is about coding. We cover lots of cool stuff such as "HTML", "CSS","BOOTSTRAP 5", and "JAVASCRIPT" ..
Check out our channel here:
Don’t forget to subscribe!
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width,
initial-scale=1">
<link rel="stylesheet" type="text/css" media="screen"
href="style.css" />
<link href="https://stackpath.bootstrapcdn.com/font-awesome/
4.7.0/css/font-awesome.min.css" rel="stylesheet"
integrity=
"sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3S
l0sibVcOQVnN"crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
<title>Profile hover card effects</title>
</head>
<body>
<div class="container">
<div class="card">
<!-- slide 1 -->
<div class="slide slide1">
<div class="content">
<div class="icon">
<i class="fa fa-user-circle" aria-hidden="true"></i>
</div>
</div>
</div>
<!-- slide 2 -->
<div class="slide slide2">
<div class="content">
<h3>
Hello there!
</h3>
<p>Trust yourself and keep going</p>
</div>
</div>
</div>
</div>
</body>
</html>
CSS
body
{
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: sans-serif;
background-color: #f1f1f1;
}
.container .card .icon
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #2c73df;
}
.container .card .icon .fa
{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 80px;
color: #fff;
}
.container .card .slide
{
width: 300px;
height: 200px;
transition: 0.5s;
}
.container .card .slide.slide1
{
position: relative;
display: flex;
justify-content: center;
align-items: center;
z-index: 1;
transition: .7s;
transform: translateY(100px);
}
.container .card:hover .slide.slide1
{
transform: translateY(0px);
}
.container .card .slide.slide2
{
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
box-sizing:border-box ;
transition: .8s;
transform: translateY(-100px);
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.container .card:hover .slide.slide2
{
transform: translateY(0);
}
.container .card .slide.slide2::after
{
content: "";
position: absolute;
width: 30px;
height: 4px;
bottom: 15px;
left:50%;
right: 50%;
transform: translateX(-50%);
background: #2c73df;
}
.container .card .slide.slide2 .content p
{
margin: 0;
padding: 0;
text-align: center;
color: #414141;
}
.container .card .slide.slide2 .content h3
{
margin: 0 0 10px 0;
padding: 0;
font-size: 24px;
text-align: center;
color: #414141;
}
Just copy it on your project
And Don't forget to Subscribe To my youtube channel link
Subscribe me
Tags:
cards
