@aniakubow: If you are finding CSS animations hard, I’m going to show you how to master them in 30 seconds. All you need to know, is that to create a basic animation, you have to fill in the following things. The name of your animation, you can call this whatever you want. The duration of your animation, so let’s say I want it to last 3 seconds. And the animation iteration count, I’m going to say infinite. Now, you are going to grab the animation name, so in this case it is “grow”, and define it using keyframes. In our basic example, I’m going to day that at 0 percent of my 3 second animation, the width of my div is 0 percent and at 100% of my 3 second animation, so when the time is up, the width of my div is 100%. This can be substituted by from and to, if you wish. Simple! Now, the duration can change to any amount of time like so, and the animation iteration count can be any number if not infinite. You can even add an animation direction, so I’m going to choose to add alternate, so that the animation alternates. Cool right? There are other sub-properties you can put which I listed below, and you can even do it in a shorthand, like so. So that these 4 lines, go to one. Once you Get the hand of this, you can get creative with your keyframes, so that different things happen at different percentages. Don’t forget to check out my free 12 hour video course on my YouTube channel for more html tips. Animation properties: animation-composition animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timeline animation-timing-function —HTML—
—CSS— div { animation: grow 3s infinite alternate; height: 40px; background-color: green; } @keyframes grow { 0% { width: 0%; } 100% { width: 100% } }

Code with Ania Kubow
Code with Ania Kubow
Open In TikTok:
Region: AE
Wednesday 29 January 2025 17:34:39 GMT
46050
3350
25
419

Music

Download

Comments

gaiusonosetale
🤍🖤 :
Your voice is so familiar, but I can't remember where, and it's eating me up 🤧🤧😹
2025-01-31 23:07:21
5
hercjay_tech
HercjayTech - Dev 👨‍💻 :
This is awesome. Love your videos 😅👍
2025-01-30 04:42:06
2
ralphtheflow
STILL WATERS :
nice work. I'm going to your YouTube ryt now
2025-03-06 22:38:40
0
mrhotbot
HotBot :
Definitely AI
2025-02-25 05:31:21
0
heisvegor
𝚄𝚉𝙾𝙼𝙰 𝚅𝙴𝙶𝙾𝚁 :
you're the woman from freecodecamp
2025-02-14 20:25:58
0
aman_christian
Aman☦️ :
u r the best 🥰🥰🥰 I love you so much 🥰🥰🥰
2025-02-04 17:01:29
0
techmora
TechMora :
Good content and video!
2025-02-01 03:25:32
0
papaotheo
PapaOtheo :
30 seconds is impossible
2025-01-31 08:35:03
0
officialmarvel_dc
Marvel DC :
what IDEs do you use
2025-01-30 10:02:47
0
egbontech
Egbon Emmanuel :
very helpful thank you
2025-02-01 08:59:46
0
techhippie007
Techippie🌺🔐 :
Love your content 👌
2025-01-30 16:39:57
0
scientist.fk_official
CEO of Wallnut :
oh 😅 my teachers here's too 😅 My teacher the ania from YouTube
2025-01-31 15:57:06
0
muktharayo
Mukthar Ayo :
Your content 👌🔥
2025-01-31 01:14:55
0
whykay_01
WHYKAY_01 :
Nice
2025-01-29 22:17:08
0
naeemkhano914
Naeem Khan :
❤️❤️❤️
2025-01-31 16:48:01
0
panuganda
joshuamugaya48@gmail.com. :
🙏🙏🙏
2025-01-31 07:09:53
0
To see more videos from user @aniakubow, please go to the Tikwm homepage.

Other Videos


About