"box shadow builder"
Bootstrap 3.0.0 Snippet by evarevirus

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html><html lang='en' class=''> <head><script src='//production-assets.codepen.io/assets/editor/live/console_runner-079c09a0e3b9ff743e39ee2d5637b9216b3545af0de366d4b9aad9dc87e26bfd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/events_runner-73716630c22bbc8cff4bd0f07b135f00a0bdc5d14629260c3ec49e5606f98fdd.js'></script><script src='//production-assets.codepen.io/assets/editor/live/css_live_reload_init-2c0dc5167d60a5af3ee189d570b1835129687ea2a61bee3513dee3a50c115a77.js'></script><meta charset='UTF-8'><meta name="robots" content="noindex"><link rel="shortcut icon" type="image/x-icon" href="//production-assets.codepen.io/assets/favicon/favicon-8ea04875e70c4b0bb41da869e81236e54394d63638a1ef12fa558a4a835f1164.ico" /><link rel="mask-icon" type="" href="//production-assets.codepen.io/assets/favicon/logo-pin-f2d2b6d2c61838f7e76325261b7195c27224080bc099486ddd6dccb469b8e8e6.svg" color="#111" /><link rel="canonical" href="https://codepen.io/cmegown/pen/vmgOmq?depth=everything&order=popularity&page=49&q=Builder&show_forks=false" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'> <style class="cp-pen-styles">html { box-sizing: border-box; height: 100%; } *, *:before, *:after { box-sizing: inherit; } body { height: 100%; } img { max-width: 100%; } :root { --offset-x: 8px; --offset-y: 8px; --blur: 0; --spread: 0; --red: 255; --green: 99; --blue: 71; --alpha: 1; } .controls { margin: 0; padding: 0; list-style: none; padding: 1em; } .controls:after { content: ''; display: table; clear: both; } .controls li { float: left; width: 33.33333%; } .controls li:not(:last-child) { padding-right: 1em; } .controls li span { display: inline-block; margin-bottom: 0.25em; } .controls li input { width: 100%; margin-bottom: 1em; } .specimen { position: fixed; top: 50%; left: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); width: 4em; height: 4em; border: 0.25em solid; box-shadow: var(--offset-x) var(--offset-y) var(--blur) var(--spread) rgba(calc(1 * var(--red)), calc(1 * var(--green)), calc(1 * var(--blue)), calc(1 * var(--alpha))); } </style></head><body> <ul class='controls'> <li> <label> <span>Offset X</span> <input max='32' min='-32' name='offset-x' type='range' value='8'> </label> <label> <span>Offset Y</span> <input max='32' min='-32' name='offset-y' type='range' value='8'> </label> </li> <li> <label> <span>Blur</span> </label> <input max='32' min='0' name='blur' type='range' value='0'> <label> <span>Spread</span> </label> <input max='32' min='0' name='spread' type='range' value='0'> </li> <li> <label> <span>Red</span> </label> <input max='255' min='0' name='red' type='range' value='255'> <label> <span>Green</span> </label> <input max='255' min='0' name='green' type='range' value='99'> <label> <span>Blue</span> </label> <input max='255' min='0' name='blue' type='range' value='71'> <label> <span>Alpha</span> </label> <input max='1' min='0' name='alpha' step='0.05' type='range' value='1'> </li> </ul> <div class='specimen'></div> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script> <script >const root = document.documentElement; const inputs = document.querySelectorAll('input'); function handleUpdates() { // not exactly the most elegant but ¯\_(ツ)_/¯ if (this.name == 'red' || this.name == 'green' || this.name == 'blue' || this.name == 'alpha') { root.style.setProperty(`--${this.name}`, this.value); } else { root.style.setProperty(`--${this.name}`, this.value + 'px'); } } inputs.forEach(input => input.addEventListener('input', handleUpdates)); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: