"animation"
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/greypants/pen/MYWMrg?depth=everything&order=popularity&page=38&q=animation&show_forks=false" /> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css'> <style class="cp-pen-styles">body { background: black; } #tiles { height: 130px; left: 50%; margin-top: -0.5px; opacity: 0.75; overflow: hidden; position: absolute; top: 290px; -webkit-transform: translate(-40%, -50%) rotate(45deg); transform: translate(-40%, -50%) rotate(45deg); width: 130px; z-index: 2; } .tile { background: #6cafb8; display: block; float: left; height: 21px; margin: 0 0 0.5px 0.5px; width: 21px; } .page-intro { color: #fff; width: 100%; margin: auto; position: relative; background-image: url("https://f.cl.ly/items/0x283w0W0R202j0c3w1T/landscape-1-full.jpg"); background-size: cover; background-position: 50% 50%; height: 400px; overflow: hidden; display: block; } .page-intro .page-section__title, .page-intro a { color: #fff; } .page-intro .container { z-index: 2; } .page-intro:before { background-size: 1200px 507px; background-image: url("https://cl.ly/image/0Z2d3z3W1N0K/prism-pattern.png"); background-position: 50% 0%; content: ""; height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: 0; } .page-intro:after { background: -webkit-gradient(linear, left top, left bottom, from(#487380), to(rgba(72, 115, 128, 0))), -webkit-gradient(linear, left top, right top, from(rgba(72, 115, 128, 0.5)), color-stop(rgba(108, 175, 184, 0.5)), to(rgba(211, 88, 158, 0.5))); background: linear-gradient(to bottom, #487380, rgba(72, 115, 128, 0)), linear-gradient(to right, rgba(72, 115, 128, 0.5), rgba(108, 175, 184, 0.5), rgba(211, 88, 158, 0.5)); content: ""; height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: 1; } </style></head><body> <section class='page-intro'> <div class='container'> <div id='tiles'> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> <div class='tile'></div> </div> </div> </section> <script src='//production-assets.codepen.io/assets/common/stopExecutionOnTimeout-b2a7b3fe212eaa732349046d8416e00a9dec26eb7fd347590fbced3ab38af52e.js'></script> <script >(function() { var TileAnimation, animation; TileAnimation = class TileAnimation { constructor() { this.animate = this.animate.bind(this); this.setupTiles(); } animate() { var now; now = Date.now(); this.tiles.forEach(function(tile) { var delta, opacity; delta = tile.offset + now; opacity = Math.sin(delta / 1000); return tile.el.setAttribute('style', `opacity: ${opacity}`); }); // Throttle for lower cpu usage return setTimeout(() => { return requestAnimationFrame(this.animate); }, 50); } setupTiles() { var i, len, ref, results, tile; this.tiles = []; ref = document.getElementsByClassName('tile'); results = []; for (i = 0, len = ref.length; i < len; i++) {if (window.CP.shouldStopExecution(1)){break;} tile = ref[i]; results.push(this.tiles.push({ el: tile, offset: Math.random() * 10000 })); } window.CP.exitedLoop(1); return results; } }; animation = new TileAnimation(); animation.animate(); }).call(this); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiPGFub255bW91cz4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFBQSxNQUFBLGFBQUEsRUFBQTs7RUFBTSxnQkFBTixNQUFBLGNBQUE7SUFDRSxXQUFhLENBQUEsQ0FBQTtVQUdiLENBQUEsY0FBQSxDQUFBO01BRkUsSUFBQyxDQUFBLFVBQUQsQ0FBQTtJQURXOztJQUdiLE9BQVMsQ0FBQSxDQUFBO0FBQ1AsVUFBQTtNQUFBLEdBQUEsR0FBTSxJQUFJLENBQUMsR0FBTCxDQUFBO01BRU4sSUFBQyxDQUFBLEtBQUssQ0FBQyxPQUFQLENBQWUsUUFBQSxDQUFDLElBQUQsQ0FBQTtBQUNiLFlBQUEsS0FBQSxFQUFBO1FBQUEsS0FBQSxHQUFRLElBQUksQ0FBQyxNQUFMLEdBQWM7UUFDdEIsT0FBQSxHQUFVLElBQUksQ0FBQyxHQUFMLENBQVMsS0FBQSxHQUFRLElBQWpCO2VBQ1YsSUFBSSxDQUFDLEVBQUUsQ0FBQyxZQUFSLENBQXFCLE9BQXJCLEVBQThCLENBQUEsU0FBQSxDQUFBLENBQVksT0FBWixDQUFBLENBQTlCO01BS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1hdGUpXG4gICAgLCA1MFxuXG4gIHNldHVwVGlsZXM6IC0+XG4gICAgQHRpbGVzID0gW11cblxuICAgIGZvciB0aWxlIGluIGRvY3VtZW50LmdldEVsZW1lbnRzQnlDbGFzc05hbWUoJ3RpbGUnKVxuICAgICAgQHRpbGVzLnB1c2hcbiAgICAgICAgZWw6IHRpbGVcbiAgICAgICAgb2Zmc2V0OiBNYXRoLnJhbmRvbSgpICogMTAwMDBcblxuYW5pbWF0aW9uID0gbmV3IFRpbGVBbmltYXRpb24oKVxuYW5pbWF0aW9uLmFuaW1hdGUoKSJdfQ== //# sourceURL=coffeescript //# sourceURL=pen.js </script> </body></html>

Related: See More


Questions / Comments: