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


                    <div id='wrapper'ng-app='shapeCreator' ng-controller="shapeCreatorCtrl">
        <div id='legend'>
          <div class='legend-top'>Irregolar Shape Creator</div>
          <div class='legend-bottom'>Customize Border Radius and Size</div>
      <div id='side'>
        <div id='toolbar'>
          <div ng-repeat='r in radius' class='input-block'>
            <input type="range"  ng-model='r.val' min="0" max="100">
            <input type='number' ng-model='r.val' min="0" max="100"/>
          <div class='input-block'>
            <input type="range"  ng-model='w' min="0" max="100">
            <input type='number' ng-model='w'/>
          <div class='input-block'>
            <input type="range"  ng-model='h' min="0" max="100">
            <input type='number' ng-model='h'/><br>
        <div id='css'>
          <h3>Copy and paste in your css</h3>
border-radius: {{radius.r1.val}}% {{radius.r2.val}}% {{radius.r3.val}}% {{radius.r4.val}}% / {{radius.r5.val}}% {{radius.r6.val}}% {{radius.r7.val}}% {{radius.r8.val}}%;
height: {{h}}vh;
      <div id='main'>
        <div id='demo'
            style='border-radius: {{radius.r1.val}}% {{radius.r2.val}}% {{radius.r3.val}}% {{radius.r4.val}}% / {{radius.r5.val}}% {{radius.r6.val}}% {{radius.r7.val}}% {{radius.r8.val}}%; height: {{h}}vh; width:{{w}}vh'>



                body{margin: 0;font-family: sans-serif;  background-color: #6F7494}
header{clear: both; overflow: hidden;}
#legend{font-size: 3.2vh; font-family: 'Raleway', cursive;  float: left; color: white;}
.legend-top{font-weight: 800; border-bottom: solid 1px #fff; padding-bottom: 0.7vh; margin-bottom: 0.7vh;}
.legend-bottom{font-weight: 300; clear: both;}

#wrapper{display: flex;  padding: 2vh 5vh;flex-flow: row wrap;}
#wrapper > * {flex: 1 100%;}
#main { flex: 3 0px; text-align: center;  order: 2;}
#side{ flex: 1; order: 1; }

#toolbar{ padding: 2vh; box-shadow: #000 0 0 1vh; background-color:#fff; margin-top: 3vh;}
#toolbar h3{margin:1vh 0;font-weight: 800; font-family: 'Raleway';}
#toolbar .input-block{display: flex;  flex-direction: row; }
#toolbar .input-block label{width: 20vh;}
#toolbar .input-block input[type=range]{width:10vh; margin: 1vh; color: #000;}
#toolbar .input-block input[type=number]{width:5vh; margin: 1vh;}

#css{box-shadow: #000 0 0 1vh; padding: 2vh 1vh 0 1vh ;background-color:#fff; margin-top: 3vh;}
#css h3{margin:0;font-weight: 800; font-family: 'Raleway';}
pre{margin: 0;}
#demo{border: solid 3vh #fff;  box-shadow: #000 0 0 15px; background-color:#fff;
  background: radial-gradient(ellipse at center, #e6d75c 1%,#d8c100 100%); display: inline-block; }


                angular.module('shapeCreator', []).controller('shapeCreatorCtrl', function($scope){
  $scope.radius = {
    r1: {label: 'top-left-1', val: 43},
    r2: {label: 'top-right-1', val: 55},
    r3: {label: 'bottom-left-1', val: 52},
    r4: {label: 'bottom-right-1', val: 50},
    r5: {label: 'top-left-2', val: 55},
    r6: {label: 'top-right-2', val: 50},
    r7: {label: 'bottom-left-2', val: 49},
    r8: {label: 'bottom-right-2', val: 47},


  $scope.w = 30;
  $scope.h = 20;

}).directive('input', function() {
  return {
    restrict: 'E',
    require: '?ngModel',
    link: function(scope, element, attrs, ngModel) {
        if ('type' in attrs && attrs.type.toLowerCase() === 'range') {