123

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.

            
              <html>

<head>
  <meta charset="UTF-8">

  <title>RadialMenü</title>

  <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'>
  <link rel="stylesheet" href="css/style.css">
  <link rel="stylesheet" href="/resources/demos/style.css">


</head>

<body>
  <div id="draggable" class="ui-widget-content">
    <div class="menu">
      <div class="btn trigger">
        <i class="fa fa-cog"></i>
      </div>
      <div class="icons">
        <div class="rotater">
          <div class="btn btn-icon tooltipleft">
            <span class="tooltiplefttext">Hello there!</span>
            <i class="fa fa-instagram"></i>
          </div>
        </div>
        <div class="rotater">
          <div class="btn btn-icon tooltipright">
            <span class="tooltiprighttext">Closer!</span>
            <a class="increase" href="#">
              <i class="fa fa-plus"></i>
            </a>
          </div>
        </div>
        <div class="rotater">
          <div class="btn btn-icon tooltipright">
            <span class="tooltiprighttext">Further!</span>
            <a class="decrease" href="#">
              <i class="fa fa-minus"></i>
            </a>
          </div>
        </div>
        <div class="rotater">
          <div class="btn btn-icon tooltipright">
            <span class="tooltiprighttext">I am a cloud.</span>
            <i class="fa fa-cloud"></i>
          </div>
        </div>
        <div class="rotater">
          <div class="btn btn-icon tooltipleft">
            <span class="tooltiplefttext">I like blue!</span>
            <div id="themechange1">
              <i class="fa fa-paint-brush" style="color:rgba(10, 124, 169, 1)"></i>
            </div>
          </div>
        </div>
        <div class="rotater">
          <div class="btn btn-icon tooltipleft">
            <span class="tooltiplefttext">I don't!</span>
            <div id="themechange2">
              <i class="fa fa-paint-brush" style="color:rgba(156, 156, 156, 1)"></i>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  <script src="js/index.js"></script>
  <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
</body>

</html>

<!-- I used a Menu you can also find on codepen as basis for mine -->
<!--
Copyright (c) 2017 by Nikolay Talanov (http://codepen.io/suez/pen/vAais)


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-->
            
          
!
            
              *, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  overflow: hidden;
}
body {
  background-color: rgba(156, 156, 156, 1);
}
/*DRAGGABLE DIV ENVIRONING THE MENU*/
#draggable {
  width: 200px;
  height: 200px;
  padding: 0.5em;
  cursor: pointer;
}

/*centering of the menu*/
.absolute-center, .menu, .menu .btn .fa {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}
/*width and height*/
.menu {
  width: 5em;
  height: 5em;
}

/* ALL BUTTONS / CIRCLES IN THE MENU*/
.menu .btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  z-index: -10;
  cursor: pointer;
  /*Animation*/
  -webkit-transition: opacity 1s, z-index 0.3s, -webkit-transform 1s;
  transition: opacity 1s, z-index 0.3s, -webkit-transform 1s;
  transition: opacity 1s, z-index 0.3s, transform 1s;
  transition: opacity 1s, z-index 0.3s, transform 1s, -webkit-transform 1s;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}
/*Icons*/
.menu .btn .fa {
  font-size: 3em;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
/*Hovering over Buttons / Circles with .fa*/
.menu .btn:hover .fa {
  color: rgba(255, 255, 255, 0.7);
}
/*button / Circle environing the js-trigger*/
.menu .btn.trigger {
  opacity: 1;
  z-index: 100;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.3s;
  transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  transition: transform 0.3s, -webkit-transform 0.3s;
}
/*scale on hover effect of button / Circle environing the js-trigger*/
.menu .btn.trigger:hover {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
/*rotated divs enabliing the animation effect */
.menu .rotater {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.menu.active .btn-icon {
  opacity: 1;
  z-index: 50;
}

/*CIRCLES WITH ICONS - POSITION (DISTANCE AND ROTATION)*/

/*Circle instagram*/
.rotater:nth-child(1) {
  -webkit-transform: rotate(-35deg);
  transform: rotate(-35deg);
}
.menu.active .rotater:nth-child(1) .btn-icon {
  -webkit-transform: translateY(-7.5em) rotate(35deg);
  transform: translateY(-7.5em) rotate(35deg);
}

/*Circle plus*/
.rotater:nth-child(2) {
  -webkit-transform: rotate(35deg);
  transform: rotate(35deg);
}
.menu.active .rotater:nth-child(2) .btn-icon {
  -webkit-transform: translateY(-7.5em) rotate(-35deg);
  transform: translateY(-7.5em) rotate(-35deg);
}

/*Circle minuse*/
.rotater:nth-child(3) {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}
.menu.active .rotater:nth-child(3) .btn-icon {
  -webkit-transform: translateY(-7.5em) rotate(-90deg);
  transform: translateY(-7.5em) rotate(-90deg);
}
/*Circle cloud*/
.rotater:nth-child(4) {
  -webkit-transform: rotate(145deg);
  transform: rotate(145deg);
}
.menu.active .rotater:nth-child(4) .btn-icon {
  -webkit-transform: translateY(-7.5em) rotate(-145deg);
  transform: translateY(-7.5em) rotate(-145deg);
}
/*Circle brush-blue*/
.rotater:nth-child(5) {
  -webkit-transform: rotate(215deg);
  transform: rotate(215deg);
}
.menu.active .rotater:nth-child(5) .btn-icon {
  -webkit-transform: translateY(-7.5em) rotate(-215deg);
  transform: translateY(-7.5em) rotate(-215deg);
}
/*Circle brush-grey*/
.rotater:nth-child(6) {
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
}
.menu.active .rotater:nth-child(6) .btn-icon {
  -webkit-transform: translateY(-7.5em) rotate(90deg);
  transform: translateY(-7.5em) rotate(90deg);
}

.menu.active .rotater:nth-child(2) .btn-icon:hover,
.menu.active .rotater:nth-child(3) .btn-icon:hover,
.menu.active .rotater:nth-child(4) .btn-icon:hover,
.menu.active .rotater:nth-child(5) .btn-icon:hover,
.menu.active .rotater:nth-child(6) .btn-icon:hover {
  color: rgba(255, 255, 255, 0.7);
}

/*DIVS FOR COLORCHANGE AND HOVER EFFECTS*/
#themechange1, #themechange2 {
  height: 100%;
  width: 100%;
}
.fa-paint-brush:hover:before, .fa-plus:hover:before, .fa-minus:hover:before {
  color: rgba(255, 255, 255, 0.7);
}
.fa-plus:before, .fa-minus:before {
  color: rgba(0, 0, 0, 1);
}

/*TOOLTIPS*/

/*left and right sided*/
.tooltipleft, .tooltipright {
  position: relative;
  display: inline-block;
}

/*right sided*/
.tooltipleft .tooltiplefttext {
  padding: 5px 10px;
  background: rgba(90, 87, 87, 1);
  border-radius: 13px;
  min-width: 70px;
  position: absolute;
  top: 20px;
  left: -109px;
  color: rgba(255, 255, 255, 1);
  text-align: center;
  opacity: 0;
  -moz-transition: opacity 1s ease;
  -webkit-transition: opacity 1s ease;
  -o-transition: opacity 1s ease;
  transition: opacity 1s ease;
}
.tooltipleft .tooltiplefttext:before {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid rgba(90, 87, 87, 1);
  display: block;
  content: " ";
  position: absolute;
  top: 10px;
  left: 99%;
}
/* Tooltip arrow */
.tooltipleft .tooltiplefttext:after {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid rgba(90, 87, 87, 1);
  display: block;
  content: " ";
  position: absolute;
  top: 10px;
  left: 99%;
}
/* mouse over */
.tooltipleft:hover .tooltiplefttext {
  visibility: visible;
  opacity: 1;
}

/*right sided*/
/* Tooltip text */
.tooltipright .tooltiprighttext {
  padding: 5px 10px;
  background: rgba(90, 87, 87, 1);
  border-radius: 13px;
  min-width: 70px;
  position: absolute;
  top: 20px;
  left: 90px;
  color: rgba(255, 255, 255, 1);
  text-align: center;
  opacity: 0;
  -moz-transition: opacity 1s ease;
  -webkit-transition: opacity 1s ease;
  -o-transition: opacity 1s ease;
  transition: opacity 1s ease;
}
.tooltipright .tooltiprighttext:before {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid rgba(90, 87, 87, 1);
  display: block;
  content: " ";
  position: absolute;
  top: 9px;
  left: -6%;
}
/* Tooltip arrow */
.tooltipright .tooltiprighttext:after {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid rgba(90, 87, 87, 1);
  display: block;
  content: " ";
  position: absolute;
  top: 9px;
  left: -6%;
}
/* mouse over */
.tooltipright:hover .tooltiprighttext {
  visibility: visible;
  opacity: 1;
}

            
          
!
            
              /*tRIGGER ACTIVATING THE MENU ENABLING THE :BEFORE :AFTER EFFECTS*/
$(document).ready(function() {
  $(".trigger").click(function() {
    $(".menu").toggleClass("active");
  });
});

/*JS TO INCREASE AND DECREASE FONT SIZE :ONCLICK*/
$(document).ready(function() {
  var fontSize = parseInt($("body").css("font-size"), 10);
  $(".increase").on("click", function() {
    fontSize += 1;
    $("body").css("font-size", fontSize + "px");
  });
  $(".decrease").on("click", function() {
    fontSize -= 1;
    $("body").css("font-size", fontSize + "px");
  });
});

/*COLOR CHANGE*/
document.getElementById("themechange1").onclick = backgroundColor;
function backgroundColor() {
  document.getElementsByTagName("body")[0].style.backgroundColor =
    "rgba(10, 124, 169, 1)";
}
document.getElementById("themechange2").onclick = backgroundColor2;
function backgroundColor2() {
  document.getElementsByTagName("body")[0].style.backgroundColor =
    "rgba(156, 156, 156, 1)";
}

/*COLORCHANGE EFFECTS*/
$(function() {
  $("#draggable").draggable();
});

            
          
!
999px
🕑 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.

Console