HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="container">
<div class="card">
<div class="front">
<div class="logo">monzo</div><br><br><br>
<div class="contactless">
<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" height="36.562082874611406" width="30.535940354838658" xml:space="preserve" version="1.1"><rect id="backgroundrect" width="100%" height="100%" x="0" y="0" fill="none" stroke="none"/><metadata id="metadata8"><rdf:RDF><cc:Work rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/></cc:Work></rdf:RDF></metadata><defs id="defs6"/><g class="currentLayer"><title>Layer 1</title><g id="g10" class=""><g id="g12" stroke-width="0"><path id="path14" style="fill:#FFFFFF;fill-opacity:1;fill-rule:evenodd;stroke:none" d="m22.224665426703098,33.76875197869242 c-0.5179708277130124,-0.14976638189703362 -1.0428433320111412,-0.7660861009479594 -1.1532701573730093,-1.3544540298291625 c-0.07177743648521423,-0.38304305047397974 0.01587385614576854,-0.6487575990009746 0.5649022284918064,-1.710580541621187 c2.218198854456524,-4.29111741679634 3.1823630733973345,-8.239911674970891 3.1823630733973345,-13.033471147163729 c0,-4.632060240101107 -0.8537373935789422,-8.236460836678331 -2.973932440526809,-12.556220211302907 c-0.4555106546177056,-0.9272402492104356 -0.8278561063847545,-1.7882244032037506 -0.8278561063847545,-1.9127996655651076 c0,-0.4596516605687757 0.38476846962025907,-1.126008534861798 0.801284651532055,-1.387582077437723 c0.5711137374184113,-0.35819701476755944 1.5283762797741045,-0.29125075189192695 1.986302521196601,0.13872369936084672 c0.17599275292047728,0.16564023804280217 0.6335739105137179,0.9165426505035049 1.0166169609876976,1.6684803144519749 c1.516988513408662,2.9794537817949016 2.5567260909565013,6.248087812506196 3.069865745059931,9.649924201310244 c0.3174771229153706,2.1057015261191214 0.38097254749844484,6.095905843804371 0.12733593299540413,8.023199030198224 c-0.46827875630017163,3.5557437766521507 -1.4069067718760502,6.728099419001066 -2.909401764455967,9.836269469108396 c-0.9082606386013645,1.8789814502980362 -1.4783391245320083,2.651624144001856 -1.9555900603928318,2.651624144001856 c-0.09558822070386704,0 -0.2512210276982498,0.023810784218652813 -0.34611908074360526,0.05314290970539901 c-0.09524313687461125,0.02864195782823454 -0.35716176327979204,-0.0006901676585116755 -0.5825015037838539,-0.06625609521712086 zm-6.174584956874702,-3.2299846418346396 c-0.7943829749469379,-0.23120616560141122 -1.3672221315116286,-1.2057228994198967 -1.1373963012272408,-1.935920282125249 c0.05555849651018986,-0.17668292057898885 0.42962936742351787,-0.9907356737935098 0.8306167770188012,-1.8092745167883566 c1.6991927752557445,-3.4649867295578654 2.4059244575717003,-7.179469067667701 2.0598053768280944,-10.826314975243394 c-0.28469415913606605,-2.9963628894284375 -0.8219896812874052,-4.88638702226266 -2.1747182919702888,-7.651543746089687 c-0.9075704709428528,-1.855170666079383 -0.9496706981120652,-2.1426254958494955 -0.4220375231798895,-2.889731986188384 c0.5017518877379877,-0.7101825206085138 1.7540611041074219,-0.8254405195799636 2.412135966498305,-0.22188890221150354 c0.45620082227621733,0.41824160105807523 1.87449536051771,3.380441191390185 2.4217983137174683,5.057548601573556 c1.8116901035931476,5.5510184774094045 1.5352779563592218,11.509926040999208 -0.7867911307033097,16.96294071089995 c-1.1891588756156164,2.7934535978260056 -2.024261742414743,3.657198422453367 -3.2034131869819404,3.3141850961730643 zm-6.367486817428716,-3.275880791125667 c-0.4907092052018011,-0.221198734552992 -0.9130918122109466,-0.7402048137537718 -1.02800472735314,-1.2633518989056214 c-0.07005201733893505,-0.3185123744031381 0.0503822390713523,-0.6708429640733484 0.6328837428552061,-1.8503394924698013 c2.1388295737276812,-4.331147140990018 2.1616051064585666,-8.502865552863838 0.0703971011681909,-12.733593299540406 c-0.9182680696497838,-1.8579313367134298 -0.9382829317466224,-2.2278612016756876 -0.16184431592098789,-2.960474171185831 c0.3833881343032357,-0.3616478530601179 0.5462677017119907,-0.42548836147244795 1.0845984753510975,-0.42548836147244795 c0.9027392973332714,0 1.3713631374626987,0.4537852354714264 2.1781691302628468,2.1112228673872147 c1.240921450003992,2.5491342467128724 1.7488848466685853,4.760776508413536 1.7447438407175149,7.594259830433217 c-0.00448608978032589,2.9125075189192695 -0.4793214388363584,4.911923225627593 -1.8051335108372863,7.600126255530568 c-0.7595295081920986,1.5390738784810358 -1.1346356305931942,1.9455826293444125 -1.8948553064438043,2.0497979457796762 c-0.23189633325992293,0.03174771229153707 -0.6011360305636693,-0.02346570038939698 -0.8209544297996375,-0.12215967555656652 zm-5.941308288297755,-3.051576302109372 c-0.388909475571329,-0.1608090644332204 -0.8326872799943361,-0.6898225746824195 -0.9648543865993221,-1.1498193190804509 c-0.1470057112629869,-0.5138298217619423 -0.02657145485269951,-0.9217189079423421 0.5569653004189219,-1.8813970371028268 c0.7505573286314469,-1.2343648572481312 0.9255148300641566,-1.8965807255900837 0.9255148300641566,-3.5098476273611237 c0,-1.6129218179417852 -0.17495750143270974,-2.2754827701129927 -0.9255148300641566,-3.5098476273611237 c-0.25432678216155236,-0.41858668488733125 -0.5096888158108722,-0.9196484049668072 -0.5676628991258529,-1.1139306008378438 c-0.24190376430834218,-0.813707669385265 0.4358408763501231,-1.8106548521053802 1.3465171017562785,-1.9814713475870196 c0.7716074422160528,-0.1449352082874519 1.302001287782275,0.1994584533098742 2.011493640732277,1.3075226290503688 c2.054629119389257,3.2068640252744993 2.054284035560001,7.4914248493149795 -0.0010352514877675135,10.671372335907522 c-0.725021125266515,1.121867528910728 -1.5335525372129424,1.5183688487256854 -2.3814235056945354,1.1674185943724984 v0 " stroke-width="0"/></g></g></g></svg>
</div>
<div class="chip"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 77 72" style="enable-background:new 0 0 77 72;" xml:space="preserve">
<defs>
<radialGradient id="chipshine">
<stop offset="10%" stop-color="rgba(160, 160, 160, 1)"/>
<stop offset="95%" stop-color="rgba(150, 150, 150, 1)"/>
</radialGradient>
</defs>
<style type="text/css">
.st0{fill:rgba(60, 60, 60, 1);}
.st1{fill:url(#chipshine);}
.check{fill:none;}
</style>
<g id="Layer_1">
<image style="display:none;overflow:visible;" width="77" height="71" xlink:href="Monzo-Card.png" transform="matrix(1 0 0 1 0 0.1595)">
</image>
</g>
<g id="Layer_3">
<g>
<path class="st0" d="M5.8,63.3c-2.3-2.6-4.2-5.4-5.8-8.4v2.4c1.4,2.4,3.1,4.7,5,6.8L5.8,63.3z"/>
<path class="st0" d="M0.1,61.1C0.6,66.7,5,71.2,10.5,71.9C6.5,68.9,2.9,65.2,0.1,61.1z"/>
<path class="st0" d="M10.5,0.1C5,0.8,0.6,5.3,0.1,10.9C2.9,6.8,6.5,3.1,10.5,0.1z"/>
<path class="st0" d="M12.6,7.9C12.6,7.9,12.6,7.8,12.6,7.9c0.1-0.1,0.1-0.1,0.1-0.1c3.9-3.4,8.6-6.1,13.7-7.8h-5.8
C11.1,4.5,3.7,12.4,0,22v9.3C1.2,22.1,5.8,13.9,12.6,7.9z"/>
<path class="st0" d="M77,52.3v-6.6c-1.7,6.2-5,11.9-9.5,16.4c0,0,0,0,0,0.1c0,0-0.1,0.1-0.1,0.1c-4.3,4.4-9.7,7.8-15.8,9.7h5.9
C66.1,67.8,73,60.9,77,52.3z"/>
<path class="st0" d="M7,5.8c-2.7,2.7-5,5.7-7,9v2.4c2-3.9,4.6-7.4,7.7-10.5L7,5.8z"/>
<path class="st0" d="M9.9,61.5C9.9,61.5,9.8,61.5,9.9,61.5c-0.1-0.1-0.1-0.1-0.1-0.2C4.5,55.7,1,48.6,0,40.7V50
c3.7,9.6,11.1,17.5,20.6,22h5.8C20,69.9,14.3,66.2,9.9,61.5z"/>
<path class="st0" d="M63.2,8.6l-0.9,1.4C70,16.5,74.5,25.9,74.5,36c0,8.8-3.5,16.9-9.2,23l1.3,1.1c6-6.4,9.6-14.8,9.6-24.1
C76.3,25.1,71.2,15.3,63.2,8.6z"/>
<path class="st0" d="M64,60.4c-6.3,6-14.8,9.7-24.3,9.9v0h-2v0C28,70,19.3,65.9,13.1,59.5l-1.2,1.2c6.7,6.8,16.1,11.1,26.6,11.2h1
c10-0.1,19.1-4.1,25.8-10.4L64,60.4z"/>
<path class="st0" d="M14.1,11.5l-1-1.4C6.1,16.7,1.7,25.8,1.7,36c0,8.9,3.3,17,8.9,23.3l1.2-1.2c-5.2-6-8.3-13.7-8.3-22.1
C3.5,26.6,7.4,17.8,14.1,11.5z"/>
<path class="st0" d="M14.5,71.1l-0.7,0.7c0.1,0.1,0.2,0.1,0.3,0.2h2.2c-0.9-0.5-1.8-1.1-2.7-1.7L14.5,71.1z"/>
<path class="st0" d="M63.9,71.2l1.9-2c-1.3,1-2.7,1.9-4.2,2.8h2.1c0.2-0.1,0.4-0.2,0.6-0.4L63.9,71.2z"/>
<path class="st0" d="M67.8,71.6c4.3-1,7.7-4.4,8.8-8.7C74.1,66.2,71.1,69.1,67.8,71.6z"/>
<path class="st0" d="M69.7,4.6l-0.7,0.9c3.1,2.9,5.8,6.2,7.9,9.8v-2.2C75,10,72.5,7.1,69.7,4.6z"/>
<path class="st0" d="M72.1,65.1c1.8-1.9,3.5-4,4.9-6.2v-2.2c-1.6,2.8-3.6,5.3-5.8,7.7L72.1,65.1z"/>
<path class="st0" d="M63.5,6.3c0,0,0.1,0.1,0.1,0.1c6.4,5,11.2,12,13.4,19.9v-6.7C73,11.1,66.1,4.1,57.4,0h-5.9
C55.9,1.4,59.9,3.6,63.5,6.3C63.5,6.3,63.5,6.3,63.5,6.3z"/>
<path class="st0" d="M76.6,9.1c-1.1-4.3-4.5-7.7-8.9-8.8C71.1,2.9,74.1,5.8,76.6,9.1z"/>
<path class="st0" d="M15.4,0.6c0.3-0.2,0.7-0.4,1-0.6h-0.9l0.2,0.3L15.4,0.6z"/>
<path class="check" d="M-2805.4,2305c0,0,0.1,0,0.2,0c0.1,0,0.1,0,0.1-0.1c0-0.1,0-0.1-0.1-0.1c-0.1,0-0.2-0.1-0.2-0.2
c0-0.1,0.1-0.2,0.2-0.2c0.1,0,0.1,0,0.1,0l0,0.1c0,0-0.1,0-0.1,0c-0.1,0-0.1,0.1-0.1,0.1c0,0.1,0,0.1,0.1,0.1c0.1,0,0.2,0.1,0.2,0.2
c0,0.1-0.1,0.2-0.2,0.2C-2805.3,2305.1-2805.4,2305.1-2805.4,2305L-2805.4,2305z"/>
<path class="check" d="M-2804.6,2305c0,0-0.1,0-0.1,0c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0.1-0.3,0.3-0.3c0.1,0,0.1,0,0.1,0l0,0.1
c0,0-0.1,0-0.1,0c-0.1,0-0.2,0.1-0.2,0.2c0,0.1,0.1,0.2,0.2,0.2C-2804.6,2305-2804.6,2305-2804.6,2305L-2804.6,2305z"/>
<path class="check" d="M-2804,2304.8c0,0.2-0.1,0.3-0.2,0.3c-0.1,0-0.2-0.1-0.2-0.3c0-0.2,0.1-0.3,0.2-0.3
C-2804.1,2304.6-2804,2304.7-2804,2304.8z M-2804.4,2304.8c0,0.1,0.1,0.2,0.1,0.2c0.1,0,0.1-0.1,0.1-0.2c0-0.1,0-0.2-0.1-0.2
C-2804.4,2304.6-2804.4,2304.7-2804.4,2304.8z"/>
<path class="check" d="M-2803.8,2304.4v0.1h0.1v0.1h-0.1v0.3c0,0.1,0,0.1,0.1,0.1c0,0,0,0,0.1,0l0,0.1c0,0,0,0-0.1,0c0,0-0.1,0-0.1,0
c0,0,0-0.1,0-0.1v-0.3h-0.1v-0.1h0.1L-2803.8,2304.4L-2803.8,2304.4z"/>
<path class="check" d="M-2803.5,2304.4v0.1h0.1v0.1h-0.1v0.3c0,0.1,0,0.1,0.1,0.1c0,0,0,0,0.1,0l0,0.1c0,0,0,0-0.1,0c0,0-0.1,0-0.1,0
c0,0,0-0.1,0-0.1v-0.3h-0.1v-0.1h0.1L-2803.5,2304.4L-2803.5,2304.4z"/>
<path class="check" d="M-2803,2305.1l-0.2-0.7h0.1l0.1,0.3c0,0.1,0,0.2,0,0.2h0c0-0.1,0-0.1,0.1-0.2l0.1-0.3h0.1l0.1,0.3
c0,0.1,0,0.2,0,0.2h0c0-0.1,0-0.2,0.1-0.2l0.1-0.3h0.1l-0.2,0.7h-0.1l-0.1-0.4c0-0.1,0-0.2,0-0.2h0c0,0.1,0,0.1-0.1,0.2
L-2803,2305.1L-2803,2305.1z"/>
<path class="check" d="M-2802.3,2304.7c0-0.1,0-0.1,0-0.2h0.1L-2802.3,2304.7L-2802.3,2304.7c0.1-0.1,0.2-0.2,0.2-0.2c0,0,0,0,0,0v0.1
c0,0,0,0,0,0C-2802.1,2304.7-2802.1,2304.7-2802.3,2304.7C-2802.2,2304.8-2802.2,2304.8-2802.3,2304.7l0.1,0.3h-0.1V2304.7z"/>
<path class="check" d="M-2801.7,2305.1L-2801.7,2305.1L-2801.7,2305.1c0,0-0.1,0-0.2,0c-0.1,0-0.1-0.1-0.1-0.1c0-0.1,0.1-0.2,0.3-0.2
v0c0,0,0-0.1-0.1-0.1c0,0-0.1,0-0.1,0l0-0.1c0,0,0.1,0,0.2,0c0.1,0,0.2,0.1,0.2,0.2v0.2C-2801.6,2305-2801.6,2305-2801.7,2305.1
L-2801.7,2305.1z M-2801.7,2304.8c-0.1,0-0.2,0-0.2,0.1c0,0.1,0,0.1,0.1,0.1c0.1,0,0.1,0,0.1-0.1
C-2801.7,2304.9-2801.7,2304.9-2801.7,2304.8L-2801.7,2304.8z"/>
<path class="check" d="M-2801.4,2304.6l0.1,0.1c0,0,0,0.1,0,0.1h0c0,0,0-0.1,0-0.1l0.1-0.1h0.1l-0.2,0.2l0.2,0.3h-0.1l-0.1-0.1
c0,0,0-0.1-0.1-0.1h0c0,0,0,0.1-0.1,0.1l-0.1,0.1h-0.1l0.2-0.2L-2801.4,2304.6L-2801.4,2304.6z"/>
<path class="check" d="M-2800.9,2304.4v0.1h0.1v0.1h-0.1v0.3c0,0.1,0,0.1,0.1,0.1c0,0,0,0,0.1,0l0,0.1c0,0,0,0-0.1,0c0,0-0.1,0-0.1,0
c0,0,0-0.1,0-0.1v-0.3h-0.1v-0.1h0.1L-2800.9,2304.4L-2800.9,2304.4z"/>
<path class="check" d="M-2800.2,2304.8c0,0.2-0.1,0.3-0.2,0.3c-0.1,0-0.2-0.1-0.2-0.3c0-0.2,0.1-0.3,0.2-0.3
C-2800.3,2304.6-2800.2,2304.7-2800.2,2304.8z M-2800.6,2304.8c0,0.1,0.1,0.2,0.1,0.2c0.1,0,0.1-0.1,0.1-0.2c0-0.1,0-0.2-0.1-0.2
C-2800.5,2304.6-2800.6,2304.7-2800.6,2304.8z"/>
<path class="check" d="M-2800.1,2304.7c0-0.1,0-0.1,0-0.1h0.1L-2800.1,2304.7L-2800.1,2304.7c0.1-0.1,0.2-0.1,0.2-0.1
c0.1,0,0.2,0,0.2,0.2v0.3h-0.1v-0.3c0-0.1,0-0.1-0.1-0.1C-2799.9,2304.6-2800,2304.7-2800.1,2304.7
C-2800,2304.7-2800,2304.8-2800.1,2304.7l0.1,0.4h-0.1V2304.7z"/>
<path class="st0" d="M61.9,0h-0.2C61.7,0,61.8,0.1,61.9,0L61.9,0z"/>
<path class="st0" d="M15.6,10.2c2.7-2.3,5.7-4.2,9.1-5.6c0.5-0.2,1.1,0,1.3,0.5c0.2,0.5,0,1.1-0.5,1.3c-12.2,5.2-20,16.8-20,29.6
c0,17.4,14.4,31.7,32.2,32.3v-2c-3.6-0.1-7-0.8-10.3-2.1c-0.5-0.2-0.8-0.8-0.6-1.3c0.2-0.5,0.8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5,53.4,5.5,36c0-12.8,7.9-24.4,20-29.6C26,6.2,26.2,5.6,26,5.1
c-0.2-0.5-0.8-0.7-1.3-0.5c-3.4,1.4-6.4,3.3-9.1,5.6l-1-1.4C21.2,3.3,29.7,0,39,0H26.4c-5.1,1.7-9.8,4.3-13.7,7.8c0,0,0,0-0.1,0
c0,0-0.1,0.1-0.1,0.1C5.8,13.9,1.2,22.1,0,31.3v9.3c1,7.9,4.5,15,9.7,20.7c0,0,0,0.1,0.1,0.1c0,0,0,0,0.1,0
C14.3,66.2,20,69.9,26.4,72h12.1c-10.5-0.1-19.9-4.4-26.6-11.2l1.2-1.2C19.3,65.9,28,70,37.7,70.3v0h2v0c9.5-0.2,18-3.9,24.3-9.9
l1.3,1.1C58.6,67.9,49.5,71.9,39.5,72h12.1c6.1-2,11.5-5.4,15.8-9.7C67.4,62.2,67.5,62.2,67.5,62.2z M10.6,59.3
C5,53,1.7,44.9,1.7,36c0-10.2,4.4-19.3,11.4-25.9l1,1.4C7.4,17.8,3.5,26.6,3.5,36c0,8.4,3.1,16.1,8.3,22.1L10.6,59.3z M65.4,59
c5.7-6.1,9.2-14.2,9.2-23c0-10.1-4.6-19.5-12.2-25.9l0.9-1.4c8,6.6,13.1,16.4,13.1,27.4c0,9.3-3.6,17.7-9.6,24.1L65.4,59z"/>
<path class="st1" d="M0,50v4.8c1.6,3,3.5,5.9,5.8,8.4L5,64.1c-1.9-2.1-3.5-4.4-5-6.8V60c0,0.4,0,0.7,0.1,1.1
c2.9,4.1,6.4,7.8,10.5,10.8c0.5,0.1,1,0.1,1.5,0.1h2.2c-0.1-0.1-0.2-0.1-0.3-0.2l0.7-0.7l-0.9-0.9c0.9,0.6,1.8,1.2,2.7,1.7h4.2
C11.1,67.5,3.7,59.6,0,50z"/>
<path class="st1" d="M76.6,62.9C76.9,62,77,61,77,60v-1.1c-1.4,2.2-3.1,4.3-4.9,6.2l-0.8-0.8c2.2-2.3,4.1-4.9,5.8-7.7v-4.3
C73,60.9,66.1,67.8,57.4,72h4.2c1.5-0.9,2.9-1.8,4.2-2.8l-1.9,2l0.5,0.4c-0.2,0.1-0.4,0.2-0.6,0.4H65c1,0,1.9-0.1,2.8-0.3
C71.1,69.1,74.1,66.2,76.6,62.9z"/>
<path class="st1" d="M20.6,0h-4.2c-0.3,0.2-0.7,0.4-1,0.6l0.4-0.3L15.5,0H12c-0.5,0-1,0-1.5,0.1c-4.1,3-7.6,6.7-10.5,10.8
C0,11.3,0,11.6,0,12v2.7c1.9-3.3,4.3-6.3,7-9l0.7,0.9C4.6,9.8,2,13.3,0,17.2V22C3.7,12.4,11.1,4.5,20.6,0z"/>
<path class="st1" d="M77,19.7v-4.3c-2.1-3.7-4.8-7-7.9-9.8l0.7-0.9C72.5,7.1,75,10,77,13.1V12c0-1-0.1-2-0.4-2.9
c-2.5-3.3-5.5-6.2-8.9-8.8C66.9,0.1,66,0,65,0h-3.1l-0.1,0.1c-0.1,0-0.1-0.1-0.2-0.1h-4.2C66.1,4.1,73,11.1,77,19.7z"/>
</g>
</g>
<g id="top">
<path class="st1" d="M51.4,20.2v-7h15v16h-19v24c0,0-10,5-19,0v-34C28.4,19.2,38.4,12.2,51.4,20.2z"/>
<rect x="8.4" y="13.2" class="st1" width="19" height="16"/>
<rect x="10.4" y="30.2" class="st1" width="17" height="12"/>
<rect x="7.4" y="43.2" class="st1" width="20" height="13"/>
<rect x="48.4" y="30.2" class="st1" width="18" height="12"/>
<rect x="48.4" y="43.2" class="st1" width="19" height="12"/>
</g>
</svg></div><br>
<div class="number">1234 5678 9876 5400</div><br>
<div class="expire">16/19</div>
<ul>
<li>EXP</li>
<li>END</li>
</ul>
<div class="name">SCOTT WRAXTON</div>
<svg width="110" height="55" class="red">
<circle cx="48" cy="27.5" r="27.5" style="fill:red" opacity=".9" />
<circle cx="82.5" cy="27.5" r="27.5" style="fill:orange" opacity="0.7" />
</svg>
<div class="master">mastercard.</div>
</div>
<div class="back">
<div class="mag"></div>
<div class="sig"><svg width="85%" height="50px" xmlns="http://www.w3.org/2000/svg">
<defs>
<pattern id="star" viewBox="0,0,20,20" width="4%" height="15%">
<circle cx="4" cy="4" r="3" />
</pattern>
</defs>
<rect width="100%" height="55px"fill="url(#star)"/>
</svg>
</div>
<div class="ccv">123</div>
<div class="info">monzo.com/help<p>0800 8021 282<p>+44 20 3872 0621</div>
<div class="m"><svg xmlns="http://www.w3.org/2000/svg" width="80px" height="100px" viewBox="0 0 327.504 319.333"><g id="Layer_3" data-name="Layer 3"><path d="M275.456,146.734a10.344,10.344,0,0,1-3.03,7.314L226.1,200.374a4.138,4.138,0,0,1-7.063-2.926V93.643L274.812,38.18h.643Z" style="fill:none" stroke="#FFF" stroke-width="6"/><path d="M238.487,1.212a4.138,4.138,0,0,0-5.852,0L163.752,70.1H162.8v77.746l.956,2.042L219.037,94.6,275.456,38.18Z" style="fill:none" stroke="#FFF" stroke-width="6"/><path d="M52.048,146.734a10.344,10.344,0,0,0,3.03,7.314L101.4,200.374a4.138,4.138,0,0,0,7.063-2.926V93.643L52.691,38.18h-.643Z" style="fill:none" stroke="#FFF" stroke-width="6"/><path d="M94.868,1.212a4.138,4.138,0,0,0-5.852,0L52.048,38.18,108.467,94.6l55.285,55.285V70.1Z" style="fill:none" stroke="#FFF" stroke-width="6"/></g></svg></div>
</div>
</div>
</div>
@import 'nib'
html, body
height 100%
width 100%
margin 0
body
background linear-gradient(#335a9a, #14233c)
display flex
flex-direction column
justify-content center
align-items center
a
color #fff
text-decoration none
.container
width 430px
height 270px
position relative
perspective 800px
border-radius 4px
background-clip padding-box;
.card
width 100%
height 100%
position relative
transform-style preserve-3d
transition transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275)
border-radius 10px
box-shadow 0 6px 16px rgba(0,0,0,0.15)
cursor pointer
.back
transform rotateY(180deg)
&.flipped
transform rotateY(180deg)
div.front, .card div.back
//background-image url(https://d1ic4altzx8ueg.cloudfront.net/finder-us/wp-uploads/sites/3/2018/03/Monzo-Card.png)
background-size contain
position absolute
width 100%
height 100%
backface-visibility hidden
border-radius 10px
background #ff5b3d
display block
font 16px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif
font-smoothing antialiased
color #47525d
.logo
position relative
height 30px
max-width 100%
text-align right
padding 0 14px 0 0
top -11px
backface-visibility hidden
font-size 45px
font-weight 900
color white
.chip
position absolute
width 66px
height 62px
top 91px
border-radius 10px
border solid 1px rgba(120, 120, 120, .6)
margin 0 0 0 40px
backface-visibility hidden
.number
position relative
max-width 100%
text-align left
font-size 28px
font-family monospace
font-weight 400
letter-spacing 1.5px
padding 20px 0 0 38px
color #fff
backface-visibility hidden
li
position relative
width 20px
max-width 100%
text-align left
list-style none
font-size 11px
font-weight 800
line-height 9px
font-family monospace
backface-visibility hidden
padding 0 0 0 139px
top -15px
color white
.expire
position absolute
max-width 100%
padding 0 0 0 201px
font-size 18px
font-family monospace
font-weight 800
color white
top 208px
backface-visibility hidden
.contactless
position absolute
left 129px
backface-visibility hidden
.name
position absolute
max-width 100%
padding 0 0 0 23px
font-size 17px
font-family monospace
font-weight 800
text-align left
letter-spacing .2px
color white
top 232px
backface-visibility hidden
.red
position absolute
padding-left 302px
top 185px
fill rgba(245, 50, 41 1)
backface-visibility hidden
.master
position absolute
max-width 100%
padding 0 0 0 327px
font-size 14px
font-family "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight 400
letter-spacing 1.3px
color white
top 240px
backface-visibility hidden
.mag
position absolute
width 100%
height 61px
margin 20px 0 0 0
background #14233c;
.sig
position relative
width 70%
height 55px
margin 100px 0 0 15px
background #989898;
overflow hidden
line-height -100px
.sig>svg
padding 5px 0 0 5px
fill #a1a1a1
.ccv
padding 0 15px 0 15px
position relative
width 68%
height 55px
text-align: right;
top -40px
font-style italic
.info
position absolute
width 93%
padding 0 15px 0 15px
text-align right
font-size 70%
font-weight 600
color white
line-height 8px
top 100px
.m
position absolute
max-width 100%
padding 0 0 0 343px
top 190px
$('.container').on('click', function () {
$('.card').toggleClass('flipped');
});
Also see: Tab Triggers