Answers for "css write in text animation"

CSS
0

text change animation css

h1:before{
    content: 'Original Text';
    font-size: 600%;
    animation-name: head;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

@keyframes head {
    0% {font-size:600%; opacity:1;}
    25% {font-size:570%; opacity:0;}
    50% {font-size:600%; opacity:1;}
    65% {font-size:570%; opacity:0;}
    80% {font-size:600%; opacity:1; content: "Changed Text"}
    90% {font-size:570%; opacity:0;}
    100% {font-size:600%;opacity:1; content: "Original Text"}
}
Posted by: Guest on July-28-2020
0

which text is used to create text animations in html

<!-- For up Direction-->
<marquee width="60%" direction="up" height="100px"></marquee>
<!-- For Down Direction-->
<marquee width="60%" direction="down" height="100px"></marquee>
<!-- For Right Direction-->
<marquee width="60%" direction="right" height="100px"></marquee>
<!-- For Left Direction-->
<marquee width="60%" direction="left" height="100px"></marquee>
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language