## Pen Settings

### CSS

#### Vendor Prefixing

Any URL's added here will be added as `<link>`s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

### JavaScript

#### JavaScript Preprocessor

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.

### Packages

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.

### Behavior

#### Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

#### Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

#### Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

## HTML

```              ```
<h2>Super Cool</h2>
<h1>Super 3D</h1>
<h2>SCSS Mixin</h2>

```
```
!

## CSS

```              ```
@function parseInt(\$n) {
@return \$n / (\$n * 0 + 1);
}

@function pow(\$number, \$exp) {
\$value: 1;
@if \$exp > 0 {
@for \$i from 1 through \$exp {
\$value: \$value * \$number;
}
}
@else if \$exp < 0 {
@for \$i from 1 through -\$exp {
\$value: \$value / \$number;
}
}
@return \$value;
}

@function fact(\$number) {
\$value: 1;
@if \$number > 0 {
@for \$i from 1 through \$number {
\$value: \$value * \$i;
}
}
@return \$value;
}

@function pi() {
@return 3.14159265359;
}

\$unit: unit(\$angle);
\$unitless: \$angle / (\$angle * 0 + 1);
// If the angle has 'deg' as unit, convert to radians.
@if \$unit == deg {
\$unitless: \$unitless / 180 * pi();
}
@return \$unitless;
}

@function sin(\$angle) {
\$sin: 0;
// Iterate a bunch of times.
@for \$i from 0 through 10 {
\$sin: \$sin + pow(-1, \$i) * pow(\$angle, (2 * \$i + 1)) / fact(2 * \$i + 1);
}
@return \$sin;
}

@function cos(\$angle) {
\$cos: 0;
// Iterate a bunch of times.
@for \$i from 0 through 10 {
\$cos: \$cos + pow(-1, \$i) * pow(\$angle, 2 * \$i) / fact(2 * \$i);
}
@return \$cos;
}

@function tan(\$angle) {
@return sin(\$angle) / cos(\$angle);
}

//*
// Create 3D text effect
//
//
// @param number \$angle The angle at which the 3D effect should be
//    rendered. 0deg being up, 180deg being down.
//
@function text-3d(
\$depth,
\$highlight,
\$angle,
\$tweak: 0,
) {
\$angle: (\$angle+90) % 360;
\$hd: 0;
\$sd: 0;
\$d: parseInt(\$depth) - 1;
\$u: unit(\$depth);
\$body: ();

@for \$i from 0 through \$d {
\$b: if(\$i > \$d/2, \$d - \$i, \$i);

// Build Highlight Body
\$thd: \$hd;
\$hd: cos(\$angle) + \$hd;
\$hb: if(\$b < \$tweak, abs(\$hd - \$thd)*\$b, abs(\$hd - \$thd)*\$tweak);
\$body: append(\$body, #{\$hd + \$u} #{\$sd + \$u} #{\$hb + \$u} \$highlight, comma);

\$tsd: \$sd;
\$sd: sin(\$angle) + \$sd;
\$sb: if(\$b < \$tweak, abs(\$sd - \$tsd)*\$b, abs(\$sd - \$tsd)*\$tweak);
\$body: append(\$body, #{\$thd + \$u} #{\$sd + \$u} #{\$sb + \$u} \$shadow, comma);
}

@return \$body;
}

@function extrude(
\$depth,
\$angle
) {
\$angle: (\$angle+90) % 360;
\$d: parseInt(\$depth) - 1;
\$u: unit(\$depth);
@return translatex(#{cos(\$angle)*\$d*-1+\$u}) translatey(#{sin(\$angle)*\$d*-1+\$u});
}

@mixin text-3d(
\$depth,
\$highlight,
\$angle,
\$tweak: 0
) {
\$depth,
\$highlight,
\$angle,
\$tweak
);
}

// #{cos(\$angle)*\$d+\$u} #{sin(\$angle)*\$d+\$u} \$depth hsla(0, 0%, 0%, 1)

h1, h2 {
margin: 0;
line-height: 1;
font-weight: 400;
}

h1 {
color: hsl(0, 100%, 55%);
font-size: 5em;
@include text-3d(45px, hsl(200, 100%, 15%), hsl(200, 100%, 45%), 125deg);
transform: extrude(45px, 125deg);
position: relative;
z-index: 1;
}

h2 {
color: hsl(60, 90%, 45%);
font-size: 2.5em;
@include text-3d(35px, hsl(0, 90%, 25%), hsl(0, 90%, 45%), 125deg);
transform: extrude(45px, 125deg);
}

h2:first-of-type {
position: relative;
z-index: 2;
}

body {
font-family: 'Bowlby One SC', sans-serif;
text-transform: uppercase;
background-color: #084a9c;
}

// Center using flexbox
:root{height:100%;display:flex}:root>*{margin:auto;text-align: center}

```
```
!

## JS

```              ```

```
```
!
999px
{"ft_lang_label":"__label__en","ft_lang_prob":0.7168622,"math_prob":0.88513,"size":6966,"snap":"2021-21-2021-25","text_gpt3_token_len":2048,"char_repetition_ratio":0.106291294,"word_repetition_ratio":0.19395466,"special_character_ratio":0.3227103,"punctuation_ratio":0.1847002,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96839625,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-05-15T18:03:30Z\",\"WARC-Record-ID\":\"<urn:uuid:2a7c5f04-4f35-4f0d-a7b2-964bc39bbc16>\",\"Content-Length\":\"107178\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:40db0555-9075-45b5-bcd2-6b8866e967c3>\",\"WARC-Concurrent-To\":\"<urn:uuid:f6307acd-b8f6-46da-8336-49ef318bd95f>\",\"WARC-IP-Address\":\"104.16.176.44\",\"WARC-Target-URI\":\"https://codepen.io/joeyhoer/pen/wcLDH\",\"WARC-Payload-Digest\":\"sha1:AB2QAGLD7NXWFUILK7FLRLRAKCKCZUM7\",\"WARC-Block-Digest\":\"sha1:2GOJHU6YJJMOBLEL6PPD6QD4R2HW6EIG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-21/CC-MAIN-2021-21_segments_1620243990551.51_warc_CC-MAIN-20210515161657-20210515191657-00259.warc.gz\"}"}