The Nun | Movie Card Design Using HTML & CSS | HTML CSS Tutorials | #webdevelopment

Hello Guys How Are you All. Today in this tutorial i will show you how to create a awesome animated movie card using HTML & CSS, this is going to be a single card but you can create multiple cards by taking inspiration from this tutorial for your movie website project.

Here In this project i use Html for create Structure of out Movie card. and CSS for design the card beautifully. 

Here in this tutorial i use many css properties like Transform, Transition, Transition- delay for create it animated.




Here is the HTML OF Movie Card👇


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Movie card</title>
    <!-- font-awesome CDN  -->
    <script src="https://kit.fontawesome.com/8385bc9e15.js" crossorigin="anonymous"></script>
    <!-- CSS Link  -->
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="movie-card">
        <img src="bg-img.jpg" alt="">
        <div class="content-box">
            <h2>The Nun : Chapter Two</h2>
            <div class="info">
                <div class="stars-rating">
                    <i class="fa-solid fa-star"></i>
                    <i class="fa-solid fa-star"></i>
                    <i class="fa-solid fa-star"></i>
                    <i class="fa-solid fa-star"></i>
                    <i class="fa-regular fa-star-half-stroke"></i>
                </div>
                <div class="movie-info">
                    <span>2023</span>
                    <span>-</span>
                    <span>1h50m</span>
                </div>
            </div>
            <p>The Nun: Chapter Two is a 2023 American gothic supernatural horror film directed by Michael Chaves.</p>
            <button>Watch Now</button>
        </div>
    </div>
</body>
</html>



Here is the CSS OF Movie Card👇

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

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

body{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #101117;
}

.movie-card{
    max-width: 700px;
    aspect-ratio: 9/6;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 16px 0px rgba(0, 0, 0, 0.6);
    transition: 0.6s ;
}

.movie-card:hover{
    transform: scale(1.03);
}

.movie-card img{
    width: 100%;
    height: 100%;
}

.movie-card .content-box{
    position: absolute;
    color: #ffffff;
    bottom: 0;
    left: 0;
    padding: 40px 60px;
    z-index: 1;
    transition: transform 0.6s ;
    transform: translateY(54%);
}

.movie-card:hover .content-box {
    transform: translateY(0);
}

.movie-card .content-box h2{
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    margin-bottom: 10px;
}

.movie-card .content-box .info{
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.4s ;
    transition-delay: 0.1s;
}

.movie-card:hover .content-box .info{
    transform: translateY(0px);
    opacity: 1;
}

.movie-card .content-box .stars-rating i{
    font-size: 14px;
}

.movie-card .content-box .movie-info span{
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    margin-right: 10px;
}

.movie-card .content-box p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.4s ;
    transition-delay: 0.2s;
}

.movie-card:hover .content-box p{
    transform: translateY(0px);
    opacity: 1;
}

.movie-card .content-box button{
    outline: none;
    border: none;
    cursor: pointer;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    background: #ffffff;
    color: #000000;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(40px);
    transition:  0.4s ;
    transition-delay: 0.3s;
}

.movie-card:hover .content-box button{
    transform: translateY(0px);
    opacity: 1;
}




Watch full Video of OF Movie Card👇





Download Source Code from my Telegram Channel 👇



Post a Comment

0Comments
Post a Comment (0)
email-signup-form-Image

Subscribe Us

To Get Notification About Our Latest Tutorial.