Pen Settings



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


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.


                <p id='my_snack'>Flapjacks on a <a aria-labelledby="my_snack" href="#">sunny warm</a> afternoon.</p>


                :root {
  --mainColor: #ff9800;
  --secondColor: #fff;
  --transparent: rgba(0,0,0,0);
  --hoverColor: yellow;

body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  height: 100vh;

a {text-decoration: none;
  position: relative;
  -webkit-transition: all .3s;
  transition: all .3s;

  ((-webkit-text-stroke-color: var(--mainColor))
  (-webkit-text-fill-color: var(--secondColor)))
  ((-moz-text-stroke-color: var(--mainColor))
  (-moz-text-fill-color: var(--secondColor))) {
  a {
    -moz-text-fill-color: var(--secondColor);
    -webkit-text-fill-color: var(--secondColor);    
    -webkit-text-stroke: 2px var(--mainColor);
    -moz-text-stroke: 2px var(--mainColor);
   a:hover {
    -moz-text-fill-color: var(--transparent);
    -webkit-text-fill-color: var(--transparent);    
    -webkit-text-stroke: var(--transparent);
    -moz-text-stroke: var(--transparent);

a::before {
  --size: 0;  
  content: '';
  background: radial-gradient(
      circle closest-side,
      var(--secondColor), transparent
  left: var(--long);
  position: absolute;
  top: var(--lat);
  transform: translate(-50%, -50%);
  height: 150px;
  width: 150px;

a:hover::before {
  --size: 200px;
  background: radial-gradient(
      circle closest-side,
      var(--hoverColor), transparent

a:hover {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg id='decorative-text-link' role='link' xmlns='' xmlns:xlink='' xmlns:ev='' viewBox='0 0 180 180'%3E %3Cdefs%3E %3Cstyle type='text/css'%3E.rotated{animation: spin 1.8s linear infinite;}@keyframes spin{to{transform: rotate(360deg);}}%3C/style%3E %3Cpath id='rotated_link_text' style='stroke:none;' fill='none' d='M100,100 m-75,0 a75,75 0 1,0 150,0 a75,75 0 1,0 -150,0'/%3E %3C/defs%3E %3Cg style='font-family:Lato; font-size:2.5rem;'%3E %3Cuse xlink:href='%23rotated_link_text'/%3E %3Ctext fill='orange' letter-spacing='10' class='rotated' transform-origin='center'%3E %3CtextPath xlink:href='%23rotated_link_text'%3ESun Sun Sun Sun%3C/textPath%3E %3C/text%3E %3C/g%3E %3C/svg%3E");
  background-position: 50% 100%;
  background-size: auto auto;
  background-repeat: no-repeat;
  text-decoration: none;


                // Contribution to Geoff Graham Link Effectz Collection :

document.querySelector('a').onmousemove = function (e) {
  var long = e.pageX -;
  var lat = e.pageY -;'--long', long + 'px');'--lat', lat + 'px');