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.


                <div class="wrap">
<div class="button">
  <span>Learn more</span>
<svg width="162px" height="82px" viewBox="0 0 162 82" version="1.1" xmlns="" xmlns:xlink="">
    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <polygon id="Path" fill="#06324e" fill-rule="nonzero" points="0.1328125 0.41015625 172.542969 0.41015625 172.542969 58.3632813 0.1328125 58.3632813"></polygon>


                .wrap { 
padding: 50px;
.button {
   width: 164px;
   height: 60px;
   position: relative;
   cursor: pointer;
  span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-size: 17px;
    color: #fff;


                let anim = anime({
  targets: '#Path',
  points: [
    { value: '0.1328125 0.41015625 162.542969 0.41015625 170.429687 66.4570312 5.1328125 60.3632812' },
  easing: 'easeInOutQuad',
  duration: 500,
  // loop: true,
  autoplay: false

let backwards = false;

let button = document.querySelector('.button');
button.addEventListener('mouseenter', function() {
  if (backwards) {
    backwards = false;

button.addEventListener('mouseleave', function() {
  if (!backwards) {
    backwards = true;