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.


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.


      <div class="key"><span>DS Nick Bailey</span></div>
      <div class="value"><span>Rafe Spall</span></div>
      <div class="key"><span>Sarah Bailey</span></div>
      <div class="value"><span>Annabel Scholey</span></div>
      <div class="key"><span>Tracy Daszkiewicz</span></div>
      <div class="value"><span>Anne-Marie Duff</span></div>
      <div class="key"><span>Tody Daszkiewicz</span></div>
      <div class="value"><span>Judah Cousin</span></div>
      <div class="key"><span>Dawn Sturgess</span></div>
      <div class="value"><span>Myanna Buring</span></div>
      <div class="key"><span>Charlie Rowley</span></div>
      <div class="value"><span>Johnny Harris</span></div>
      <div class="key"><span>DCC Paul Mills</span></div>
      <div class="value"><span>Nigel Lindsay</span></div>
      <div class="key"><span>Caroline Sturgess</span></div>
      <div class="value"><span>Stella Gonet</span></div>
      <div class="key"><span>Gracie Sturgess</span></div>
      <div class="value"><span>Sophia Ally</span></div>
  <button id="randomise">Randomise</button>



                @import url('');

:root {
  --random: 0;  

body {
  background: black;
  color: white;
  font-family: 'Open Sans', sans-serif;

ul {
  list-style: none;
  margin: 0;
  padding: 0;

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

li {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 25px;
  margin: 15px;

.key {
  text-align: right;

.value > span {
  position: relative;
  color: black;
  text-transform: uppercase;
  font-size: 0.9em;

.value > span::before {
  content: '';
  background: white;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  transform: scale(1.15) translate(calc(var(--random) * 4px), calc(var(--random) * 2px)) rotateZ(calc(var(--random) * 2deg));

button#randomise {
  background: white;
  border: none;
  font-size: 1.1em;
  transform: rotateZ(calc(var(--random) * 4deg));
  margin: 20px



                function randomise() {
    .forEach(el => {
          Math.random() * 2 - 1

  .addEventListener('click', randomise);