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.


                <div class="ClockContainer">
  <span id="Clock"></span>

<a class="Me" href="" target="_blank">Pen by Dey Jordan</a>


                body {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0; /* reset default margin on body */
  background-color: #111;
  font-family: 'Poppins', sans-serif;

.ClockContainer {
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 4rem;
  font-weight: 700;
  background: #8dffb9;
  background: linear-gradient(25deg, #8dffb9 0%, #8d55b9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

.Me {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #888;


                const clockElement = document.getElementById('Clock');

function clock() {
    If you whant set a date you can use :
    new Date(Date.UTC(2023, 03, 30, 23, 15, 0));
  const now = new Date();
  /* Here you can choice all date format rules */
  const formatDateOptions = {
    hour12: true, // set to false to use 24 hour format
    hour: "2-digit", // add 0 if hour has only one digit
    minute: "2-digit",
    second: "2-digit",
  /* And here you juste need to format your date with options */
  clockElement.innerHTML = now.toLocaleTimeString('en-GB', formatDateOptions);

/* Run clock function when loaded */
/* And run it every seconds */
setInterval(clock, 1000);

  Check documentation here :
  Follow me on Twitter :
  Or check my LinkedIn :