So, uh, withtheseexamples, essentiallyuphere, thistopexample I amshowingyouhowyoucankingtheborderradiustobasicallyturn a squareinto a circle.
Sobasicallywhat I didhereisthatcreated a div.
I gaveit a borderthatthinkit's fivepixelsblack s soyouhavethatborderthereandthenall I'm doingforthisparticularanimationis I'm simplygoingfrom a borderradiusof 0% to a borderradiusof 50%.
Andsothatisturning a squareinto a circle.
AndthisisallbeingdonewithCSSnowatthebottomhere.
What I'vedoneis I'vecreatedwhat's calledkeyframes.
Let's saywedo a semicolonhere, sobasicallyagain, youcanputmultipleweaken, butbothmultiplethingsinhereyoudofilewecouldtosavethanweknew.
Werefresh.
Wecanseenowitisgoingfrom a redsquareto a greencircle, right?
So, again, youmay.
Forwhateverreason, I didthatclassbeforewhereshowingyoulikealertanimationslikemaybeyouwannahaveananimationforanalert, likeifthetemperaturegoesabove a certainlevel, youwantwhat?
Andsowhat I'vedonehereisagainthesekeyframestheseaircalledhere, there I'vereferencedthemintoanimations, basicallyintwoclasses.
Andsoifwetake a looknowwecanseethatusingthesamekeyframesthatthesetwodifferentclasseshave a littlebitdifferentvariationandaredealingwith a keyframesseparately.
Sothetophere.
Sothisoneisred, Itisgoingslower.
Thebottomoneisblueon.
Obviouslyit's runningthroughtheanimations a lotfaster, buttheanimationitselfisthesame.
Soifyouwanttotheseclassestocontinuetostickaroundandyoufindthemtobevaluable, pleasethinkabouteitherbecoming a monthlymemberordonating a fewdollarsforthisproject.