Skip to content

Instantly share code, notes, and snippets.

@wpflames
Created August 28, 2020 16:20
Show Gist options
  • Save wpflames/0788cff6b606a93800df77cc5f501df8 to your computer and use it in GitHub Desktop.
Save wpflames/0788cff6b606a93800df77cc5f501df8 to your computer and use it in GitHub Desktop.
Cards Hover Animation with CSS Flexbox
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Box Model Using CSS Flexbox</title>
<link rel="stylesheet" href="assets/css/style.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="card">
<div class="imgBx">
<img src="images/img-01.jpg" alt="">
</div>
<div class="content">
<h2>Card One</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<a href="#">Read More</a>
</div>
</div>
<div class="card">
<div class="imgBx">
<img src="images/img-02.jpg" alt="">
</div>
<div class="content">
<h2>Card Two</h2>
<p>Lorem ipsum dolor sit amet consectetur adipiscing elit.</p>
<a href="#">Read More</a>
</div>
</div>
<div class="card">
<div class="imgBx">
<img src="images/img-03.jpg" alt="">
</div>
<div class="content">
<h2>Card Three</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<a href="#">Read More</a>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment