Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource

JavaScript

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

Packages

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.

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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML

              
                <!--This goes inside the <head> tag--> 

<link rel="alternate" hreflang="en" href="https://www.devanesa.xyz">
<link rel="alternate" hreflang="es" href="https://es.devanesa.xyz">
<link rel="alternate" hreflang="fr" href="https://fr.devanesa.xyz">
<!--This Loads the Light Theme Style--> 
<link rel="stylesheet" href="https://unpkg.com/tippy.js@4/themes/light.css"/>
<script type="text/javascript" src="https://cdn.weglot.com/weglot.min.js"></script>
<script>
    Weglot.initialize({
        api_key: 'wg_fbaa52e6f89968f21b349566f5cc89d17'
    });
</script>

<!--From this, Before </Body> tag--> 





 <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/fontsampler-js@0.0.15/dist/fontsampler.js"></script>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/fontsampler-js@0.0.15/dist/fontsampler-skin.js"></script>
    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fontsampler-js@0.0.15/dist/fontsampler-skin.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap" rel="stylesheet">
  
<script src="https://unpkg.com/popper.js@1"></script>
<script src="https://unpkg.com/tippy.js@4"></script>
<div id="tester"></div>
<style type="text/css">
/* Fontsampler provides classes for when a font is loading (e.g. to display 
a spinner or fade out the text tester while the font is loading) */
.fontsamplerjs.loading {…}

/* If you use the lazyload option you can use this class to change appearance
while some fonts are still loading in the background */
.fontsamplerjs.preloading {…}

/* The Fontsampler has initialized */
.fontsamplerjs.fontsampler-initiallized {…}

/* When Fontsampler groups items together as per the definitions (nested arrays)
in the options attribute, those wrappers will have this class */
.fsjs-wrapper {…}

/* Any UI element (controls, tester input) */
.fsjs-block {color: #ff520e; margin: auto; font-family: Poppins}

/* All UI elements have their key as class */
.fsjs-block-fontsize,
.fsjs-block-tester,
… {}

/* All UI types have a class, e.g. slider, dropdown, buttongroup, checkboxes, textarea */
.fsjs-block-type-buttongroup {…}

/* UI elements with labels have markup for the label and it’s content */
.fsjs-block-fontsize [data-fsjs-for=fontsize] {}
.fsjs-block-fontsize [data-fsjs-for=fontsize] .fsjs-label-text {font-size: 15px}
.fsjs-block-fontsize [data-fsjs-for=fontsize] .fsjs-label-value {font-size: 15px}
.fsjs-block-fontsize [data-fsjs-for=fontsize] .fsjs-label-unit {font-size: 15px}
</style>

<script>
var options = {
    lazyload: true,

    // This sets the UI element’s order and groupings
    order: ["tester", ["fontsize", "lineheight", "fontfamily"]],
	  initialText: "Anything and everything goes here",
    // This defines UI element options that differ from the defaults
    ui: {
        fontsize: {
            init: 120,
            step: 1,
            max: 190,
            unit: "px",
        },
        lineheight: {
            min: 60,
            step: 1,
            max: 120,
        },
        // Instead of defining the specifics of a ui element,
        // simply setting in to true will make it
        // get rendered in the UI with defaults
        fontfamily: true,
    }
    
}


var fonts = [
    { 
        name: "Devanesa-Light",
       
        files: [
            "https://cdn.jsdelivr.net/npm/devanesa@1.0.18/Devanesa-Light.woff",
            
            
            
        ]
        
    },
    { 
        name: "Devanesa-Regular",
       
        files: [
            "https://cdn.jsdelivr.net/npm/devanesa@1.0.18/Devanesa-Regular.woff",
            
            
            
        ]
        
    },
    { 
        name: "Devanesa-Medium",
       
        files: [
            "https://cdn.jsdelivr.net/npm/devanesa@1.0.18/Devanesa-Medium.woff",
           
            
            
        ]
        
    },
    { 
        name: "Devanesa-Semibold",
       
        files: [
            "https://cdn.jsdelivr.net/npm/devanesa@1.0.18/Devanesa-Semibold.woff",
            
            
            
        ]
        
    },
    { 
        name: "Devanesa-Bold",
       
        files: [
            "https://cdn.jsdelivr.net/npm/devanesa@1.0.18/Devanesa-Bold.woff",
            
            
        ]
        
    },
]
 var fs = new Fontsampler(document.getElementById("tester"), fonts, options)
// Initiate the skin by passing the Fontsampler instance to it
FontsamplerSkin(fs)

// Only then init the Fontsampler
fs.init()
</script>

<!--Tippy JS Settings--> 
<script>
tippy('.tippy', {             // Use class or id
  animation: 'scale',         // See docs for more options (there are a few nice ones 😉)
  duration: 200,              // Duration for ToolTip Animation
  arrow: true,                // Add ToolTip Arrow
  delay: [0, 50],             // First # = delay in, second # = delay out
  arrowType: 'sharp',         // Sharp or 'round' or remove for none
  theme: 'light',             // Dark is the default
  maxWidth: 220,              // Max width in pixels for the tooltip
})
</script>

              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console