Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <a href="https://github.com/CKGrafico/radial.js" target="_blank"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://camo.githubusercontent.com/c6286ade715e9bea433b4705870de482a654f78a/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f6c6566745f77686974655f6666666666662e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_left_white_ffffff.png"></a>
<a href="https://twitter.com/CKGrafico" target="_blank"><img style="position: absolute; bottom: 10px; right: 10px; border: 0; height: 50px;" src="https://i.imgur.com/72DsMem.png" alt="CKGrafico on twitter"></a>
  
<div id="mobile">
  <div id="container">
    <h1>Lorem ipsum dolor</h1>
    <h2>Consectetur adipisicing</h2>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis hic harum nisi est in iusto unde modi ex ducimus accusamus numquam asperiores molestias. Soluta esse quas ut laudantium est neque.</p>
  <h2>Consectetur adipisicing</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis hic harum nisi est in iusto unde modi ex ducimus accusamus numquam asperiores molestias. Soluta esse quas ut laudantium est neque.</p>
  <h2>Consectetur adipisicing</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis hic harum nisi est in iusto unde modi ex ducimus accusamus numquam asperiores molestias. Soluta esse quas ut laudantium est neque.</p>
  <h2>Consectetur adipisicing</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis hic harum nisi est in iusto unde modi ex ducimus accusamus numquam asperiores molestias. Soluta esse quas ut laudantium est neque.</p>
  <h2>Consectetur adipisicing</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis hic harum nisi est in iusto unde modi ex ducimus accusamus numquam asperiores molestias. Soluta esse quas ut laudantium est neque.</p>
  <h2>Consectetur adipisicing</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis hic harum nisi est in iusto unde modi ex ducimus accusamus numquam asperiores molestias. Soluta esse quas ut laudantium est neque.</p>
  <h2>Consectetur adipisicing</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis hic harum nisi est in iusto unde modi ex ducimus accusamus numquam asperiores molestias. Soluta esse quas ut laudantium est neque.</p>
  <h2>Consectetur adipisicing</h2>
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Officiis hic harum nisi est in iusto unde modi ex ducimus accusamus numquam asperiores molestias. Soluta esse quas ut laudantium est neque.</p>
  </div>
  <div id="menu"> <div id="menu2"></div></div>
  <div id="example-fix"></div>
  <div id="message">You can test this page in your mobile ;)</div>
</div>
              
            
!

CSS

              
                *, *:before, *:after {  box-sizing: border-box; }


/* in real case you don't need some of this css but for this example it's necessary*/
html, body { height: 100%; }

body {
  background: linear-gradient(135deg, #e570e7 0%,#796add 47%,#70cdff 100%);
  width: 100%;
  height: 100%;
}
#mobile{ width: 360px; height: 768px; background: #fff; border-width: 100px 20px; border-color: #33322f; border-style: solid; border-radius: 30px; float: left; margin-left: 300px; margin-top: 20px; margin-bottom: 100px; }

#container {
  height: 568px;
  overflow-y: scroll;
  padding: 10px;
}
#menu {
  background: #383B3C;
  width: 100%;
  padding-left: 85px;
  margin-top: 0px;
  height: 1px;
  position: relative;
}
#menu2{
  position: absolute;
  top: -85px;
}

#menu2 .radial__item, #menu2 .radial__button {
  background: #383B3C;
  color: white;
  padding: 10px;
  border-radius: 50%;
}

#menu2 .radial__button {
  cursor: pointer;
}

#menu2 .radial__item {
  z-index: -1;
  margin-top: 100px;
  transform: scale(0);
  transition:  all 0.5s;
}

#menu2 .radial__item.show {
  z-index: 10;
  transform: scale(1);
   margin-top: 0px;
  transition:  all 0.5s;
}

#example-fix {
  width: 310px;
  height: 80px;
  background: #33322f;
  position: absolute;
  z-index: 10000;
}
#message {
  color: white;
  position: absolute;
  bottom: 20px;
  font-size: 1.1em;
}
/* Change all in mobile*/
@media screen and (max-width: 500px) {
  #mobile {
    width: 100%;
    height: 100%;
    margin: 0;
    left: 0;
    top: 0;
    border-radius: 0;
    border-width: 0;
    overflow: hidden;
  }
  #container{height: 100%;}
  #example-fix {display: none;}
  #menu {
    padding-left: 45%;
    margin-top: -20px;
  }
  #message{display: none;}
}
              
            
!

JS

              
                (function(){
   var items = [
     {className: 'glyphicon glyphicon-plus', index: 100},
     {className: 'glyphicon glyphicon-move', href:"#"},
    {className: 'glyphicon glyphicon-edit', href:"#"},
    {className: 'glyphicon glyphicon-check', href:"#"},
    {className: 'glyphicon glyphicon-share', href:"#"},
    {className: 'glyphicon glyphicon-cloud-download', href:"#"}
  ];
  
   $('#menu2').html('');
    var options = {
      button: true,
      container: {
        height: '100px',
        width: '110px'
      },
      deg: 180
    };
    radial = new Radial(items, options);
    $('#menu2').append(radial.render());
    
    // button
    var $button = $('#menu2 .radial__button');
      $button.on('click', function(){
        $('#menu2 .radial__item').toggleClass('show');
      });
  
  $('a').on('click', function(e){
       e.preventDefault();
      });
})();
              
            
!
999px

Console