Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource


Add 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.


Auto Save

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <h1 class="fancy" id="name">Carlos del Cura Pascual</h1>


 body, html {
	 height: 100%;
	 margin: 0;
	 background: #f4f4f2;
 body {
	 display: flex;
	 justify-content: center;
	 align-items: center;
	 font-family: 'Oswald', sans-serif;
	 padding: 2em;
	 text-align: center;
 *, *::before, *::after {
	 box-sizing: border-box;
 h1 {
	 font-size: 1.5rem;
	 text-transform: uppercase;
	 letter-spacing: 1rem;
	 margin: 0;
 h1 span {
	 animation: fadeIn 3s alternate infinite;
	 opacity: 0;
 @keyframes fadeIn {
	 0% {
		 opacity: 0;
		 filter: blur(10px);
	 50%, 100% {
		 opacity: 1;
		 filter: blur(0px);


                //Cogemos la etiqueta del nombre
let fancyHeading = document.getElementsByClassName('fancy')[0];

//Metemos en UNA VARIABLÑ las letras de mi nombre + espacios en blanco
let letters = fancyHeading.textContent.split('');

let content =, i) => {
  //Delay de aparicion de las letras (random)
  let delay = Math.floor((Math.random() * 9000) + 1);
  let random_number = Math.floor(Math.random() * (4 - 0)) + 0;
  let array_colors = ["green", "red", "blue", "yellow" ];
  //Devolvemos el nombre con un animation-delay
  return ('<span style="animation-delay: '+ delay + 'ms; color: ' + array_colors[random_number] + ' ">'
          + val +

fancyHeading.innerHTML = "";

for (var i = 0; i < content.length; i++) {
  fancyHeading.innerHTML += content[i];