When my web page loads, using CSS, I want the text "widget world" to appear across the top as if someone were writing it manually; one letter at a time would appear.
I'm going to use a cursive font. There would be a few milliseconds delay in between each letter appearing.
I thought to make each letter a separate div then fade them in one by one.
In the Animation Pane, select the arrow next to your animation, and select Effect Options. In the dialog box, on the Effect tab under Enhancements, select the arrow next to Animate text, and select By letter.
Text-reveal is a type of effect in which all the alphabets of the text are revealed one by one in some animated way.
You can add an animation to grouped objects, text, and more. Press Ctrl and select the objects you want. Select Format > Group > Group to group the objects together. Select Animations and choose an animation.
Here's a snippet for something that you are looking for.
p{
color: Pink;
font-family: "Courier";
font-size: 20px;
margin: 10px 0 0 10px;
white-space: nowrap;
overflow: hidden;
width: 30em;
animation: type 4s steps(60, end);
}
@keyframes type{
from { width: 0; }
}
<p>Hi folks, this is typing animation using CSS</p>
Maybe this way will fit you: fixed width for inline-block and animation for decrease or increase its width
div {
display: inline-block;
overflow: hidden;
white-space: nowrap;
animation: example 2s linear 0s infinite alternate;
}
@keyframes example {
from {
width: 0;
}
to {
width: 150px;
}
}
<div>some text</div>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With