Skip to main content

CSS Text Animation Effects for Your Website (2024)

 


 
 

Looking to add some creative flair to your website? Check out these CSS Text Animation Effects for 2024! In this video, we'll show you how to bring your text to life with stylish animations that will captivate your visitors. From subtle fades to eye-catching transitions, you'll learn how to easily implement these effects on your website using CSS. Watch now and take your web design to the next level!

index.html 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Text Animation</title>
    <link rel="stylesheet" href="style.css">

</head>
<body>
    <h2 data-text="@CodingWithNexus">@Coding With Nexus</h2>
</body>
</html>


style.css 

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background:black ;
}
h2{
    position: relative;
    font-size: 2vw;
    color: black;
    -webkit-text-stroke: 0.2vw black;
   

}
h2::before{
    content: attr(data-text);
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
 color: rgb(238, 239, 246);
 text-shadow: 0 0 5px rgb(13, 127, 235);
 -webkit-text-stroke: 0vw rgb(9, 33, 152);
 border-right: 5px solid  rgb(6, 23, 91);
 overflow: hidden;
 animation: animate 6s linear infinite;
}
@keyframes animate{
   0% {
width: 0;
    }
    70%{
width: 100%;
    }
}









Comments

Popular posts from this blog

How to Build Your Own Image Uploader using HTML, CSS, and JS Tutorial

    Welcome to our step-by-step tutorial on creating your own image uploader using #html  , #css  , and JavaScript. In this video, we'll guide you through the process of building a simple yet effective image uploader for your web projects. With just a few lines of code, you'll learn how to create a user-friendly interface that allows users to upload images seamlessly. Whether you're a beginner or an experienced developer looking to enhance your skills, this tutorial is perfect for you. Follow along and empower yourself to create dynamic web applications with ease! Don't forget to like, share, and subscribe for more coding tutorials. Let's get started!  index.html   <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Drag & Drop Image Uploader </ title >...

Create an Animated Switch with HTML and CSS in 2024

  Create an Animated Switch with HTML and CSS in 2024 Learn how to create an animated switch using HTML and CSS in 2024! This tutorial will guide you through the process of building a sleek and modern switch element for your website. Enhance your web development skills and stay up-to-date with the latest design trends by mastering this technique. Watch now to level up your front-end development game!  index.html  <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Document </ title >     < link rel = "stylesheet" href = "style.css" > </ head > < body >     < label class = "switch" >         < input type = "checkbox" checked = "checked" >         < div class = "button" >  ...

Animated Switch

    index.html <! DOCTYPE html > < html lang = "en" > < head >     < meta charset = "UTF-8" >     < meta name = "viewport" content = "width=device-width, initial-scale=1.0" >     < title > Document </ title >     < link rel = "stylesheet" href = "style.css" > </ head > < body >     < label class = "switch" >         < input class = "cb" type = "checkbox" />         < span class = "toggle" >           < span class = "left" > off </ span >           < span class = "right" > on </ span >         </ span >       </ label >       </ body > </ html > style.css  /* The switch - the box around the slider */ .switch {     font-size : 17px ; ...