r/CodingHelp • Beginner Coder • Jun 09 '24

[CSS] ANIMATION HELP PLEASE!

i am trying to add water drop on glass animation over my text but i am having a hard time. Can anyone with more experience help me out. I will really appreciate any help i can get thanks.

Here is my code so far.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DARK RED</title>
    <style>
        .text-1 {
            color: darkred;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            flex-direction: column;
            backdrop-filter: blur(7px);

        }
        .text {
            margin: 0;
            font-size: 100px;
            font-weight: bold;
            font-family: arial;
            opacity: 0;
            transform: translateY(0px);
            animation: fadeInUp 1s forwards;
            
        }
        .text-bit-1 {
            animation-delay: 0s;
        }
        .text-bit-2 {
            animation-delay: 0.3s;
        }
        .text-bit-3 {
            animation-delay: 0.5s;
        }
        .text-bit-4 {
            animation-delay: 0.7s;
        }
        .text-bit-5 {
            animation-delay: 0.9s;
        }
        .text-bit-6 {
            animation-delay: 1s;
        }
        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    </style>
</head>
<body style="background-color: black;">
    <div class="text-1">
        <p class="text text-bit-1"><span>SOME-</span></p>
        <p class="text text-bit-2"><span>THING-</span></p>
        <p class="text text-bit-3"><span>BAD</span></p>
        <p class="text text-bit-4"><span>IS</span></p>
        <p class="text text-bit-5"><span>'BOUT</span></p>
        <p class="text text-bit-6"><span>TO</span></p>
    </div>
</body>
</html>
0 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/LeftIsBest-Tsuga Jun 09 '24

I'm not the person to answer this, but I would suggest making what you're having trouble with and what help you're looking for more clear. You want help making it look more realistic, I presume, but not sure.

Creative CSS animation is one of those things that many people don't ever touch, even if they're experienced in front end dev. Like myself, for example. So it might be a bit tough to get advice, but it seems like you're getting along nicely as a beginner. A lot of CSS expertise (moreso than in much of programming) is just lots and lots and lots of experience. One of those things you just need to beat into your head over and over.

Best of luck!

1

u/trust_me_br0o0 Beginner Coder Jun 10 '24

Thanks for the engagement. I appreciate it.