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 Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import
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.
<h1>DC <span>vs.</span> Marvel</h1>
<br />
<div id="hero" class="batman">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="joker">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="gambit">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="magneto">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="wolverine">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="cyclops">
<header>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="hulk">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="superman">
<header>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="lex-luthor">
<header>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="captain-america">
<header>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="red-skull">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="spiderman">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="venom">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="human-torch">
<header>
</header>
<main>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="doctor-doom">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
</main>
</div>
<div id="hero" class="iron-man">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="war-machine">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
<div id="hero" class="flash">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
</main>
</div>
<div id="hero" class="dare-devil">
<header>
<div></div>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
</main>
</div>
<div id="hero" class="punisher">
<header>
<div></div>
<div></div>
<div></div>
</header>
<main>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</main>
</div>
@import url('https://fonts.googleapis.com/css?family=Bangers');
*, *:before, *:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
line-height: 1;
}
html {
font-size: 1px;
}
body {
font-size: 0;
text-align: center;
margin: 50rem 0;
}
h1 {
display: inline-block;
font-family: Bangers, cursive;
font-size: 70rem;
font-weight: bold;
padding: 0 25rem;
margin: 20rem 0 30rem 0;
border-bottom: solid 7rem #000;
}
h1 span {
font-size: .65em;
}
#hero {
position: relative;
display: inline-block;
vertical-align: bottom;
margin: 30rem;
width: 300rem;
height: 300rem;
z-index: 1;
background: #bfc4d2;
text-align: left;
border: solid 1rem #7d87a4;
box-shadow: inset 0 0 10rem 0 rgba(0, 0, 0, 0.4);
border-radius: 4rem;
}
#hero *, #hero *:before, #hero *:after {
transition: all 0.14s cubic-bezier(0.13, 1, 0.44, 0.81);
}
#hero header {
position: absolute;
}
#hero main {
position: absolute;
z-index: -1;
left: 0;
bottom: 26rem;
width: 100%;
}
#hero main:before {
content: " ";
position: absolute;
left: 50%;
bottom: 0;
margin-left: -113rem;
border-style: solid;
border-color: transparent;
border-width: 44rem 113rem 144rem 0;
}
#hero main:after {
content: " ";
position: absolute;
left: 50%;
bottom: 0;
border-style: solid;
border-color: transparent;
border-width: 44rem 0 144rem 113rem;
}
#hero.batman header {
background: #000;
width: 56rem;
height: 66rem;
top: 32rem;
left: 50%;
margin-left: -28rem;
border-top-left-radius: 30rem 28rem;
border-top-right-radius: 30rem 28rem;
}
#hero.batman header:before {
content: " ";
position: absolute;
z-index: 1;
top: 0;
left: 50%;
margin-top: -3rem;
margin-left: -28rem;
border-style: solid;
border-color: transparent transparent #000 transparent;
border-width: 0 16rem 25rem 3rem;
}
#hero.batman header:after {
content: " ";
position: absolute;
z-index: 1;
top: 0;
left: 50%;
margin-top: -3rem;
margin-left: 9rem;
border-style: solid;
border-color: transparent transparent #000 transparent;
border-width: 0 3rem 25rem 16rem;
}
#hero.batman header div:nth-child(1) {
position: absolute;
width: 62rem;
left: 50%;
bottom: 0;
margin-left: -31rem;
border-style: solid;
border-color: transparent transparent #000 transparent;
border-width: 0 4rem 50rem 4rem;
}
#hero.batman header div:nth-child(2) {
position: absolute;
width: 48rem;
left: 50%;
bottom: 0;
margin-left: -24rem;
margin-bottom: -3rem;
border-style: solid;
border-color: #ffaa77 transparent transparent transparent;
border-width: 19rem 4rem 0 4rem;
}
#hero.batman header div:nth-child(2):before {
content: " ";
position: absolute;
z-index: 1;
top: 0;
left: 50%;
margin-top: -20rem;
margin-left: -26rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 8rem 26rem 0 26rem;
}
#hero.batman header div:nth-child(2):after {
content: " ";
position: absolute;
width: 40rem;
left: 50%;
bottom: 0;
margin-left: -20rem;
margin-bottom: -11rem;
border-style: solid;
border-color: #ffaa77 transparent transparent transparent;
border-width: 11rem 13rem 0 13rem;
}
#hero.batman header div:nth-child(3) {
position: absolute;
top: 31rem;
left: 5rem;
border-style: solid;
border-color: #fff transparent transparent transparent;
border-width: 9rem 12rem 0 10rem;
}
#hero.batman header div:nth-child(3):after {
content: " ";
position: absolute;
top: -10rem;
left: -9rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 5rem 0 0 22rem;
-webkit-animation: batman-blink 2s infinite alternate ease-out;
animation: batman-blink 2s infinite alternate ease-out;
}
#hero.batman header div:nth-child(4) {
position: absolute;
top: 31rem;
right: 5rem;
border-style: solid;
border-color: #fff transparent transparent transparent;
border-width: 9rem 12rem 0 10rem;
}
#hero.batman header div:nth-child(4):after {
content: " ";
position: absolute;
top: -10rem;
right: -10rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 5rem 22rem 0 0;
-webkit-animation: batman-blink 2s infinite alternate ease-out;
animation: batman-blink 2s infinite alternate ease-out;
}
#hero.batman main:before {
border-right-color: #000;
}
#hero.batman main:after {
border-left-color: #000;
}
#hero.batman main div:nth-child(1):before {
content: " ";
position: absolute;
z-index: 1;
left: 50%;
bottom: 0;
margin-left: -70rem;
border-style: solid;
border-color: transparent #352f3a transparent transparent;
border-width: 44rem 70rem 90rem 0;
}
#hero.batman main div:nth-child(1):after {
content: " ";
position: absolute;
z-index: 1;
left: 50%;
bottom: 0;
border-style: solid;
border-color: transparent transparent transparent #352f3a;
border-width: 44rem 0 90rem 70rem;
}
#hero.batman main div:nth-child(2) {
position: absolute;
background: #000;
overflow: hidden;
z-index: 1;
width: 70rem;
height: 24rem;
left: 50%;
margin-top: -99rem;
margin-left: -35rem;
}
#hero.batman main div:nth-child(2):before {
content: " ";
position: absolute;
background: transparent;
width: 70rem;
height: 70rem;
top: -70rem;
left: 0;
border-radius: 30rem / 15rem;
box-shadow: -33rem 84rem 0 0 #352f3a, -60rem 68rem 0 0 #352f3a, 33rem 84rem 0 0 #352f3a, 60rem 68rem 0 0 #352f3a;
}
#hero.batman main div:nth-child(2):after {
content: " ";
position: absolute;
background: transparent;
width: 12rem;
height: 6rem;
top: -6rem;
left: 0;
border-bottom-left-radius: 5rem;
border-bottom-right-radius: 5rem;
box-shadow: 23rem 6rem 0 0 #352f3a, 35rem 6rem 0 0 #352f3a, 29rem 5rem 0 -2rem #352f3a;
}
@-webkit-keyframes batman-blink {
80%,
100% {
border-top-width: 10rem;
}
}
@keyframes batman-blink {
80%,
100% {
border-top-width: 10rem;
}
}
#hero.joker header {
background: #ccc;
width: 56rem;
height: 48rem;
top: 52rem;
left: 50%;
margin-left: -28rem;
}
#hero.joker header:before {
content: " ";
position: absolute;
background: #ccc;
z-index: 1;
width: 68rem;
height: 16rem;
top: 18rem;
left: 50%;
margin-left: -34rem;
border-top-left-radius: 3rem;
border-top-right-radius: 3rem;
border-bottom-left-radius: 12rem 8rem;
border-bottom-right-radius: 12rem 8rem;
}
#hero.joker header:after {
content: " ";
position: absolute;
z-index: 1;
width: 56rem;
top: 100%;
border-style: solid;
border-color: #ccc transparent transparent transparent;
border-width: 25rem 19rem 0 19rem;
}
#hero.joker header div:nth-child(1) {
position: absolute;
background: #00770e;
width: 76rem;
height: 52rem;
top: -35rem;
left: 50%;
margin-left: -38rem;
border-bottom-left-radius: 15rem 47rem;
border-bottom-right-radius: 15rem 47rem;
}
#hero.joker header div:nth-child(1):before {
content: " ";
position: absolute;
background: #bfc4d2;
width: 76rem;
height: 8rem;
top: 0;
left: 0;
border-bottom-left-radius: 10rem 8rem;
border-bottom-right-radius: 10rem 8rem;
}
#hero.joker header div:nth-child(1):after {
content: " ";
position: absolute;
background: #00770e;
width: 62rem;
height: 13rem;
top: 4px;
left: 6px;
border-top-left-radius: 38rem 12rem;
border-top-right-radius: 38rem 12rem;
}
#hero.joker header div:nth-child(2):before {
content: " ";
position: absolute;
background: #ccc;
width: 28rem;
height: 32rem;
top: -15rem;
left: 0;
border-top-left-radius: 9rem 14rem;
border-top-right-radius: 19rem 14rem;
}
#hero.joker header div:nth-child(2):after {
content: " ";
position: absolute;
background: #ccc;
width: 28rem;
height: 32rem;
top: -15rem;
left: 50%;
border-top-left-radius: 19rem 14rem;
border-top-right-radius: 9rem 14rem;
}
#hero.joker header div:nth-child(3) {
position: absolute;
background: #ffeca5;
z-index: 3;
width: 48rem;
height: 28rem;
top: 31rem;
left: 50%;
margin-left: -24rem;
border: solid 2rem #d11124;
border-bottom-width: 3rem;
border-bottom-left-radius: 19rem 30rem;
border-bottom-right-radius: 19rem 30rem;
}
#hero.joker header div:nth-child(3):before {
content: " ";
position: absolute;
background: #ccc;
z-index: 1;
width: 46rem;
height: 14rem;
top: -4px;
left: 50%;
margin-left: -23rem;
border-bottom: solid 2rem #d11124;
border-bottom-left-radius: 22rem 18rem;
border-bottom-right-radius: 22rem 18rem;
}
#hero.joker header div:nth-child(3):after {
content: " ";
position: absolute;
z-index: 2;
top: 5rem;
left: 50%;
margin-left: -7rem;
border-style: solid;
border-color: #ccc transparent transparent transparent;
border-width: 11rem 7rem 0 7rem;
}
#hero.joker header div:nth-child(4):before {
content: " ";
position: absolute;
z-index: 1;
width: 22rem;
height: 15rem;
top: 8rem;
right: 50%;
margin-right: 4rem;
border-top-left-radius: 6rem 17rem;
border-top-right-radius: 16rem 17rem;
box-shadow: inset 2rem -3rem 0 0 #ccc, inset 1rem 2rem 0 0 #00770e;
}
#hero.joker header div:nth-child(4):after {
content: " ";
position: absolute;
z-index: 1;
width: 22rem;
height: 15rem;
top: 8rem;
left: 50%;
margin-left: 4rem;
border-top-left-radius: 16rem 17rem;
border-top-right-radius: 6rem 17rem;
box-shadow: inset -2rem -3rem 0 0 #ccc, inset -1rem 2rem 0 0 #00770e;
}
#hero.joker main:before {
border-right-color: #460186;
}
#hero.joker main:after {
border-left-color: #460186;
}
#hero.joker main div:nth-child(1) {
position: absolute;
z-index: 2;
width: 0;
left: 50%;
bottom: 0;
margin-left: -29rem;
border-style: solid;
border-color: #ffaa00 transparent transparent transparent;
border-width: 179rem 29rem 0 29rem;
}
#hero.joker main div:nth-child(2):before {
content: " ";
position: absolute;
z-index: 1;
width: 118rem;
top: 0;
left: 50%;
margin-top: -175rem;
margin-left: -59rem;
border-style: solid;
border-color: transparent transparent #460186 transparent;
border-width: 0 2rem 10rem 2rem;
}
#hero.joker main div:nth-child(2):after {
content: " ";
position: absolute;
z-index: 1;
width: 114rem;
top: 0;
left: 50%;
margin-top: -193rem;
margin-left: -57rem;
border-style: solid;
border-color: transparent transparent #460186 transparent;
border-width: 0 57rem 18rem 57rem;
}
#hero.joker main div:nth-child(3) {
position: absolute;
background: #00770e;
z-index: 3;
width: 8rem;
height: 8rem;
top: 0;
left: 50%;
margin-top: -142rem;
margin-left: -4rem;
border-radius: 50%;
box-shadow: 39rem 10rem 0 8rem #00770e;
}
#hero.joker main div:nth-child(3):before {
content: " ";
position: absolute;
z-index: 1;
top: 0;
left: 50%;
width: 40rem;
height: 11rem;
margin-top: -1rem;
margin-left: -20rem;
border-style: solid;
border-color: transparent #00770e;
border-width: 3rem 18rem 6rem 19rem;
}
#hero.gambit header {
width: 62rem;
height: 45rem;
top: 62rem;
left: 50%;
margin-left: -31rem;
border-style: solid;
border-color: #242c8f transparent transparent transparent;
border-width: 45rem 6rem 0 6rem;
}
#hero.gambit header:before {
content: " ";
position: absolute;
background: #ffaa77;
z-index: 1;
width: 48rem;
height: 25rem;
top: 0;
left: 50%;
margin-top: -39rem;
margin-left: -24rem;
border-bottom-left-radius: 12rem 8rem;
border-bottom-right-radius: 12rem 8rem;
}
#hero.gambit header:after {
content: " ";
position: absolute;
background: #242c8f;
z-index: 1;
width: 48rem;
height: 4rem;
top: 0;
left: 50%;
margin-top: -39rem;
margin-left: -24rem;
border-bottom-left-radius: 24rem 5rem;
border-bottom-right-radius: 24rem 5rem;
}
#hero.gambit header div:nth-child(1) {
position: absolute;
z-index: 2;
width: 34rem;
left: 50%;
margin-top: -15rem;
margin-left: -17rem;
border-style: solid;
border-color: transparent transparent #ffaa77 transparent;
border-width: 0 1rem 22rem 1rem;
}
#hero.gambit header div:nth-child(1):before {
content: " ";
position: absolute;
z-index: 2;
width: 34rem;
left: 50%;
margin-top: 22rem;
margin-left: -17rem;
border-style: solid;
border-color: #ffaa77 transparent transparent transparent;
border-width: 9rem 7rem 0 7rem;
}
#hero.gambit header div:nth-child(2) {
position: absolute;
background: #ffaa77;
z-index: -1;
width: 68rem;
height: 16rem;
top: -33rem;
left: 50%;
margin-left: -34rem;
border-top-left-radius: 3rem;
border-top-right-radius: 3rem;
border-bottom-left-radius: 12rem 8rem;
border-bottom-right-radius: 12rem 8rem;
}
#hero.gambit header div:nth-child(3):before {
content: " ";
position: absolute;
background: #ff1800;
z-index: 1;
width: 15rem;
height: 5rem;
top: -26rem;
left: 5rem;
border-top-right-radius: 15rem 2rem;
border-bottom-left-radius: 10rem 5rem;
border-bottom-right-radius: 5rem 3rem;
}
#hero.gambit header div:nth-child(3):after {
content: " ";
position: absolute;
background: #ff1800;
z-index: 1;
width: 15rem;
height: 5rem;
top: -26rem;
right: 5rem;
border-top-left-radius: 15rem 2rem;
border-bottom-left-radius: 5rem 3rem;
border-bottom-right-radius: 10rem 5rem;
}
#hero.gambit header div:nth-child(4) {
position: absolute;
z-index: 2;
width: 36rem;
height: 35rem;
top: -45rem;
left: -12rem;
border-top-left-radius: 30px 38px;
border-top-right-radius: 4px 5px;
box-shadow: 0 -13rem 0 0 #742f03;
}
#hero.gambit header div:nth-child(4):before {
content: " ";
position: absolute;
z-index: 2;
width: 32rem;
height: 25rem;
top: 0rem;
left: 36rem;
border-top-left-radius: 4rem 5rem;
border-top-right-radius: 21rem 16rem;
box-shadow: 0 -13rem 0 0 #742f03;
}
#hero.gambit header div:nth-child(4):after {
content: " ";
position: absolute;
z-index: 2;
width: 71rem;
height: 55rem;
top: -25rem;
left: -6rem;
border-top-left-radius: 41rem 40rem;
border-top-right-radius: 36rem 25rem;
border-top: solid 17rem #742f03;
}
#hero.gambit header div:nth-child(5) {
position: absolute;
z-index: 2;
width: 36rem;
height: 25rem;
top: -47rem;
left: -14rem;
border-top-left-radius: 30px 14px;
box-shadow: 0 -13rem 0 0 #742f03;
}
#hero.gambit header div:nth-child(5):before {
content: " ";
position: absolute;
z-index: 2;
width: 51rem;
height: 13rem;
top: -19rem;
left: 46rem;
border-top-left-radius: 66rem 40rem;
border-top-right-radius: 36rem 25rem;
border-left: solid 17rem #742f03;
}
#hero.gambit main:before {
border-right-color: #cc6611;
}
#hero.gambit main:after {
border-left-color: #cc6611;
}
#hero.gambit main div:nth-child(1) {
position: absolute;
z-index: 2;
width: 94rem;
left: 50%;
bottom: 0;
margin-left: -47rem;
border-style: solid;
border-color: #a91276 transparent transparent transparent;
border-width: 160rem 47rem 0 47rem;
}
#hero.gambit main div:nth-child(1):before {
content: " ";
position: absolute;
z-index: 1;
width: 86rem;
top: 0;
left: 50%;
margin-top: -163rem;
margin-left: -43rem;
border-style: solid;
border-color: #597fe5 transparent transparent transparent;
border-width: 31rem 22rem 0 22rem;
}
#hero.gambit main div:nth-child(1):after {
content: " ";
position: absolute;
z-index: 1;
width: 84rem;
top: 0;
left: 50%;
margin-top: -169rem;
margin-left: -42rem;
border-style: solid;
border-color: #242c8f transparent transparent transparent;
border-width: 32rem 24rem 0 24rem;
}
#hero.gambit main div:nth-child(2):before {
content: " ";
position: absolute;
z-index: 1;
width: 118rem;
top: 0;
left: 50%;
margin-top: -175rem;
margin-left: -59rem;
border-style: solid;
border-color: #cc6611 transparent transparent transparent;
border-width: 8rem 5rem 0 5rem;
}
#hero.gambit main div:nth-child(2):after {
content: " ";
position: absolute;
z-index: 1;
width: 118rem;
top: 0;
left: 50%;
margin-top: -186rem;
margin-left: -59rem;
border-style: solid;
border-color: transparent transparent #cc6611 transparent;
border-width: 0 59rem 11rem 59rem;
}
#hero.gambit main div:nth-child(3):before {
content: " ";
position: absolute;
z-index: 2;
width: 0;
top: 0;
left: 50%;
margin-top: -170rem;
margin-left: -50rem;
border-style: solid;
border-color: #cc6611 transparent transparent transparent;
border-width: 28rem 28rem 0 0;
}
#hero.gambit main div:nth-child(3):after {
content: " ";
position: absolute;
z-index: 2;
width: 0;
top: 0;
right: 50%;
margin-top: -170rem;
margin-right: -50rem;
border-style: solid;
border-color: #cc6611 transparent transparent transparent;
border-width: 28rem 0 0 28rem;
}
#hero.gambit main div:nth-child(4) {
position: absolute;
z-index: 2;
top: 0;
left: 50%;
margin-top: -130rem;
margin-left: 41rem;
border-radius: 2rem;
transform: rotateZ(15deg);
}
#hero.gambit main div:nth-child(4):before {
content: " ";
background: #fff;
display: block;
width: 21rem;
height: 29rem;
box-shadow: inset 0 -2rem 0 8rem #fff, inset 0 4rem 0 8rem #fff, inset 0 0 0 21rem #ff1800;
}
#hero.gambit main div:nth-child(4):after {
content: " ";
position: absolute;
z-index: 2;
width: 0;
right: 0;
bottom: 0;
margin-right: -1rem;
margin-bottom: -1rem;
border-style: solid;
border-color: transparent transparent #cc6611 transparent;
border-width: 0 0 9rem 26rem;
}
#hero.magneto header {
background: #ff1800;
width: 68rem;
height: 101rem;
top: 17rem;
left: 50%;
margin-left: -34rem;
border-top-left-radius: 34rem;
border-top-right-radius: 34rem;
border-bottom-left-radius: 35rem 31rem;
border-bottom-right-radius: 35rem 31rem;
}
#hero.magneto header div:nth-child(1) {
position: absolute;
background: #460186;
z-index: 1;
width: 18rem;
height: 42rem;
top: 59rem;
left: 50%;
margin-left: -9rem;
}
#hero.magneto header div:nth-child(1):before {
content: " ";
position: absolute;
background: #460186;
z-index: 1;
width: 30rem;
height: 26rem;
top: -26rem;
right: 50%;
border-top-left-radius: 10rem 13rem;
border-top-right-radius: 20rem 13rem;
border-bottom-left-radius: 14rem 13rem;
}
#hero.magneto header div:nth-child(1):after {
content: " ";
position: absolute;
background: #460186;
z-index: 1;
width: 30rem;
height: 26rem;
top: -26rem;
left: 50%;
border-top-left-radius: 20rem 13rem;
border-top-right-radius: 10rem 13rem;
border-bottom-right-radius: 14rem 13rem;
}
#hero.magneto header div:nth-child(2) {
position: absolute;
background: #000;
z-index: 1;
width: 12rem;
height: 42rem;
top: 56rem;
left: 50%;
margin-left: -6rem;
}
#hero.magneto header div:nth-child(2):before {
content: " ";
position: absolute;
background: #000;
z-index: 1;
width: 27rem;
height: 20rem;
top: -20rem;
right: 50%;
border-top-left-radius: 10rem 13rem;
border-top-right-radius: 20rem 13rem;
border-bottom-left-radius: 14rem 13rem;
}
#hero.magneto header div:nth-child(2):after {
content: " ";
position: absolute;
background: #000;
z-index: 1;
width: 27rem;
height: 20rem;
top: -20rem;
left: 50%;
border-top-left-radius: 20rem 13rem;
border-top-right-radius: 10rem 13rem;
border-bottom-right-radius: 14rem 13rem;
}
#hero.magneto header div:nth-child(3):before {
content: " ";
position: absolute;
background: #fff;
z-index: 1;
width: 11rem;
height: 6rem;
top: 45rem;
right: 50%;
margin-right: 8rem;
border-top-right-radius: 100%;
border-bottom-left-radius: 100%;
}
#hero.magneto header div:nth-child(3):after {
content: " ";
position: absolute;
background: #fff;
z-index: 1;
width: 11rem;
height: 6rem;
top: 45rem;
left: 50%;
margin-left: 8rem;
border-top-left-radius: 100%;
border-bottom-right-radius: 100%;
}
#hero.magneto header div:nth-child(4) {
position: absolute;
z-index: 1;
width: 30rem;
height: 15rem;
top: 14rem;
left: 50%;
margin-left: -15rem;
border-bottom-left-radius: 15rem;
border-bottom-right-radius: 15rem;
border-bottom: solid 6rem #460186;
}
#hero.magneto header div:nth-child(4):after {
content: " ";
position: absolute;
background: #460186;
z-index: 1;
width: 4rem;
height: 13rem;
top: 5rem;
left: 50%;
margin-left: -2rem;
border-radius: 50%;
}
#hero.magneto main:before {
border-right-color: #ff1800;
}
#hero.magneto main:after {
border-left-color: #ff1800;
}
#hero.magneto main div:nth-child(1):before {
content: " ";
position: absolute;
z-index: 1;
width: 0;
height: 0;
top: 0;
left: 50%;
margin-top: -179rem;
margin-left: -113rem;
border-style: solid;
border-color: transparent #460186 transparent transparent;
border-width: 35rem 34rem 15rem 0;
}
#hero.magneto main div:nth-child(1):after {
content: " ";
position: absolute;
z-index: 1;
width: 0;
height: 0;
top: 0;
right: 50%;
margin-top: -179rem;
margin-right: -113rem;
border-style: solid;
border-color: transparent transparent transparent #460186;
border-width: 35rem 0 15rem 35rem;
}
#hero.magneto main div:nth-child(2):before {
content: " ";
position: absolute;
z-index: 1;
width: 0;
height: 0;
top: 0;
left: 50%;
margin-top: -179rem;
margin-left: -79rem;
border-style: solid;
border-color: transparent transparent transparent #460186;
border-width: 21rem 0 29rem 46rem;
}
#hero.magneto main div:nth-child(2):after {
content: " ";
position: absolute;
z-index: 1;
width: 0;
height: 0;
top: 0;
right: 50%;
margin-top: -179rem;
margin-right: -78rem;
border-style: solid;
border-color: transparent #460186 transparent transparent;
border-width: 21rem 46rem 29rem 0;
}
#hero.magneto main div:nth-child(3):before {
content: " ";
position: absolute;
z-index: 1;
width: 0;
height: 0;
top: 0;
left: 50%;
margin-top: -192rem;
margin-left: -90rem;
border-style: solid;
border-color: transparent #460186 transparent transparent;
border-width: 42rem 77rem 18rem 0;
}
#hero.magneto main div:nth-child(3):after {
content: " ";
position: absolute;
z-index: 1;
width: 0;
height: 0;
top: 0;
right: 50%;
margin-top: -192rem;
margin-right: -90rem;
border-style: solid;
border-color: transparent transparent transparent #460186;
border-width: 42rem 0 18rem 77rem;
}
#hero.magneto main div:nth-child(4) {
position: absolute;
background: #460186;
z-index: 1;
width: 28rem;
height: 77rem;
top: 0;
left: 50%;
margin-top: -199rem;
margin-left: -14rem;
}
#hero.wolverine header {
background: #ffee00;
width: 60rem;
height: 60rem;
top: 36rem;
left: 50%;
margin-left: -30rem;
border-bottom: solid 17rem #ffaa77;
border-top-left-radius: 30rem;
border-top-right-radius: 30rem;
}
#hero.wolverine header:before {
content: " ";
position: absolute;
z-index: 1;
width: 60rem;
top: 100%;
margin-top: 16rem;
border-style: solid;
border-color: #ffaa77 transparent transparent transparent;
border-width: 22rem 21rem 0 21rem;
}
#hero.wolverine header:after {
content: " ";
position: absolute;
z-index: 1;
top: 100%;
left: 50%;
margin-left: -26rem;
border-style: solid;
border-color: #ffee00 transparent transparent transparent;
border-width: 13rem 26rem 0 26rem;
}
#hero.wolverine header div:nth-child(1) {
position: absolute;
z-index: 1;
width: 52rem;
top: 100%;
left: 50%;
margin-left: -26rem;
border-style: solid;
border-color: transparent #000 transparent #000;
border-width: 10rem 12rem 10rem 12rem;
}
#hero.wolverine header div:nth-child(1):before {
content: " ";
position: absolute;
z-index: 1;
height: 22rem;
top: 100%;
left: 50%;
margin-top: -12rem;
margin-left: -30rem;
border-style: solid;
border-color: #000 #000 transparent transparent;
border-width: 13rem 4rem 4rem 0;
}
#hero.wolverine header div:nth-child(1):after {
content: " ";
position: absolute;
z-index: 1;
height: 22rem;
top: 100%;
right: 50%;
margin-top: -12rem;
margin-right: -30rem;
border-style: solid;
border-color: #000 transparent transparent #000;
border-width: 13rem 0 4rem 4rem;
}
#hero.wolverine header div:nth-child(2) {
position: absolute;
background: #000;
z-index: 2;
width: 40rem;
height: 30rem;
top: 25rem;
right: 50%;
margin-right: -1rem;
border-top-right-radius: 26rem;
transform: rotateZ(27deg);
transform-origin: right center;
}
#hero.wolverine header div:nth-child(2):before {
content: " ";
position: absolute;
z-index: 1;
left: 100%;
bottom: 0;
border-style: solid;
border-color: transparent transparent #000 transparent;
border-width: 0 7rem 5rem 0;
}
#hero.wolverine header div:nth-child(2):after {
content: " ";
position: absolute;
z-index: 1;
width: 40rem;
height: 30rem;
top: -4rem;
left: -17rem;
border-left: solid 30rem #000;
border-top-left-radius: 47rem 22rem;
transform: rotateZ(-85deg);
}
#hero.wolverine header div:nth-child(3) {
position: absolute;
background: #000;
z-index: 2;
width: 40rem;
height: 30rem;
top: 25rem;
left: 50%;
margin-right: -1rem;
border-top-left-radius: 26rem;
transform: rotateZ(-27deg);
transform-origin: left center;
}
#hero.wolverine header div:nth-child(3):before {
content: " ";
position: absolute;
z-index: 1;
right: 100%;
bottom: 0;
border-style: solid;
border-color: transparent transparent #000 transparent;
border-width: 0 0 5rem 7rem;
}
#hero.wolverine header div:nth-child(3):after {
content: " ";
position: absolute;
z-index: 1;
width: 40rem;
height: 30rem;
top: -4rem;
right: -17rem;
border-right: solid 30rem #000;
border-top-right-radius: 47rem 22rem;
transform: rotateZ(85deg);
}
#hero.wolverine header div:nth-child(4):before {
content: " ";
position: absolute;
background: #fff;
z-index: 2;
width: 9rem;
height: 4rem;
top: 36rem;
right: 50%;
margin-right: 10rem;
border-top-right-radius: 100%;
border-bottom-left-radius: 100%;
transform: rotateZ(7deg);
}
#hero.wolverine header div:nth-child(4):after {
content: " ";
position: absolute;
background: #fff;
z-index: 2;
width: 9rem;
height: 4rem;
top: 36rem;
left: 50%;
margin-left: 10rem;
border-top-left-radius: 100%;
border-bottom-right-radius: 100%;
transform: rotateZ(-7deg);
}
#hero.wolverine main:before {
border-right-color: #ffee00;
}
#hero.wolverine main:after {
border-left-color: #ffee00;
}
#hero.wolverine main div:nth-child(1) {
position: absolute;
background: #ff1800;
z-index: 1;
width: 42rem;
height: 42rem;
left: 50%;
bottom: 95rem;
margin-left: -21rem;
border-radius: 50%;
border: solid 5rem #ffee00;
box-shadow: 0 0 0 1rem #ff1800;
}
#hero.wolverine main div:nth-child(1):before {
content: " ";
position: absolute;
background: #ffee00;
z-index: 1;
width: 32rem;
height: 6rem;
top: 50%;
left: 0;
margin-top: -3rem;
transform: rotateZ(-45deg);
}
#hero.wolverine main div:nth-child(1):after {
content: " ";
position: absolute;
background: #ffee00;
z-index: 1;
width: 32rem;
height: 6rem;
top: 50%;
left: 0;
margin-top: -3rem;
transform: rotateZ(45deg);
}
#hero.wolverine main div:nth-child(2):before {
content: " ";
position: absolute;
z-index: 1;
left: 50%;
bottom: 63rem;
margin-left: -68rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 11rem 32rem 0 18rem;
transform: rotateZ(19deg);
}
#hero.wolverine main div:nth-child(2):after {
content: " ";
position: absolute;
z-index: 1;
right: 50%;
bottom: 63rem;
margin-right: -68rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 11rem 18rem 0 32rem;
transform: rotateZ(-19deg);
}
#hero.wolverine main div:nth-child(3):before {
content: " ";
position: absolute;
z-index: 1;
left: 50%;
bottom: 44rem;
margin-left: -50rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 9rem 24rem 0 16rem;
transform: rotateZ(20deg);
}
#hero.wolverine main div:nth-child(3):after {
content: " ";
position: absolute;
z-index: 1;
right: 50%;
bottom: 44rem;
margin-right: -50rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 9rem 16rem 0 24rem;
transform: rotateZ(-20deg);
}
#hero.wolverine main div:nth-child(4):before {
content: " ";
position: absolute;
z-index: 1;
left: 50%;
bottom: 27rem;
margin-left: -32rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 6rem 17rem 0 12rem;
transform: rotateZ(20deg);
}
#hero.wolverine main div:nth-child(4):after {
content: " ";
position: absolute;
z-index: 1;
right: 50%;
bottom: 27rem;
margin-right: -32rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 6rem 12rem 0 17rem;
transform: rotateZ(-20deg);
}
#hero.wolverine main div:nth-child(5):before {
content: " ";
position: absolute;
z-index: 1;
left: 50%;
bottom: 124rem;
margin-left: -49rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 45rem 4rem 0 6rem;
transform: rotateZ(-23deg);
}
#hero.wolverine main div:nth-child(5):after {
content: " ";
position: absolute;
z-index: 1;
right: 50%;
bottom: 124rem;
margin-right: -49rem;
border-style: solid;
border-color: #000 transparent transparent transparent;
border-width: 45rem 6rem 0 4rem;
transform: rotateZ(23deg);
}
#hero.wolverine main div:nth-child(6) {
position: absolute;
z-index: 1;
left: 50%;
bottom: 98rem;
margin-left: -122rem;
border-style: solid;
border-color: transparent #0d50c4 transparent transparent;
border-width: 20rem 54rem 50rem 0;
transform: rotateZ(9deg);
}
#hero.wolverine main div:nth-child(6):before {
content: " ";
position: absolute;
z-index: 1;
left: -1px;
bottom: 6px;
border-style: solid;
border-color: #0d50c4 transparent transparent transparent;
border-width: 8rem 58rem 0 0;
transform: rotateZ(-14deg);
}
#hero.wolverine main div:nth-child(7) {
position: absolute;
z-index: 1;
right: 50%;
bottom: 98rem;
margin-right: -122rem;
border-style: solid;
border-color: transparent transparent transparent #0d50c4;
border-width: 20rem 0 50rem 54rem;
transform: rotateZ(-9deg);
}
#hero.wolverine main div:nth-child(7):before {
content: " ";
position: absolute;
z-index: 1;
right: -1px;
bottom: 6px;
border-style: solid;
border-color: #0d50c4 transparent transparent transparent;
border-width: 8rem 0 0 58rem;
transform: rotateZ(14deg);
}
#hero.cyclops header {
width: 58rem;
height: 50rem;
top: 48rem;
left: 50%;
margin-left: -29rem;
border-top: solid 38rem #ffaa77;
border-bottom: solid 12rem #0d50c4;
border-top-left-radius: 20rem;
border-top-right-radius: 20rem;
}
#hero.cyclops header:before {
content: " ";
position: absolute;
background: #ff1800;
z-index: 1;
width: 64rem;
height: 16rem;
top: -16rem;
left: 50%;
margin-left: -32rem;
border: solid 4rem #ffcc00;
border-radius: 2rem;
box-shadow: inset 0 -1rem 0 0 #991100, inset 4rem 0 0 0 #ff1800, inset 7rem 0 0 0 #fff;
}
#hero.cyclops header:after {
content: " ";
position: absolute;
background: #ffaa77;
z-index: 1;
width: 40rem;
height: 23rem;
top: 0;
left: 50%;
margin-left: -20rem;
}
#hero.cyclops header div:nth-child(1) {
position: absolute;
z-index: 1;
width: 40rem;
height: 0;
top: 23rem;
left: 50%;
margin-left: -20rem;
border-style: solid;
border-color: #ffaa77 transparent transparent transparent;
border-width: 10rem 10rem 0 10rem;
}
#hero.cyclops header div:nth-child(2) {
position: absolute;
z-index: 1;
width: 60rem;
height: 40rem;
top: -56rem;
left: 50%;
margin-left: -30rem;
border-top: solid 20rem #550000;
border-left: solid 5rem #550000;
border-right: solid 5rem #550000;
border-top-left-radius: 30rem 30rem;
border-top-right-radius: 30rem 30rem;
}
#hero.cyclops header div:nth-child(2):before {
content: " ";
position: absolute;
z-index: 1;
width: 22rem;
height: 18rem;
top: -21rem;
left: 23rem;
border-bottom: solid 14rem #550000;
border-bottom-right-radius: 22rem 18rem;
}
#hero.cyclops header div:nth-child(2):after {
content: " ";
position: absolute;
z-index: 1;
width: 12rem;
height: 18rem;
top: -16rem;
left: 39rem;
border-left: solid 10rem #550000;
border-top-left-radius: 22rem 18rem;
}
#hero.cyclops head
/*
DC vs. Marvel
Made by Kevin Jannis (@kevinjannis)
Inspired by some post on 9gag that I can't find anymore.. If you find it then please let me know ;)
View more at www.janniskev.in
*/
Also see: Tab Triggers