Amazing Card Fill Hover Using HTML & CSS

Hello Guys,

Today I created a Amazing Card Fill Hover Using HTML & CSS. In this card I am using only HTML and CSS for hover animation.

<div class=”row”>
<div class=”card”>
<h4>What is a Frontend Develoment…


This content originally appeared on DEV Community and was authored by Nikhil Bobade

Hello Guys,

Today I created a Amazing Card Fill Hover Using HTML & CSS. In this card I am using only HTML and CSS for hover animation.

 <div class="row">
        <div class="card">
            <h4>What is a Frontend Develoment?</h4>
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ullam porro similique aliquid debitis ipsam soluta dolorum ipsa! Voluptate, suscipit iure.</p>
        </div>
    </div>

This is a simple html I am using for card. For hover effect I am using card::before tag for position and after hover I only scale the .card:hover::before property.

@import url("https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&subset=devanagari,latin-ext");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #343a40;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  user-select: none;
}

.card {
  border-radius: 10px;
  filter: drop-shadow(0 5px 10px 0 #ffffff);
  width: 400px;
  height: 180px;
  background-color: #ffffff;
  padding: 20px;
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: 0.6s ease-in;
}

.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -15px;
  right: -15px;
  background: #7952b3;
  height:220px;
  width: 25px;
  border-radius: 32px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.25s ease-out;
}

.card:hover::before{
    transition-delay:0.2s ;

  transform: scale(40);
}

.card:hover{
    color: #ffffff;

}

.card p{
    padding: 10px 0;
}

If you find this useful in a post like and save this post also comments about your thoughts and new ideas for post.

For more content follow me on Instagram @developer_nikhil27.

Thank you!


This content originally appeared on DEV Community and was authored by Nikhil Bobade


Print Share Comment Cite Upload Translate Updates
APA

Nikhil Bobade | Sciencx (2021-06-18T06:34:15+00:00) Amazing Card Fill Hover Using HTML & CSS. Retrieved from https://www.scien.cx/2021/06/18/amazing-card-fill-hover-using-html-css/

MLA
" » Amazing Card Fill Hover Using HTML & CSS." Nikhil Bobade | Sciencx - Friday June 18, 2021, https://www.scien.cx/2021/06/18/amazing-card-fill-hover-using-html-css/
HARVARD
Nikhil Bobade | Sciencx Friday June 18, 2021 » Amazing Card Fill Hover Using HTML & CSS., viewed ,<https://www.scien.cx/2021/06/18/amazing-card-fill-hover-using-html-css/>
VANCOUVER
Nikhil Bobade | Sciencx - » Amazing Card Fill Hover Using HTML & CSS. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/06/18/amazing-card-fill-hover-using-html-css/
CHICAGO
" » Amazing Card Fill Hover Using HTML & CSS." Nikhil Bobade | Sciencx - Accessed . https://www.scien.cx/2021/06/18/amazing-card-fill-hover-using-html-css/
IEEE
" » Amazing Card Fill Hover Using HTML & CSS." Nikhil Bobade | Sciencx [Online]. Available: https://www.scien.cx/2021/06/18/amazing-card-fill-hover-using-html-css/. [Accessed: ]
rf:citation
» Amazing Card Fill Hover Using HTML & CSS | Nikhil Bobade | Sciencx | https://www.scien.cx/2021/06/18/amazing-card-fill-hover-using-html-css/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.