Allright, wehavegottheday 26 30 layersandwhatam I talkingaboutwhen I saythree D layers?
Well, letmeshowyouheretoyourightnow.
Thismightlooklikejustlike a normalthenormalmockup.
Butthefactisthat I createditinphotoshopusingSPGformat, whichmeansit's a vectorformatwhichmeansit's infinitelyscalableinsupersharp, regardlessofyourscreensizeandifyoumakeitbigger, smaller.
So I createdthismockup.
I includedthePhotoshoppeddocumentintheImagefolderaswell, somaybeyoumightwanttoseeandplayaroundwithit.
Butthisiswhathappenswhen I hoveroverthismockup.
Watchthis.
That's supercool.
Soyoumightalreadythinkthat's amazing.
I wanttoknowhowtomakethat.
Oryoumightthink I havesomeideasandhow I wanttousethat.
Essentially, thereasonwhywe'redoingthisisone.
It's a reallybigchallengethatwe'redoing a lotofreallyinterestingmaneuveringusingdifferentdifferentplanesthe X Y and Z planesusingtransitions, transformsandanimationsandallthatsortofthing.
Soit's a challenginglittletask.
It's a superimpressivewaytodisplayalmostanythingin a showcaseforMattonyourwebsite.
So a mockup, a blueprint, a wireframe, evenimagesor, youknow, differentelements.
It's reallyexcitingnow.
I wouldn't useitas a functionalpiecelikefornavigatingorsomethinglikethat, buttodisplaysomethinginanimpressivemannertoshowthelayersofyourworkorsomethinglikethat.
Thisisthewaytodoit.
Nowlookatitonemoretime.
Showyouwhat's happening.
Sowehave a backlayerhere, andthenwehave a middlelayerrighthere.
A toplayerofthesethreeofthesixcirclesandthistextdownhere, thismockuptextwireframetext, justmuchoflinesthatmimicstext.
Andthenwehavethe, uhthesetwoiconshereonthetippytop, I callit, andsoinonelayer, justlookingatitStreet, itlookslike a normalmockup, butwhenyouhoveroverit, itextendsoutandshifts.
Itchanges.
Andit's using a three d transformationinCSSthree.
Sowhydon't wejumpinandgetstartedoverhereinthecodeeditor, wehavetheday 26 3 d layers.
I havealloftheassetstheirindexsandboxfinalandtheImagefolder, whichincludesSPGfiles, whicharenotimagefiles.
Andthat's importantbecausewe'regonnabedoing a transitiontogiveusthatanimatedeffect.
Nowwe'regonnasaytransformstyleandwe'regonnasaypreservethree D becausewe'regonnahavethetransformwe'regonnadosometransformingandsomeshiftingandperspective.
Youknow, three D animationsandmaneuveringandthispreservesthatthree d planebecausewewantedtoactuallylookthreedimensional.
Notlikeit's skewed.
Sopreservethree d.
Sowe'regonnasavethat.
Andnowifyoucheckitoutinyourbrowser, you'llseethatnowwehave a morereasonablesizeproblemhereisthatallthelayersareallmessedup.
Andthat's becausealltheseSPGgraphicsarethesamewidthandsameheightandSPGgraphicsdon't reallyperformthesamewayas a PNGbitmapgraphic, forexample, whichonlytakesupthesizeofspace.
So, forexample, thisas a P and G wouldonlytakeupthismuchspacebutitactuallyistakingupthismuchspace, theentirecontainerbecauseoftheheight.
Ah, andit's justit's a thingthatyouhavetoworkwithwithusthree D files.
Propertyorfunctioninthiscase, createsorenablesthree D spaceonyourscreenandproducesthisillusionof a distancebetweenthe Z planeandmyself, thepersondoingthescreen.
Sonowwhat's gonnahappenisif I sayperspectiveandthenlet's go 1000 pixels.