"css"
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/drygiel/pen/wIKpl?depth=everything&order=popularity&page=36&q=generate&show_forks=false" /> <style class="cp-pen-styles">* { padding: 0; margin: 0; } html, body { width: 100%; height: 100%; overflow: hidden; } textarea { display: none; font: 300 70% 'Open Sans', Arial; position: absolute; left: 0; bottom: 0; box-shadow: 0 -2px 12px #1D1D1D; background: rgba(255, 255, 255, 0.24); padding: 10px; width: 100%; height: 20%; min-height: 100px; border: none; outline: none; } h1 { height: 100%; font: 400 600%/150% 'Open Sans', sans-serif; text-align: center; padding: 50px 10px; letter-spacing: .15em; color: #1F1F1F; background: #FFF; -webkit-font-smoothing: antialiased; }</style></head><body> <h1>Shadow Generator</h1> <textarea></textarea> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.min.js"></script> <script src="https://rawgithub.com/infusion/jQuery-xcolor/master/jquery.xcolor.min.js"></script> <script src="https://rawgithub.com/heyimjuani/iluminate/master/jquery.iluminate.js"></script> <!-- HAVE FUN WITH PRESETS --> <!-- IF YOU WANT TO HAVE COLORS IN HEX YOU CAN COPY IT DIRECTLY FROM CODE INSPECTOR --> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script> <script >var options = { uppercase: true, preset: 'Dark', presets: { Default: { iluminate: { direction: 'bottomLeft', textSize: 60, textAlpha: 0.2, fadeText: 0.5, }, colors: { 'background-color': '#FFFFFF', 'color': '#000000', } }, Extrude: { iluminate: { direction: 'bottomLeft', textSize: 11, textAlpha: 0.88, fadeText: 0.74, }, colors: { 'background-color': '#d9d9d9', 'color': '#2d2d2d', } }, BlueSky: { iluminate: { direction: 'bottomRight', textSize: 111, textAlpha: 0.08, fadeText: 1, }, colors: { 'background-color': '#00c2ff', 'color': '#005d84', } }, Green: { iluminate: { direction: 'topLeft', textSize: 26, textAlpha: 0.21, fadeText: 0.87, }, colors: { 'background-color': '#aacf90', 'color': '#deffa2', } }, Dark: { iluminate: { direction: 'bottomLeft', textSize: 50, textAlpha: 0.21, fadeText: 0.87, }, colors: { 'background-color': '#191f25', 'color': '#252d37', } } }, iluminate: { direction: 'bottomLeft', textSize: 60, textAlpha: 0.2, fadeText: 0.5, includeText: true, textOnly: true, }, colors: { 'background-color': '#FFFFFF', 'color': '#000000', } }; var applyPreset = function () { var extend = function (destination, source) { for (var property in source) {if (window.CP.shouldStopExecution(1)){break;} if (typeof source[property] === 'object') destination[property] = extend(destination[property], source[property]); else destination[property] = source[property]; } window.CP.exitedLoop(1); } extend(options.iluminate, options.presets[options.preset].iluminate); extend(options.colors, options.presets[options.preset].colors); for (var i in gui.__controllers) {if (window.CP.shouldStopExecution(2)){break;}gui.__controllers[i].updateDisplay(); window.CP.exitedLoop(2); } apply(); } var apply = function () { $('h1') .css(options.colors) .css('text-transform', options.uppercase? 'uppercase' : '') .iluminate(options.iluminate); $('textarea').text('text-shadow: ' + $('h1').css('text-shadow') + ';'); } var gui = new dat.GUI(); gui.add(options, 'preset', Object.keys(options.presets)).onChange(applyPreset); gui.add(options.iluminate, 'direction', ["top", "topLeft", "topRight", "left", "right", "bottom", "bottomLeft", "bottomRight"]).onChange(apply); gui.add(options.iluminate, 'textSize', 0, 200).onChange(apply); gui.add(options.iluminate, 'textAlpha', 0, 1).onChange(apply); gui.add(options.iluminate, 'fadeText', 0, 1).onChange(apply); gui.addColor(options.colors, 'background-color').onChange(apply); gui.addColor(options.colors, 'color').onChange(apply); gui.add(options, 'uppercase').onChange(apply); // gui.close(); applyPreset(); // If we are in CodePen small window -> it will not trigger setTimeout(function() { $('textarea').slideDown(); }, 2500); //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: