Тёмный

Typewriter Animation in CSS 

Clueless Expert
Подписаться 2 тыс.
Просмотров 124 тыс.
50% 1

No Javascript - Just pure HTML & CSS. Here's how to create a typewriter effect for websites.
You'll find 2 different typing animation styles. One like typing and step by step and one pretty smooth and fluid.
Here's where I s̶t̶o̶l̶e̶ inspired this from
codepen.io/den...
css-tricks.com...
#css #html #typewriter

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 79   
@ryanpatel2001
@ryanpatel2001 Год назад
Brilliant. Simple, and straight to the point. Thanks
@aronbarbosag3439
@aronbarbosag3439 Год назад
bro, i'm not english speaker, but your video is the only one that i really learn how to do this effect. sorry for my bad english. good job bro ! keep going the job
@victormarinviloria633
@victormarinviloria633 Год назад
This is such a creative way to do it! Thanks for sharing!
@CrazyTajdine
@CrazyTajdine 4 месяца назад
this like is for the cat and this heart
@sihxies2037
@sihxies2037 Год назад
Simple, Straightforward and easy to understand, Thankss for the info. Btw I liked, how's the cat
@cluelessexpert
@cluelessexpert Год назад
he got the finest tuna available on amazon , thx for asking
@sirphiriladki5531
@sirphiriladki5531 3 месяца назад
That last line is amazing😂
@SeriousSnake
@SeriousSnake 9 месяцев назад
Terrific! I could not get the typing bar, but that is what I wanted. Thanks for the video!
@joeyreyes9666
@joeyreyes9666 6 месяцев назад
Beautiful and way easier than I thought. Thank you! :)
@pramana47
@pramana47 5 месяцев назад
this works like a charm, thx man!
@nikhilgupta6415
@nikhilgupta6415 5 месяцев назад
Brilliant. Simple and easily done.
@jotanews1776
@jotanews1776 Год назад
top-tier content, really glad i found this gem.
@ujjjdgabehdy6147
@ujjjdgabehdy6147 5 месяцев назад
thanks! thats exacly what i was looking for! very simple
@sebastian9192
@sebastian9192 Год назад
hello, what about if text wraps and you have more lines of text??
@AlanDanielx
@AlanDanielx 10 месяцев назад
he just made a one line solution lol
@ci2179
@ci2179 4 месяца назад
Nowrap is not put, cursor denotes as border right 5 px assign while minimize ur screen... Border puts entire line... Nowrap necessary for this animation
@shehiriron69
@shehiriron69 Год назад
Why doesn't the animation work?
@harrisonofordu4222
@harrisonofordu4222 26 дней назад
brilliant
@yordanov5.0
@yordanov5.0 3 месяца назад
Brotha you are legend.
@karimahmed2510
@karimahmed2510 9 месяцев назад
how to make it write 3 words without js ??
@chrisambatti
@chrisambatti 7 месяцев назад
What a cool way to teach
@tommytanti1776
@tommytanti1776 Год назад
How to loop it?
@user-fn4sz9nj4k
@user-fn4sz9nj4k 4 месяца назад
amm.. why does the cursor goes to the right side side of the screen??
@SL_Web_Hero
@SL_Web_Hero 8 месяцев назад
cool,but I can,t center this animated text.
@user14NotFound
@user14NotFound 8 месяцев назад
how to make an animation of typing and deleting, then there is writing. example type: my hobby is fishing. and deleting fishing. then add to it playing football. like that, if you can please make it
@jonteel0
@jonteel0 7 месяцев назад
.typing-animation::after { content: ''; animation: typing 5s steps(40) forwards, deleting 2s steps(40) 5s forwards; overflow: hidden; display: inline-block; vertical-align: bottom; } @keyframes typing { from { width: 0; } to { width: 100%; } } @keyframes deleting { from { width: 100%; } to { width: 0; } } document.addEventListener('DOMContentLoaded', function () { var div = document.querySelector('.typing-animation'); var newText = 'playing football.'; setTimeout(function () { div.setAttribute('data-text', newText); div.style.animation = 'typing 5s steps(40) forwards'; }, 7000); // Adjust the timing according to your need });
@ArbiSalah-nt8fv
@ArbiSalah-nt8fv 8 дней назад
I have problème with key frames typing
@muhammadumarsotvoldiev8768
@muhammadumarsotvoldiev8768 8 месяцев назад
Thank you very much!
@prerit714
@prerit714 Год назад
You asked like? Imma give you a wholeass subscribe
@coding-id6dh
@coding-id6dh 7 месяцев назад
i am doing the same way. but it's not working!
@iamadriansantos
@iamadriansantos 3 месяца назад
thank you!
@JoshDaniel7
@JoshDaniel7 3 месяца назад
Any idea how to make this responsive after the animation?
@RIP123
@RIP123 Год назад
Cool but is it possible to make it responsive?
@JawadKhan-ky6yt
@JawadKhan-ky6yt Год назад
Liked for your cat.
@PatrikRasch
@PatrikRasch 11 месяцев назад
Lmao wish I could donate 1000 likes to feed that stronk cat
@Owen-by7db
@Owen-by7db 9 месяцев назад
I love your video
@ci2179
@ci2179 4 месяца назад
Its not working for me... What mistakes i made i dont know
@stavroskefaleas6320
@stavroskefaleas6320 8 месяцев назад
Is there any way I can convert this to an animated gif?
@bakardembadia4361
@bakardembadia4361 8 месяцев назад
how do i make it work with a paragraph ? I thought about having each line separated and copy past the css for each of them but idk how to delay the animation for each line so they do not happen at the same time
@nokky070
@nokky070 6 месяцев назад
Ehhh it isn't perfect but what i done is i removed the white-space in the css
@nathanbrown2625
@nathanbrown2625 4 месяца назад
is there a way to remove the cursor after it completes going over the intended text?
@smashbrick
@smashbrick 4 месяца назад
Did you figure this out?
@kimuthgemink
@kimuthgemink 10 месяцев назад
kalau dibuat looping tapi delay dulu bisa ga mas? caranya gimana?
@vlad7951
@vlad7951 2 месяца назад
Hope your cat is well
@bw0ns4mdi35
@bw0ns4mdi35 Год назад
When I put the steps part, the animation doesn't work. I rmeove the steps and it does work. But I'd really like to make the steps animation. What would be the problem?
@cluelessexpert
@cluelessexpert Год назад
can you elaborate that more? Maybe you misspelled the animation names or something with the width
@bw0ns4mdi35
@bw0ns4mdi35 Год назад
​@@cluelessexpert I already fixed it. Thanks!!
@andro5283
@andro5283 5 месяцев назад
how did you achieve the fix for this? @@bw0ns4mdi35
@chameleonnn
@chameleonnn Год назад
wow so simple
@emni-tech
@emni-tech Год назад
redid everything like you did in the video, the animation doesn't happen at all :(
@cluelessexpert
@cluelessexpert Год назад
can you give more details my g, maybe we'll solve it
@javierserna6631
@javierserna6631 Год назад
good video, but not working infinite property, thanks
@adriankarlosiangco
@adriankarlosiangco Год назад
bro, is there a way to put a delay like 4s then loop again from the start?
@cluelessexpert
@cluelessexpert Год назад
I asked the Bing AI and it gave me this and it seems to work. just replace this for everything after line 11 animation: typing 6s steps(15, end) infinite, cursor .4s step-end infinite alternate; } /* cursor blinking */ @keyframes cursor { 50% { border-color: transparent } } /* typing effect */ @keyframes typing { 0% { width: 0 } 33.33% { width: 100% } /* typing ends */ 100% { width: 100% } /* pause for remaining time (4s) */ }
@adriankarlosiangco
@adriankarlosiangco Год назад
@@cluelessexpert thanks bro its working now =)
@slach9056
@slach9056 Год назад
do you guys have any idea about how can i turn this animation into a hover? .giroscopio{ width:100%; white-space: nowrap; overflow: hidden; border-right: solid 2px; animation: typing 2s steps(18), cursor .4s step-end infinite alternate; } @keyframes cursor { 50% {border-color:transparent} } @keyframes typing { from { width:0 } } i want to add something like: father-element:hover .giroscopio {execute the animation}
@Kk-ql8rz
@Kk-ql8rz 7 месяцев назад
just put the animation property in hover state
@nielanthonyflores1714
@nielanthonyflores1714 Год назад
How about changing text after typing
@cluelessexpert
@cluelessexpert Год назад
if you don't mind using scss try maybe try this codepen.io/geoffgraham/pen/MWVmxQp
@dr.manthanos7781
@dr.manthanos7781 Год назад
is it any way to do this without the typing bar?
@cluelessexpert
@cluelessexpert Год назад
You mean the line on the right side?
@dr.manthanos7781
@dr.manthanos7781 Год назад
@@cluelessexpert yeah, i mean that bar that acts like a cursor while typing
@cluelessexpert
@cluelessexpert Год назад
Yeah, just don’t add it or make the color transparent
@Techno_2709
@Techno_2709 11 месяцев назад
source code pls
@MTHOVTER
@MTHOVTER 5 месяцев назад
Para los que quieran mejorarlo y poder crear textos de diferentes tamaños sin perder el efecto: - En tu codigo CSS escribe: :root { --typing-steps: 0; } - Modifica dentro de .text{}: .text{ animation: typing 2s steps(var(--typing-steps)), cursor .4s step-end infinite alternate; } - Por ejemplo, dentro de tu index.html puedes crear diferentes textos usando: Hola Hola gente :D Obviamente el numero de pasos debe ser el equivalente al numero de caracteres que tiene la oración (Contando caracteres en blanco)
@AnuragSingh-nx4ct
@AnuragSingh-nx4ct 11 месяцев назад
Only print one line
@rohanrajput_9
@rohanrajput_9 Год назад
I did one comment too, feed your cat
@Technical_yaar
@Technical_yaar Год назад
I didn't get it can anybody explain?
@aintxsocial
@aintxsocial 7 месяцев назад
Get gud
@Nova_BG
@Nova_BG 5 месяцев назад
Just copy🤐
@damonwu9658
@damonwu9658 Год назад
This is a styled-components version: const cursor = keyframes` 50% { border-color: transparent; } `; const typing = keyframes` from { width: 0; } `; const typeWriterAnimation = (props) => css` ${typing} 4s steps(${props.steps}), ${cursor} 4s step-end infinite alternate; `; const TypeWriterWrapper = styled.p` font-size: 1rem; letter-spacing: 0.05rem; font-family: monospace; border-right: 6px solid; width: 100%; white-space: nowrap; overflow: hidden; animation: ${typeWriterAnimation}; `;
@Elite_-ie8bs
@Elite_-ie8bs 9 месяцев назад
I wish i could like this vid multiple times to feed your cat, but youtube onyl allows 1 like.... Edit:- i made some typo...
@louisedemeanbalili5601
@louisedemeanbalili5601 7 месяцев назад
DI MUGAnA HOY YAWA
@moonpet786
@moonpet786 5 месяцев назад
I am gonna feed your cat with 100 likes
@busimo
@busimo 5 месяцев назад
I thought bro said kindly donate 1 lac
@cluelessexpert
@cluelessexpert 5 месяцев назад
What’s that
@busimo
@busimo 5 месяцев назад
1 lac means 100k in Hindi@@cluelessexpert
@cluelessexpert
@cluelessexpert 5 месяцев назад
That’s also appreciated
@leftistCoder
@leftistCoder 2 месяца назад
test comment
Далее
iOS 16 Lockscreen Style Clock Effect in HTML & CSS
1:32
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Просмотров 1,9 млн
iPhone 16 для НИЩЕБРОДОВ!
00:51
Просмотров 1,3 млн
Create Crazy 3D Image Slider Effects Using CSS Only
14:07
Customizable typewriter animation with CSS
19:27
Просмотров 346 тыс.
Learn CSS Border Animations in 6 Minutes
5:57
Просмотров 116 тыс.
CSS Text Typing Animation | HTML & CSS
13:38
Просмотров 45 тыс.
Please stop using px for font-size.
15:18
Просмотров 156 тыс.
Top 10 CSS One Liners That Will Blow Your Mind
13:34
Просмотров 952 тыс.
Subtle, yet Beautiful Scroll Animations
5:04
Просмотров 1,7 млн
Award Winning Animation With Only 20 Lines Of CSS?
6:59
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Просмотров 1,9 млн