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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <div class="container">
  <div class="layer"></div>
  <div class="col">
    <h2>Escaping Special Characters</h2>
    <textarea name="" id="input" placeholder="Your text..."></textarea>
    <div class="deco"></div>
  </div><div class="col">
    <p id="output">
      <!-- Output here! -->

<!-- Goolge Font -->
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:700,700i|Quicksand" rel="stylesheet">
              /* Global */
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;

body {
  padding: 60px 0;
  font-family: 'Quicksand', sans-serif;
  background: #ECEFF1;

/* Encoder */
.container {
  position: relative;
  width: 80%;
  max-width: 620px;
  margin: 0 auto;

.layer {
  position: absolute;
  width: 90%;
  height: 80%;
  bottom: -5%;
  left: -5%;
  background: #B9D655;
    0px 3px 6px 1px rgba(0, 0, 0, 0.03),
    6px 16px 24px 1px rgba(0, 0, 0, 0.04),
    16px 28px 46px 1px rgba(0, 0, 0, 0.04);

.col {
  display: inline-block;
  position: relative;
  width: 50%;
  padding: 10px;
  background: #FFFFFF;
  vertical-align: middle;
    0px 6px 12px 1px rgba(0, 0, 0, 0.08),
    12px 34px 46px 1px rgba(0, 0, 0, 0.12),
    34px 58px 90px 1px rgba(0, 0, 0, 0.12);

.col:nth-child(2) {
  border-bottom: 5px solid #D7CC84;

.col:nth-child(3) {
  background: #2D3A4B;

.col h2 {
  margin: 0;
  padding: 20px 10%;
  font-family: 'Playfair Display', serif;
  line-height: 1.28em;
  color: #D7CC84;
  font-weight: 700;
  font-style: italic;
  letter-spacing: .01em;
  text-align: center;

#output {
  width: 100%;
  padding: 10%;
  line-height: 1.4em;
  overflow-wrap: break-word; /* Force line break. */

#input {
  height: 245px;
  color: #788A94;
  border: none;
  outline: none;
  resize: none;

#output {
  height: 400px;
  margin: 0;
  color: #FFFFFF;
  overflow: auto;

/* Select color */
.col h2::selection,
#input::selection {
  background: rgba(255,255,255,.15);

.col h2::-moz-selection,
#output::-moz-selection {
  background: rgba(255,255,255,.15);

/* Scrollbar styling */
#output::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3) !important;
  border-radius: 10px !important;
  background-color: transparent !important;

#output::-webkit-scrollbar {
  width: 12px !important;
  background-color: transparent !important;

#output::-webkit-scrollbar-thumb {
  border-radius: 10px !important;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3) !important;
  background-color: #788A94 !important;

/* Breakpoint */
@media screen and (max-width: 600px){
  .col {
    display: block;
    width: 100%;

  .col:nth-child(2) {
    border-bottom: none;

Hi! Welcome to my little playground!

My name is Tobias Bogliolo. 'Open source' by default and always 'responsive',
I'm a publicist, visual designer and frontend developer based in Barcelona. 

Here you will find some of my personal experiments. Sometimes usefull,
sometimes simply for fun. You are free to use them for whatever you want 
but I would appreciate an attribution from my work. I hope you enjoy it.


$('#input').on('keyup change', function(){
  var input = $('#input').val(); //Get input.
  var inputEncode = encodeURIComponent(input); //Encode data.
  $('#output').text(inputEncode); //Output encode string.
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.