Itreallyaddsthatextralittlepolishthatmakes a websitegofromgoodtoamazing.
Sotoday, inthisvideo, I'm gonnashowyouhowtoreally, reallyeasilyimplementpagetransitionsinyourownwebsite, whichgetstartednow, asalways, ontheleft, I havevisualstudiocodeopento a completelyblankprojectfolderandontheright, I actuallythedocumentationforthelibrarywe'regonnabeusingforthesepagetransitions.
Youjustcomeinhere a typeinindexdothtmlandifyou'reinvisualstudiocode, youcanjusttypeexclamationpointhit, enter, andit's goingtobuildoutyourboyorplainHTMLforyou.
Andwecouldjustputhereourtitleishome.
Thenextthingweneedtodoisincludethatscripttag, andyoucancopyitrightherefromthedocumentationwhich I havelinkinthedescription, oryoucanincludeitfromnodemodulessowecanjustincludethescripttag.
Sowhenourcontentleaves, itgoesdowntowrope, a cityofzero.
Butwhenitsanimating.
So, forexample, inthiscase, whenit's entering, whowewanttodoisweactuallywantthepope a citytobeone, becausewewantedtoalwaysbeshownwe'regonnatoslideinfromthelefthandside.
Sotodothat, wecouldjustsaythatwewantedtostartwith a translateexof 100%.
Andlastly, ifwejustcomeinhereandsaidthetransformoriginjustlikethattobeleft, itmeansthatourTexasgoingtohaveouroriginonthelefthandsideofitjusttotalanimatein a littlebitbetter.
Sowegobacktoherindexhere, pushesaddsomethingelseinsideofhere, forexample, whichisat a button, andwe'regonnamakesurewegiveittheclass, andithastostartthetransitionwith a hyphen.
Andthisone, we'rejustgonnacallSwipe.
We'llenterthatoften.
We'lljustsaybutton, justgoingtobe a genericbutton.
Wedon't have a bunchofdeadcodebeingshownonourpagethatwedon't wanttheirItactuallytakescareofallthecleanupforus, andthat's literallyallthereistopagetransitions.
I toldyouitwasgonnabereallyeasy.
Ifyou'reinterestedinmoremyvideoswhere I simplifytheWeb, makesuretocheckthemoutoverhereandalsosubscribetomychannelformorevideosjustlikethisone.