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.
<div class="starfield">
<div class="stars"></div>
</div>
<svg id="poster" version="1.1" viewBox="0 0 300 200">
<defs id="defs19">
<linearGradient id="linearGradient4949-1">
<stop
id="stop4945"
offset="0"
stop-color="#ede7e7"
stop-opacity="1"
/>
<stop
id="stop4947"
offset="1"
stop-color="#526754"
stop-opacity="1"
/>
</linearGradient>
<linearGradient
id="linearGradient4951"
x1="43.454"
x2="43.439"
y1="45.635"
y2="25.415"
gradientTransform="translate(2 44.9)"
gradientUnits="userSpaceOnUse"
spreadMethod="repeat"
xlink:href="#linearGradient4949-1"
/>
<linearGradient
id="linearGradient5022"
x1="70.818"
x2="70.913"
y1="84.433"
y2="99.401"
gradientTransform="translate(-83.106 -2.769)"
gradientUnits="userSpaceOnUse"
xlink:href="#linearGradient4949-1"
/>
<linearGradient
id="linearGradient4850"
x1="43.454"
x2="43.439"
y1="45.635"
y2="25.415"
gradientTransform="translate(-81.106 42.131)"
gradientUnits="userSpaceOnUse"
spreadMethod="repeat"
xlink:href="#linearGradient4949-1"
/>
<filter
id="filter4964"
width="1.013"
height="1.205"
x="-.006"
y="-.103"
color-interpolation-filters="sRGB"
>
<feGaussianBlur id="feGaussianBlur4966" stdDeviation=".516" />
</filter>
<mask id="letters-mask">
<path
id="path23"
fill="#fff"
stroke-width=".894"
d="M21.995 72.982c-.917 0-1.492.42-1.72 1.261l-8.335 24.43a1.159 1.159 0 00-.038.344c0 .152.077.32.23.497a.91.91 0 00.61.23h7.227c.815 0 1.39-.434 1.72-1.3l.956-2.677h9.328l.956 2.677c.33.866.904 1.3 1.72 1.3h7.226a.777.777 0 00.574-.23c.179-.179.268-.344.268-.497a1.13 1.13 0 00-.04-.344l-8.333-24.43c-.23-.84-.804-1.261-1.721-1.261zm4.382 4.976c.48.038 1.011.089 1.412.375.288.274.598.516.923.742-.06.173-.315.478-.046.746.252.393.28.897.496 1.325.138.458.443.837.566 1.3.086.426.341.8.39 1.24.14.44.417.808.475 1.269-.417.194-.545.716-.914.956-.161.036-.289.176-.36.34l.233.679c.366.223.556.671.84.99.174.261.502.53.338.87h-6.785c-.152-.009-.39.066-.341-.173.171-.554.471-1.064.794-1.542.469-.255.137-.956.443-1.18.24-.355.491-.826.538-1.262-.265-.97-.664-1.9-1.012-2.843-.148-.354-.228-.798-.652-.869-.252-.15.291-.271.228-.504.047-.438.067-.893.312-1.276.294-.268-.164-.572.196-.763.311.303.655-.26 1.028-.314.288-.095.596-.11.898-.107z"
class="letter"
/>
<path
id="path25"
fill="#fff"
stroke-width=".894"
d="M92.797 72.98l-.006.03c-.072.202-.024.25.31.321.92.18 1.23.407 1.623 1.17.215.407.383.813.383.896 0 .095-.335.49-.729.884l-.74.728.072 1.408c.072 1.397.072 1.408-.227 1.624l-.286.214.286.752c.167.418.465 1.027.668 1.35.203.333.394.75.43.942.096.453-.287.836-.848.836-.464 0-.656.238-.656.823a.96.96 0 01-.238.608c-.131.132-.24.37-.24.526 0 .215-.095.322-.357.418-.334.107-.36.155-.36.728 0 1.436-1.046 1.992-2.808 1.49v.956c.072.033.125.076.147.133.02.059-.041.27-.147.55v3.61a8.7 8.7 0 01.16.328c.214.477.716 1.325 1.11 1.885 1.037 1.447 1.7 2.64 1.986 3.554h20.104a.99.99 0 00.725-.307.993.993 0 00.306-.726v-5.772a.992.992 0 00-.306-.727.992.992 0 00-.726-.306H99.397V74.014a.992.992 0 00-.306-.727.994.994 0 00-.727-.306zm1.163 2.445c-.04.008-.105.09-.201.246-.251.442-.204.561.083.239.119-.132.191-.322.167-.418-.01-.049-.025-.071-.05-.067z"
class="letter"
/>
<path
id="path27"
fill="#fff"
stroke-width=".894"
d="M150.582 80.819h-6.92v11.087h6.92q.42 0 .726.306.307.306.307.727v5.772q0 .42-.307.726-.306.307-.726.307h-24.24q-.42 0-.726-.307-.306-.305-.306-.726v-5.772q0-.421.306-.727t.727-.306h6.996V80.819h-6.996q-.421 0-.727-.306-.306-.305-.306-.726v-5.772q0-.422.306-.728.306-.305.727-.305h24.239q.42 0 .725.305.307.306.307.727v5.772q0 .422-.307.727-.305.306-.725.306z"
class="letter"
/>
<path
id="path29"
fill="#fff"
stroke-width=".894"
d="M172.815 72.98c-.918 0-1.492.422-1.72 1.263l-4.463 13.078c.956.02 1.615-.126 1.615-.126.965-.25 3.16-.25 3.16-.25-.058-.221.384-.576.384-.576-.081-.214.273-.958.273-.958.25-.988 1.951-2.527 1.951-2.527 0-.302.605-.633.605-.633.244-.47 1.208-.854 1.208-.854.523-.604.988-.576.988-.576l.36-.028a2.956 2.956 0 01.905-.292l.048-.142.043.128c.63-.067 1.008.143 1.008.143.192.052.795.163.795.163.744-.111 1.401.714 1.401.714.244.08.494.604.494.604.191-.087.767.354.767.354.906.523.959 1.017.959 1.017.19 0 .493.575.493.575.169.052.33.605.33.605.216-.082.355.807.355.807.245-.128.355.982.355.982.302-.082.715.302.715.302.545-.436 2.497-.354 2.497-.354a6.78 6.78 0 00.891-.23l-4.068-11.926c-.23-.841-.804-1.262-1.721-1.262zm17.513 16.4c-.37.648-2.156 1.712-2.156 1.712-.354.575-2.497 1.18-2.497 1.18 0 .22-.413.493-.413.493-.052.134-.383.383-.383.465 0 .081-.302.959-.302.959.656.08 1.371 1.59 1.371 1.59.302.059.633.936.633.936 1.923.385 3.956 2.446 3.956 2.446.23.173.436.369.62.583h1.537a.777.777 0 00.574-.23c.179-.179.268-.345.268-.498a1.162 1.162 0 00-.038-.344zm-24.588.554l-2.98 8.74a1.162 1.162 0 00-.038.342c0 .153.077.32.23.498.178.152.381.23.61.23h2.965c1.569-1.507 4.851-2.825 4.851-2.825l.082-.162c.441-.988 1.18-1.43 1.016-1.593-.168-.168-.22-1.156-.22-1.156-.192-.08-.332-.714-.332-.714-.162-.03-.574-.744-.574-.744-.25.058-1.923-.493-1.923-.493-1.431-.215-2.729-1.184-3.687-2.123z"
class="letter"
/>
<path
id="path31"
fill="#fff"
stroke-width=".894"
d="M198.315 72.98a.992.992 0 00-.727.307.992.992 0 00-.305.727V98.71c0 .28.101.522.305.726a.995.995 0 00.727.307h5.875c.381-.304.802-.538 1.215-.658.216-.066.395-.16.395-.207 0-.058.16-.33.348-.603l.31-.456v-.073l-.168-.16a1.601 1.601 0 00-.443-.282.69.69 0 01-.34-.368c-.056-.15-.16-.301-.225-.33-.076-.028-.207-.188-.292-.357a4.092 4.092 0 00-.462-.67c-.405-.47-.518-.932-.547-2.185-.019-.886.01-1.112.199-1.592.244-.632.688-1.244.97-1.33.104-.037.34-.31.536-.612.2-.317.48-.685.772-1.033v-.516l.212.27c.288-.325.574-.62.798-.803.527-.415 1.328-.83 1.837-.923.51-.104 1.159-.037 2.007.179.367.103.895.207 1.177.245.782.094 2.394 1.036 3.232 1.903.556.556.66 1.027.396 1.62-.141.321-.15.463-.066 1.055.085.623.075.718-.085.944-.095.14-.151.32-.122.395.028.085.009.15-.038.15-.057 0-.132.152-.17.33-.047.292-.009.396.321.83.509.669.556.857.282 1.12a3.113 3.113 0 01-.405.32c-.17.095-.17.133-.057.5.095.34.095.433-.028.622a.99.99 0 00-.152.452.625.625 0 01-.187.396c-.151.141-.188.273-.17.716.024.38-.003.53-.106.672.34.29.736.437 1.187.437h6.155c.28 0 .523-.101.727-.305a.994.994 0 00.306-.727V74.014a.992.992 0 00-.306-.727.994.994 0 00-.727-.306h-7.11a.992.992 0 00-.727.306.992.992 0 00-.306.727v11.24L206 73.745c-.382-.51-.879-.765-1.49-.765z"
class="letter"
/>
<path
id="path33"
fill="#fff"
stroke-width=".894"
d="M55.971 72.982a1.15 1.15 0 00-.187.017c1.23.39 2.334.956 2.963 1.6.836.849 1.397 1.637 1.529 2.103.06.239.107.967.095 1.6-.011 1.04-.047 1.183-.297 1.421-.383.359-.347.55.226 1.23.597.73 1.17 1.602 1.17 1.805 0 .155-.107.286-.645.74-.274.227-.298.322-.238.729.071.466.035.537-.478.895-.227.155-.227.179-.036.358.25.251.25.43.024.742-.096.119-.179.489-.179.824 0 1.182-.502 1.492-2.39 1.492-.727 0-1.432.06-1.564.12-.12.071-.358.382-.513.693a3.565 3.565 0 01-.512.759v3.511a4.378 4.378 0 01.333.746c.143.442.393 1.064.561 1.398.474.957.831 2.076 1.263 3.979h21.202c.28 0 .523-.102.727-.306a.995.995 0 00.306-.727v-5.772a.992.992 0 00-.306-.727.994.994 0 00-.727-.306H65.261V74.014a.992.992 0 00-.305-.727.992.992 0 00-.727-.305z"
class="letter"
/>
<path
id="path35"
d="M272.47 92.592h15.517q.428 0 .739.311t.311.74v5.483q0 .427-.311.738t-.739.311H263.41q-.428 0-.739-.31-.31-.312-.31-.74V74.004q0-.428.31-.739.311-.31.74-.31h24.188q.428 0 .74.31.31.311.31.74v5.482q0 .428-.31.74-.312.31-.74.31H272.47v2.45h12.99q.427 0 .738.312.311.31.311.738v5.056q0 .428-.31.739-.312.311-.74.311H272.47z"
class="letter"
style="
line-height: 1.25;
-inkscape-font-specification: 'Rubik Mono One';
"
/>
<path
id="path37"
d="M242.72 72.564c-5.833 0-9.994 1.685-12.483 5.056-1.322 1.815-1.983 4.032-1.983 6.65v4.589c0 2.618.66 4.835 1.983 6.65 1.322 1.789 3.032 3.085 5.132 3.889 2.126.777 4.474 1.166 7.04 1.166 2.567 0 4.797-.298 6.69-.894 1.892-.623 3.409-1.426 4.55-2.411 2.28-1.997 3.421-4.201 3.421-6.612a.735.735 0 00-.272-.583.735.735 0 00-.583-.272h-8.401c-.008 0-.015.004-.022.004-.246.568-.565 1.138-.766 1.321-.192.173-.364.574-.364.88 0 .44-.173.652-.862 1.092-1.206.766-2.335 1.034-3.962.957-1.149-.057-1.647-.21-2.7-.746-.957-.478-1.282-.746-1.282-1.053 0-.21-.173-.65-.403-.957-.957-1.417-1.283-2.49-1.225-4.06.02-.823.114-1.645.19-1.817.077-.21.003-.383-.266-.536-.344-.173-.402-.383-.402-1.301 0-1.8.861-2.816 1.378-1.629.134.288.25.556.268.594 0 .02.172-.02.344-.077.191-.077.633-.747.978-1.513.918-2.029 1.932-3.54 2.372-3.54.325 0 .365.133.327 1.243l-.039 1.244h1.686l-.078-1.187c-.038-.995 0-1.205.269-1.262.172-.038.516.21.784.573.25.345.86 1.436 1.358 2.431.19.387.4.77.601 1.134.143.204.28.423.4.67.122.192.26.426.339.52.305.37.662.56 1.077.56h8.402a.79.79 0 00.582-.234.858.858 0 00.272-.623c0-2.41-1.14-4.613-3.422-6.61-1.14-.985-2.657-1.776-4.55-2.372-1.892-.622-4.019-.934-6.378-.934z"
class="letter"
/>
</mask>
</defs>
<g id="layer3" display="inline">
<path
id="layer2"
fill="none"
d="M0 85.333h317.5V297H0V85.333z"
display="inline"
transform="translate(0 -80.63) scale(.94488)"
/>
</g>
<g id="writing">
<path
id="path24"
fill="#fff"
stroke-width=".894"
d="M21.995 72.982c-.917 0-1.492.42-1.72 1.261l-8.335 24.43a1.159 1.159 0 00-.038.344c0 .152.077.32.23.497a.91.91 0 00.61.23h7.227c.815 0 1.39-.434 1.72-1.3l.956-2.677h9.328l.956 2.677c.33.866.904 1.3 1.72 1.3h7.226a.777.777 0 00.574-.23c.179-.179.268-.344.268-.497a1.13 1.13 0 00-.04-.344l-8.333-24.43c-.23-.84-.804-1.261-1.721-1.261zm4.382 4.976c.48.038 1.011.089 1.412.375.288.274.598.516.923.742-.06.173-.315.478-.046.746.252.393.28.897.496 1.325.138.458.443.837.566 1.3.086.426.341.8.39 1.24.14.44.417.808.475 1.269-.417.194-.545.716-.914.956-.161.036-.289.176-.36.34l.233.679c.366.223.556.671.84.99.174.261.502.53.338.87h-6.785c-.152-.009-.39.066-.341-.173.171-.554.471-1.064.794-1.542.469-.255.137-.956.443-1.18.24-.355.491-.826.538-1.262-.265-.97-.664-1.9-1.012-2.843-.148-.354-.228-.798-.652-.869-.252-.15.291-.271.228-.504.047-.438.067-.893.312-1.276.294-.268-.164-.572.196-.763.311.303.655-.26 1.028-.314.288-.095.596-.11.898-.107z"
class="letter"
/>
<path
id="path26"
fill="#fff"
stroke-width=".894"
d="M92.797 72.98l-.006.03c-.072.202-.024.25.31.321.92.18 1.23.407 1.623 1.17.215.407.383.813.383.896 0 .095-.335.49-.729.884l-.74.728.072 1.408c.072 1.397.072 1.408-.227 1.624l-.286.214.286.752c.167.418.465 1.027.668 1.35.203.333.394.75.43.942.096.453-.287.836-.848.836-.464 0-.656.238-.656.823a.96.96 0 01-.238.608c-.131.132-.24.37-.24.526 0 .215-.095.322-.357.418-.334.107-.36.155-.36.728 0 1.436-1.046 1.992-2.808 1.49v.956c.072.033.125.076.147.133.02.059-.041.27-.147.55v3.61a8.7 8.7 0 01.16.328c.214.477.716 1.325 1.11 1.885 1.037 1.447 1.7 2.64 1.986 3.554h20.104a.99.99 0 00.725-.307.993.993 0 00.306-.726v-5.772a.992.992 0 00-.306-.727.992.992 0 00-.726-.306H99.397V74.014a.992.992 0 00-.306-.727.994.994 0 00-.727-.306zm1.163 2.445c-.04.008-.105.09-.201.246-.251.442-.204.561.083.239.119-.132.191-.322.167-.418-.01-.049-.025-.071-.05-.067z"
class="letter"
/>
<path
id="path28"
fill="#fff"
stroke-width=".894"
d="M150.582 80.819h-6.92v11.087h6.92q.42 0 .726.306.307.306.307.727v5.772q0 .42-.307.726-.306.307-.726.307h-24.24q-.42 0-.726-.307-.306-.305-.306-.726v-5.772q0-.421.306-.727t.727-.306h6.996V80.819h-6.996q-.421 0-.727-.306-.306-.305-.306-.726v-5.772q0-.422.306-.728.306-.305.727-.305h24.239q.42 0 .725.305.307.306.307.727v5.772q0 .422-.307.727-.305.306-.725.306z"
class="letter"
/>
<path
id="path30"
fill="#fff"
stroke-width=".894"
d="M172.815 72.98c-.918 0-1.492.422-1.72 1.263l-4.463 13.078c.956.02 1.615-.126 1.615-.126.965-.25 3.16-.25 3.16-.25-.058-.221.384-.576.384-.576-.081-.214.273-.958.273-.958.25-.988 1.951-2.527 1.951-2.527 0-.302.605-.633.605-.633.244-.47 1.208-.854 1.208-.854.523-.604.988-.576.988-.576l.36-.028a2.956 2.956 0 01.905-.292l.048-.142.043.128c.63-.067 1.008.143 1.008.143.192.052.795.163.795.163.744-.111 1.401.714 1.401.714.244.08.494.604.494.604.191-.087.767.354.767.354.906.523.959 1.017.959 1.017.19 0 .493.575.493.575.169.052.33.605.33.605.216-.082.355.807.355.807.245-.128.355.982.355.982.302-.082.715.302.715.302.545-.436 2.497-.354 2.497-.354a6.78 6.78 0 00.891-.23l-4.068-11.926c-.23-.841-.804-1.262-1.721-1.262zm17.513 16.4c-.37.648-2.156 1.712-2.156 1.712-.354.575-2.497 1.18-2.497 1.18 0 .22-.413.493-.413.493-.052.134-.383.383-.383.465 0 .081-.302.959-.302.959.656.08 1.371 1.59 1.371 1.59.302.059.633.936.633.936 1.923.385 3.956 2.446 3.956 2.446.23.173.436.369.62.583h1.537a.777.777 0 00.574-.23c.179-.179.268-.345.268-.498a1.162 1.162 0 00-.038-.344zm-24.588.554l-2.98 8.74a1.162 1.162 0 00-.038.342c0 .153.077.32.23.498.178.152.381.23.61.23h2.965c1.569-1.507 4.851-2.825 4.851-2.825l.082-.162c.441-.988 1.18-1.43 1.016-1.593-.168-.168-.22-1.156-.22-1.156-.192-.08-.332-.714-.332-.714-.162-.03-.574-.744-.574-.744-.25.058-1.923-.493-1.923-.493-1.431-.215-2.729-1.184-3.687-2.123z"
class="letter"
/>
<path
id="path32"
fill="#fff"
stroke-width=".894"
d="M198.315 72.98a.992.992 0 00-.727.307.992.992 0 00-.305.727V98.71c0 .28.101.522.305.726a.995.995 0 00.727.307h5.875c.381-.304.802-.538 1.215-.658.216-.066.395-.16.395-.207 0-.058.16-.33.348-.603l.31-.456v-.073l-.168-.16a1.601 1.601 0 00-.443-.282.69.69 0 01-.34-.368c-.056-.15-.16-.301-.225-.33-.076-.028-.207-.188-.292-.357a4.092 4.092 0 00-.462-.67c-.405-.47-.518-.932-.547-2.185-.019-.886.01-1.112.199-1.592.244-.632.688-1.244.97-1.33.104-.037.34-.31.536-.612.2-.317.48-.685.772-1.033v-.516l.212.27c.288-.325.574-.62.798-.803.527-.415 1.328-.83 1.837-.923.51-.104 1.159-.037 2.007.179.367.103.895.207 1.177.245.782.094 2.394 1.036 3.232 1.903.556.556.66 1.027.396 1.62-.141.321-.15.463-.066 1.055.085.623.075.718-.085.944-.095.14-.151.32-.122.395.028.085.009.15-.038.15-.057 0-.132.152-.17.33-.047.292-.009.396.321.83.509.669.556.857.282 1.12a3.113 3.113 0 01-.405.32c-.17.095-.17.133-.057.5.095.34.095.433-.028.622a.99.99 0 00-.152.452.625.625 0 01-.187.396c-.151.141-.188.273-.17.716.024.38-.003.53-.106.672.34.29.736.437 1.187.437h6.155c.28 0 .523-.101.727-.305a.994.994 0 00.306-.727V74.014a.992.992 0 00-.306-.727.994.994 0 00-.727-.306h-7.11a.992.992 0 00-.727.306.992.992 0 00-.306.727v11.24L206 73.745c-.382-.51-.879-.765-1.49-.765z"
class="letter"
/>
<path
id="path34"
fill="#fff"
stroke-width=".894"
d="M55.971 72.982a1.15 1.15 0 00-.187.017c1.23.39 2.334.956 2.963 1.6.836.849 1.397 1.637 1.529 2.103.06.239.107.967.095 1.6-.011 1.04-.047 1.183-.297 1.421-.383.359-.347.55.226 1.23.597.73 1.17 1.602 1.17 1.805 0 .155-.107.286-.645.74-.274.227-.298.322-.238.729.071.466.035.537-.478.895-.227.155-.227.179-.036.358.25.251.25.43.024.742-.096.119-.179.489-.179.824 0 1.182-.502 1.492-2.39 1.492-.727 0-1.432.06-1.564.12-.12.071-.358.382-.513.693a3.565 3.565 0 01-.512.759v3.511a4.378 4.378 0 01.333.746c.143.442.393 1.064.561 1.398.474.957.831 2.076 1.263 3.979h21.202c.28 0 .523-.102.727-.306a.995.995 0 00.306-.727v-5.772a.992.992 0 00-.306-.727.994.994 0 00-.727-.306H65.261V74.014a.992.992 0 00-.305-.727.992.992 0 00-.727-.305z"
class="letter"
/>
<path
id="path36"
d="M272.47 92.592h15.517q.428 0 .739.311t.311.74v5.483q0 .427-.311.738t-.739.311H263.41q-.428 0-.739-.31-.31-.312-.31-.74V74.004q0-.428.31-.739.311-.31.74-.31h24.188q.428 0 .74.31.31.311.31.74v5.482q0 .428-.31.74-.312.31-.74.31H272.47v2.45h12.99q.427 0 .738.312.311.31.311.738v5.056q0 .428-.31.739-.312.311-.74.311H272.47z"
class="letter"
style="
line-height: 1.25;
-inkscape-font-specification: 'Rubik Mono One';
"
/>
<path
id="path38"
d="M242.72 72.564c-5.833 0-9.994 1.685-12.483 5.056-1.322 1.815-1.983 4.032-1.983 6.65v4.589c0 2.618.66 4.835 1.983 6.65 1.322 1.789 3.032 3.085 5.132 3.889 2.126.777 4.474 1.166 7.04 1.166 2.567 0 4.797-.298 6.69-.894 1.892-.623 3.409-1.426 4.55-2.411 2.28-1.997 3.421-4.201 3.421-6.612a.735.735 0 00-.272-.583.735.735 0 00-.583-.272h-8.401c-.008 0-.015.004-.022.004-.246.568-.565 1.138-.766 1.321-.192.173-.364.574-.364.88 0 .44-.173.652-.862 1.092-1.206.766-2.335 1.034-3.962.957-1.149-.057-1.647-.21-2.7-.746-.957-.478-1.282-.746-1.282-1.053 0-.21-.173-.65-.403-.957-.957-1.417-1.283-2.49-1.225-4.06.02-.823.114-1.645.19-1.817.077-.21.003-.383-.266-.536-.344-.173-.402-.383-.402-1.301 0-1.8.861-2.816 1.378-1.629.134.288.25.556.268.594 0 .02.172-.02.344-.077.191-.077.633-.747.978-1.513.918-2.029 1.932-3.54 2.372-3.54.325 0 .365.133.327 1.243l-.039 1.244h1.686l-.078-1.187c-.038-.995 0-1.205.269-1.262.172-.038.516.21.784.573.25.345.86 1.436 1.358 2.431.19.387.4.77.601 1.134.143.204.28.423.4.67.122.192.26.426.339.52.305.37.662.56 1.077.56h8.402a.79.79 0 00.582-.234.858.858 0 00.272-.623c0-2.41-1.14-4.613-3.422-6.61-1.14-.985-2.657-1.776-4.55-2.372-1.892-.622-4.019-.934-6.378-.934z"
class="letter"
/>
<path
id="path4766"
class="line1"
d="M121.665 50.502v2.8h-.482v3.645q-.04 1.08-.313 1.485-.273.403-.8.788-.528.384-1.44.592-.885.065-1.438.072-.553.006-1.192.02v-2.8q.508.13 1.146 0 .508-.118.703-.274.196-.156.274-.742v-5.586z"
font-size="13.333"
font-stretch="normal"
font-style="normal"
font-variant="normal"
font-weight="400"
/>
<path
id="path4768"
d="M134.176 55.255q0 1.543-.644 2.63-.645 1.087-1.869 1.634-1.217.547-2.91.547-1.692 0-2.91-.547-1.21-.553-1.836-1.628-.625-1.08-.625-2.636 0-1.18.358-2.07.358-.9 1.048-1.511.69-.612 1.693-.925 1.003-.32 2.272-.32 1.686 0 2.91.56 1.224.555 1.87 1.642.643 1.08.643 2.624zm-7.454.026q0 .905.404 1.575.41.67 1.608.67.924 0 1.38-.35.462-.352.573-.802.117-.455.156-1.093-.039-.905-.436-1.576-.397-.677-1.673-.677-2.012 0-2.012 2.253z"
class="line1"
font-size="13.333"
font-stretch="normal"
font-style="normal"
font-variant="normal"
font-weight="400"
/>
<path
id="path4770"
fill="#ff0"
d="M136.142 50.502h3.06v9.4h-3.06z"
class="line1"
font-size="13.333"
font-stretch="normal"
font-style="normal"
font-variant="normal"
font-weight="400"
/>
<path
id="path4772"
fill="#ff0"
d="M141.19 59.859v-9.4h3.06l2.8 3.515v-3.516h3.06v9.4h-3.06l-2.8-3.514v3.515z"
class="line1"
font-size="13.333"
font-stretch="normal"
font-style="normal"
font-variant="normal"
font-weight="400"
/>
<path
id="path4774"
fill="#ff0"
d="M164.148 50.502v2.8h-2.982v6.6h-3.06v-6.6h-2.982v-2.8z"
class="line1"
font-size="13.333"
font-stretch="normal"
font-style="normal"
font-variant="normal"
font-weight="400"
/>
<path
id="path4776"
fill="#ff0"
d="M171.654 53.788v-3.242h3.06v9.401h-3.06v-3.385h-2.46v3.385h-3.06v-9.4h3.06v3.241z"
class="line1"
font-size="13.333"
font-stretch="normal"
font-style="normal"
font-variant="normal"
font-weight="400"
/>
<path
id="path4778"
fill="#ff0"
d="M177.2 59.947v-9.4h8.06v2.799h-5v1.08h3.229v1.64h-3.23v1.082h5.795v2.8z"
class="line1"
font-size="13.333"
font-stretch="normal"
font-style="normal"
font-variant="normal"
font-weight="400"
/>
</g>
<g
id="saber"
fill-opacity="1"
stroke-dasharray="none"
stroke-miterlimit="4"
stroke-opacity="1"
mask="url(#letters-mask)"
>
<g id="blade">
<path
id="blade-glow"
fill="#34e318"
d="M11.044 81.115l191.39-.715c4.088 2.284 4.088 7.994 0 11.42l-191.39.65z"
filter="url(#filter4964)"
opacity=".544"
transform="matrix(1.43469 0 0 1.01883 -12.166 -1.978)"
/>
<path
id="blade-beam"
fill="#0f0"
stroke-width="1.218"
d="M7.983 81.39l272.766-.638c5.826 2.038 5.826 7.132 0 10.188l-272.766.581z"
/>
</g>
<rect
id="rect4937"
width="35.955"
height="14"
x="-24.127"
y="79.485"
fill="#999"
stroke="none"
stroke-width="16.962"
opacity="1"
ry="2.9"
/>
</g>
<g
id="logo"
display="inline"
transform="matrix(.22047 0 0 .22047 116.746 119.079)"
>
<path
id="path5"
d="M7.42 145.99C9.185 99.193 32.899 56.035 76.25 27.52c.128.048 1.251-.361.738.61-3.434 3.184-65.172 76.114-8.344 133.68 0 0 29.858 28.704 53.011 1.468 0 0 22.847-29.577-.289-74.413 0 0-5.856-14.64-26.955-23.721l16.992-18.748s14.359 6.161 25.478 22.871c0 0 .593-17.593-12.884-36.34l26.345-29.89 26.08 29.609s-11.993 16.991-12.876 36.902c0 0 8.191-13.477 25.776-23.151l16.686 18.748s-16.045 5.287-26.794 23.529c-9.242 16.902-16.357 53.05.416 75.223 0 0 18.772 26.618 51.792-1.571 0 0 60.712-54.399-6.226-133.05 0 0-3.658-3.233.449-1.476 29.586 21.54 65.012 49.946 68.67 120.84-1.444 85.966-59.012 147.33-143.07 147.33-82.336 0-146.32-68.69-143.85-149.98"
/>
</g>
</svg>
<svg viewBox="0 0 79.374997 52.916668" id="xwing">
<path
id="path108"
d="m 73.49162,11.933 c -0.305242,0.68675 -0.381531,1.83135 -0.228931,2.59441 0.152491,1.06826 -1.068285,1.75501 -6.638594,3.43376 -8.317347,2.59439 -12.590475,2.8233 -13.887674,0.76304 -2.36548,-3.81529 -6.791219,-1.75503 -6.028162,2.89963 l 0.381529,2.6707 -1.373504,-2.36548 c -0.839364,-1.29719 -2.518092,-2.89962 -3.815293,-3.51007 -2.136561,-1.06828 -2.594397,-1.06828 -4.730961,0 -1.297199,0.61045 -2.975926,2.21288 -3.738985,3.51007 l -1.373506,2.28917 0.38153,-3.05222 c 0.534139,-4.04421 -0.991975,-5.41771 -4.273128,-3.66268 -1.297198,0.61044 -2.36548,1.52611 -2.36548,1.90764 0,1.44981 -6.485999,0.76306 -13.353524,-1.37351 C 5.8846331,15.9772 5.5794126,15.8246 5.8083228,13.84066 6.1898536,10.71211 3.5191549,11.39887 2.7560914,14.60369 c -0.4578205,1.83135 -0.4578205,1.90766 20.5262776,7.93582 6.257077,1.83135 8.62256,2.89963 8.851477,3.8916 0.228917,0.76306 0.152621,1.52611 -0.07631,1.67873 -0.305223,0.15249 -5.875549,1.90764 -12.361546,3.81529 -6.485989,1.98395 -12.9719823,3.9679 -14.269198,4.34942 -1.9839475,0.61045 -2.5180783,1.22092 -2.5180783,2.67071 0,1.06828 0.5341308,2.06026 1.220884,2.36549 1.526126,0.61045 2.74701,-1.29721 1.678726,-2.5944 C 5.274192,38.02959 5.3505032,37.64807 6.0372554,37.41916 12.82847,35.20627 20.764272,33.14601 22.595613,33.14601 c 1.526116,0 3.052234,0.68676 4.273126,1.90766 3.357457,3.35745 6.180772,1.75504 5.646633,-3.05222 -0.38153,-3.05224 0.228917,-3.43378 1.297199,-0.99198 1.602421,3.58636 11.827402,3.43376 11.827402,-0.15271 0,-0.83938 0.38153,-1.52612 0.76306,-1.52612 0.457835,0 0.610446,0.76305 0.305222,1.83134 -0.534139,2.36548 0.152622,4.73096 1.602424,5.34143 1.526116,0.53412 4.959878,-1.0683 4.959878,-2.36551 0,-1.60241 5.036188,-1.22088 13.124607,1.06829 7.325368,2.06025 7.401656,2.13656 6.943836,4.19682 -0.305222,1.52613 -0.07636,2.13657 0.610442,2.13657 1.678726,0 2.6707,-0.99197 2.74701,-2.82332 0.152702,-1.83134 0.610437,-1.67873 -20.907801,-8.01212 -7.325361,-2.13655 -8.622559,-2.74701 -8.622559,-4.04421 0,-1.75503 -1.068282,-1.29719 18.923851,-7.32534 C 76.08601,16.35865 76.925361,15.97711 76.467542,14.52732 76.23861,13.61163 75.551857,12.46707 74.941416,11.8566 74.102041,10.86463 73.873131,10.94094 73.4916,11.9329 Z"
/>
</svg>
/*
Source code: https://github.com/robole/artifice
*/
body {
background: black;
height: 100%;
background-image: url("https://raw.githubusercontent.com/robole/artifice/main/star-wars-join-the-alliance/img/bg.jpg");
background-size: contain;
overflow: hidden;
}
.starfield {
position: relative;
overflow: hidden;
width: 100%;
min-height: 98vh;
perspective: 200px;
}
svg {
position: absolute;
top: 0;
width: 100%;
height: 100%;
}
#xwing {
transform: scale(4) translateX(-110%);
fill: rgb(185, 185, 185);
animation: dart 1s forwards;
}
@keyframes dart {
to {
transform: scale(0) translateX(110%);
}
}
.line1 {
fill: rgb(255, 255, 255);
}
.letter {
fill: rgb(255, 255, 255);
}
#logo {
fill: white;
}
#blade {
transform: scaleX(0);
animation: extend 1.25s forwards;
transform-origin: 0% 100%;
animation-timing-function: cubic-bezier(0.2, -2, 0.8, 2);
animation-delay: 1.25s;
}
@keyframes extend {
to {
transform: scaleX(1);
}
}
#blade-glow {
opacity: 0.75;
animation: pulse 0.5s linear forwards infinite;
}
#blade-beam {
opacity: 1;
}
@keyframes pulse {
to {
opacity: 0.5;
}
}
/* star field */
.stars {
position: absolute;
top: 50%;
left: 50%;
width: 2px;
height: 2px;
box-shadow: -238px 108px #f7f7f7, 193px -376px #f7f7f7, -1264px -60px #fafafa,
145px -443px #c9c9c9, -1440px 37px #f7f7f7, 262px -136px #cfcfcf,
212px 219px #e3e3e3, 319px 223px #c7c7c7, 1246px -51px #c9c9c9,
308px 26px #e0e0e0, 147px 229px #e6e6e6, -1041px 450px #d1d1d1,
671px 86px white, -921px 234px #f0f0f0, -957px 242px #e8e8e8,
1249px -285px #d1d1d1, 741px 434px #d9d9d9, -1030px 330px #ededed,
311px -475px #fcfcfc, -413px -105px #d4d4d4, 868px -435px #f7f7f7,
-790px 289px #dbdbdb, 202px 427px #fcfcfc, -22px -158px #c9c9c9,
-1294px -297px #cccccc, -63px 200px #f0f0f0, -592px -86px #f7f7f7,
-732px 366px white, -1426px -262px #e8e8e8, 475px -400px #c9c9c9,
-1442px -153px #f7f7f7, 1124px -219px #ededed, 701px 257px #f0f0f0,
36px -179px #ebebeb, -937px 480px #f7f7f7, -267px -418px #f2f2f2,
1467px 127px #cfcfcf, -1128px 274px #d1d1d1, -180px 430px #e0e0e0,
624px 275px #fafafa, -473px 150px #e6e6e6, -537px -348px #d4d4d4,
410px 455px #ebebeb, 497px -29px #cccccc, 416px -370px whitesmoke,
977px 82px #c2c2c2, 1209px -222px #f0f0f0, 637px 360px #fcfcfc,
-1049px 409px white, 959px 407px #c9c9c9, -1153px -168px #dedede,
-437px -216px #dbdbdb, -572px 420px #fcfcfc, -228px 78px #dbdbdb,
-925px 452px #cccccc, 244px 30px #c4c4c4, 453px -336px #dedede,
993px -63px #c2c2c2, 670px -343px #d9d9d9, -1088px 344px #fcfcfc,
-170px -153px #c4c4c4, 987px -208px #d1d1d1, 596px 166px #fcfcfc,
-1362px -28px #c4c4c4, 1291px -106px #e3e3e3, -1128px 169px #ededed,
1056px 367px #ebebeb, 261px -128px #cccccc, 1017px 401px #cccccc,
1381px 245px #e3e3e3, 536px -113px #fafafa, -92px -217px #e3e3e3,
1481px 268px #d1d1d1, 832px -345px #cccccc, -863px 138px #f0f0f0,
-997px -412px #e3e3e3, -330px -260px #d9d9d9, 691px -39px #fcfcfc,
-468px -135px #d6d6d6, -535px 405px #e8e8e8, -1289px -284px #e3e3e3,
823px -225px #cccccc, -1172px -348px white, 505px -319px #ededed,
94px -45px #ededed, -687px -64px #c7c7c7, -1133px -456px #f2f2f2,
1357px 135px #e0e0e0, -919px -249px whitesmoke, 206px 32px white,
1453px -338px #cccccc, -764px 83px #e8e8e8, 726px 85px #fafafa,
205px 103px #e3e3e3, 85px 116px #d1d1d1, 1104px -121px #f0f0f0,
649px -304px #dbdbdb, -313px 313px whitesmoke, 491px -419px #c9c9c9,
-1405px 397px #cfcfcf, 30px -81px #e6e6e6;
animation: fly 3s linear infinite;
transform-style: preserve-3d;
}
.stars:before,
.stars:after {
content: "";
position: absolute;
width: inherit;
height: inherit;
box-shadow: inherit;
}
.stars:before {
transform: translateZ(-300px);
animation: fade1 3s linear infinite;
}
.stars:after {
transform: translateZ(-600px);
animation: fade2 3s linear infinite;
}
@keyframes fly {
from {
transform: translateZ(0px);
}
to {
transform: translateZ(300px);
}
}
@keyframes fade1 {
from {
opacity: 0.5;
}
to {
opacity: 1;
}
}
@keyframes fade2 {
from {
opacity: 0;
}
to {
opacity: 0.5;
}
}
// nope!
Also see: Tab Triggers