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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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.


                button.btn type="button"
	span.btn_text click me
	| Made with
	| <svg xmlns="" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0H24V24H0z"/><path fill="#7f71fe" d="M16.5 3C19.538 3 22 5.5 22 9c0 7-7.5 11-10 12.5C9.5 20 2 16 2 9c0-3.5 2.5-6 5.5-6C9.36 3 11 4 12 5c1-1 2.64-2 4.5-2z"/></svg>
	| by 
	a href="" target="_blank"  Anna Batura


                @import url(';600;700&display=swap')

  --mouse-x: -50px
  --mouse-y: -50px
  --mouse-btn-x: -50px
  --mouse-btn-y: -50px

  height: 100%

  font-family: sans-serif
  font-size: 14px
  height: 100%
  margin: 0
  display: flex
  align-items: center
  justify-content: center
  overflow: hidden
  font-family: 'Comfortaa', cursive
  background-color: #e5eaf0
  font-weight: 400

  position: absolute
  left: -20vw
  right: -20vw
  bottom: 0
  width: 140vw

  color: #7f71fe
  text-decoration: none
  font-weight: 700

  appearance: none
  outline: 0
  position: relative
  overflow: hidden
  display: inline-block
  text-align: center
  text-decoration: none
  vertical-align: middle
  cursor: pointer
  -webkit-user-select: none
  -moz-user-select: none
  user-select: none
  border: none
  letter-spacing: 3px
  line-height: 80px
  height: 80px
  width: 300px
  padding: 0 30px
  font-size: 32px
  font-weight: 600
  color: #fff
  background-color: #7f71fe
  border-radius: 5px
  transition: all 0.3s ease-in
    pointer-events: none
    position: relative
    z-index: 2
    background-color: #0074e8

  position: fixed
  bottom: 10px
  left: 0
  right: 0
  text-align: center
  font-size: 18px
    position: relative
    top: 5px
    margin: 0 4px

  pointer-events: none
  position: absolute
  top: 0
  left: 0
  margin-top: -10px
  margin-left: -10px
  border-radius: 50%
  left: var(--mouse-x)
  top: var(--mouse-y)
  height: 20px
  width: 20px
  background: rgba(255, 255, 255, 0.3)
  transform: scale(1.5)
  transition: all 0.1s ease-out
  z-index: 1
    transform: scale(0.8)

  pointer-events: none
  height: 30px
  width: 30px
  position: absolute
  left: var(--mouse-btn-x)
  top: var(--mouse-btn-y)
    position: absolute
    width: 70px
    height: 70px
    top: -40px
    left: -40px
    opacity: 0.7
      stroke: #1A1D2C
      stroke: #A0C3F1
      stroke: #bdd5ff
      stroke-width: 3
      stroke-linecap: round
      stroke-dashoffset: 25%
      stroke-dasharray: 100%
      animation: svg2 1s linear forwards
      stroke-width: 5
      opacity: 0.5

@keyframes svg2 
    stroke-dashoffset: 100%
    stroke-dashoffset: 0
    stroke-dashoffset: -100%



let root = document.documentElement;
let mover = document.querySelector(".mover");
let link = document.querySelector(".btn");

root.addEventListener("mousemove", (e) => {"--mouse-x", e.clientX + "px");"--mouse-y", e.clientY + "px");

link.addEventListener("click", function (event) {
	let svg = `<svg class="svg-2" viewBox="0 0 55 55" fill="none" xmlns="">
<path d="M27.5 18.5V1.5" stroke-linejoin="bevel"/>
<path d="M18.5 26.5L1.5 26.5" stroke-linejoin="bevel"/>
<path d="M27.5 36.5V53.5" stroke-linejoin="bevel"/>
<path d="M36.5 26.5L53.5 26.5" stroke-linejoin="bevel"/>
<path class="svg_obj" d="M21.8787 22L12.6863 12.8076" stroke-linejoin="bevel"/>
<path class="svg_obj" d="M33 21.8789L42.1924 12.6865" stroke-linejoin="bevel"/>
<path class="svg_obj" d="M21 33.1211L11.8076 42.3135" stroke-linejoin="bevel"/>
<path class="svg_obj" d="M33.1213 33L42.3137 42.1924" stroke-linejoin="bevel"/>

	let x = event.offsetX == undefined ? event.layerX : event.offsetX,
		y = event.offsetY == undefined ? event.layerY : event.offsetY;

	let span = document.createElement("span");
	span.className = "mouse";
	span.innerHTML = svg;
	s =; = y + "px";
	s.left = x + "px";
	var angle = Math.floor(Math.random() * 25) + "deg";
	s.transform = "rotate(" + angle + ")";

	setTimeout(function () {
	}, 1400);

	setTimeout(function () {
	}, 250);