Now, togetstarted, I have a completelyblankvisualstudiocodeprojectopenandontheright.
I havethefinalversionofourproject, andasyoucansee, it's a verysimpleproject.
Wehave a pictureof a sonandthen a swapthemesbutton, andwhenweclickthatbutton, thatsunisgonnagoofftotherightsideofourscreenandthemoonisgonnacomeinfromtheleftsideofourscreen, andeverythingisgonnasmoothlytransitiontothedarknameandthenmovieclickswapthingsagain.
However, youwanttomakeiteitherquickerorsloweranimation, dependingonyourneeds.
Sonowinsideofourbodydark.
Let's overwritesomeofthesecolorstomakesurethatthecolorswewantforthisdarkthingsothefirstthingwewanttodoisthisaccentcolorinourcaseisaccentcolorisgoingtobe D zero d zerohopes d zero d 066 Andthat's goingtobethisyellowishcolorthatyouseeoverhere.
So I had a littlebitof a padding 0.5 e m and 1 p.m. justtomakeit a largerbutton, andwe'lldo a borderradiushere, whichisgoingtobe 0.3 e.
M.
Also, we'regonnaremovethatborderarounditbecause I don't reallylikethatborder.
Lookwhereyou'regonnahave a flatlookingbuttonhere, which I thinklooksprettygoodandlastly, whichcanremovetheoutlinefromitsowedon't getthatannoyingbluelookingoutlined.
Butbecauseweremovetheoutline, weneedtomakesurethatwecomebackinandhad a hoverandfocusedit.
Asyoucanseeherewehave a hoverfocusstate, whichisgoingtobethisenlargementofthebutton.
So, inordertofixthatinourstyleswhichjustgointoourbodyandwhatwe'regonnadoisjustadding a transitiontrainingpositionandthistransitionisjustgoingtobeourtransitiondelayjustlikethat.
Do a positionofabsoluteandifwesaveimmediately, canseethey'rejustsetinthecenterofourscreen, andwhatwewanttodoismakesurethistakesuptheentiresizeofourscreen.
Soputthetopofzero.
Sothat's goingtostartallthewayatthetop.
Andtheheightisactuallygoingtobesomethingthat's slightlydifferentthantheentireheightofourscreen, wherewe'reactuallygoingtodosettheheightto 200 V Menand V men.
Andthisisbecauseifwedidtheheight, thiswouldbe a verylargecontainerversustheactualwidthofourscreen.
Soinsteadofhaving a nicecircularpath.
Itwouldactuallyhave a reallyoblongkindofovalshapedpath, andwewannahavemoreofthecircularshapedpath.
Thisiswherewe'regoingwiththemenhereinsteadofthe H.
Anotherthingyou'llimmediatelynoticeiswenolongercaninteractwithourbuttonverywell, asyoucanseewhat I caninthatcursorpointer, andonlywhenwesufferincertainspotsareweabletointeractwithit.
Soforremovethisandjumpintoourjob a scriptwecanactuallygetthatSunMooncontainerSoldierssaySunMooncontainerisgoingtobeequaltodocumentthatqueryselectorofthatclassofsun, mooncontainerlips, mooncontainerjustlikethat.