Skip to content

goliudaykumar/Expanding_cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

<title>Expanding Card</title> <style> *{ box-sizing: border-box; margin: 0;; padding: 0; }
    body{
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        background-color: rgb(1, 33, 33);
        font-family: Arial, Helvetica, sans-serif;
    }

    .container{
        display: flex;
        gap: 15px;
    }

    .card{
        background-color: #504d4d;
        width: 150px; 
        height: 150px;
        transition: all 0.3s ease;
        border-radius: 10px;
        overflow: hidden;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        position: relative;
        text-align: center;
    }

    .card:hover{
        width: 200px;
        height: 200px;
        background-color: #555;
    }

    .card .content{
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .card:hover .content{
        opacity: 1;
    }

    .card .title{
        font-size: 1.5em;
        font-weight: bold;
    }

    .card .decription{
        font-size: 1em;
        opacity: 0;
    }
    .card:hover .decription{
        opacity: 1;
    }
</style>
Card-1
More Info
Card-2
More Info
Card-3
More Info

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published