cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              $animation-duration: 0.3s
$animation-timing-function: cubic-bezier(.58,-0.23,.3,1.3)
$animation-stretch: 2
$animation-distance: 60px

$background: #F6F4E8
$background_shaded: #7F6544

html
  box-sizing: border-box

*, *:before, *:after
  box-sizing: inherit

body
  background: $background
  color: #313030
  font-family: "soleil", Helvetica, sans-serif

@keyframes blurIn
  0%
    transform: translate3d(0,-#{$animation-distance},0) scale(0.9,#{$animation-stretch})
    filter: blur(3px)
    opacity: 0
  100%
    transform: translate3d(0,0,0) scale(1)
    filter: blur(0)
    opacity: 1

@keyframes blurOut
  0%
    transform: translate3d(0,0,0) scale(1)
    filter: blur(0)
    opacity: 1
  100%
    transform: translate3d(0,#{$animation-distance},0) scale(0.9,#{$animation-stretch})
    filter: blur(3px)
    opacity: 0

@keyframes pulseEllipsis
  0%
    box-shadow: -3px 0 0 rgba($background_shaded, 0.6), -9px 0 0 rgba($background_shaded, 0.6), -15px 0 0 rgba($background_shaded, 0.6)
  20%
    box-shadow: -3px 0 rgba($background_shaded, 0.6), -9px 0 0 rgba($background_shaded, 0.6), -15px 0 0 rgba($background_shaded, 1)
  40%
    box-shadow: -3px 0 0 rgba($background_shaded, 0.6), -9px 0 0 rgba($background_shaded, 1), -15px 0 0 rgba($background_shaded, 0.6)
  60%
    box-shadow: -3px 0 0 rgba($background_shaded, 1), -9px 0 0 rgba($background_shaded, 0.6), -15px 0 0 rgba($background_shaded, 0.6)
  
@keyframes fadeInOutLong
  0%, 35%
    opacity: 0
  40%, 85%
    opacity: 1
  90%, 100%
    opacity: 0

#loader
  background: $background
  width: 400px
  position: fixed
  top: 50%
  left: 50%
  text-align: center
  transform: translate3d(-50%,-50%,0)
  
  // &:after
  //   content: "(We're still prepping the menu. Check back in a bit!)"
  //   font-size: 14px
  //   color: rgba($background_shaded, 0.6)
  //   position: absolute
  //   display: block
  //   left: 0
  //   right: 0
  //   bottom: -32px
  //   text-align: center
  //   animation: fadeInOutLong 15s ease-in both
  
  .emoji, .text
    animation-name: blurIn
    animation-duration: $animation-duration
    animation-timing-function: $animation-timing-function
    animation-fill-mode: both
  
  .emoji
    display: block
    font-size: 3.5em
    margin-bottom: 0.2em
    animation-delay: 0.1s
    
  .text
    line-height: 1
    color: $background_shaded
    font-size: 20px
    margin-right: -14px // Optically center for ellipsis
    &:after
      content: ''
      display: inline-block
      background: transparent
      width: 3px
      height: 3px
      border-radius: 50%
      margin-left: 18px
      box-shadow: -3px 0 0 rgba($background_shaded, 0.6), -9px 0 0 rgba($background_shaded, 0.6), -15px 0 0 rgba($background_shaded, 0.6)
      animation: pulseEllipsis 0.8s infinite both ease-in-out
    
  .animateOut
    animation-name: blurOut
    animation-duration: $animation-duration
    animation-timing-function: $animation-timing-function
    animation-fill-mode: both
            
          
!
            
              var LOADER_CONTAINER = $("#loader");
var LOADER_INTERVAL = 1600;
var LOADERS = [
  ["๐ŸŒถ","Dicing peppers"],
  ["๐Ÿ”ช","Sharpening knives"],
  ["๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿณ","Starching aprons"],
  ["๐Ÿฅ’","Sautรฉing veggies"],
  ["๐Ÿณ","Frying eggs"],
  ["๐Ÿง€","Cutting cheese"],
  ["๐Ÿฅ“","Crisping bacon"],
  ["๐ŸŒฝ","Shucking corn"],
  ["๐Ÿš","Steaming rice"],
  ["๐Ÿž","Baking bread"],
  ["๐Ÿท","Uncorking wine"],
  ["๐Ÿฝ","Plating dishes"],
  ["๐Ÿค","Frying shrimp"],
  ["๐Ÿฅ","Toasting croissants"],
  ["๐Ÿ‹","Deseeding lemons"],
  ["๐Ÿฅ•","Peeling carrots"],
  ["๐Ÿฒ","Stirring soups"],
  ["๐Ÿธ๐Ÿต","Spilling tea"],
  ["๐Ÿ•","Firing pizzas"],
  ["๐Ÿ”ฅ","Lighting burners"],
  ["๐Ÿฅ”","Roasting potatoes"],
  ["๐Ÿค”","Testing tastes"],
  ["๐ŸŠ","Squeezing oranges"],
  ["๐Ÿ’ง","Pouring water"],
  ["๐Ÿฆ","Freezing ice cream"],
  ["๐Ÿจ","Scooping desserts"],
  ["๐Ÿฅ—","Mixing salads"],
  ["๐Ÿฅš","Cracking eggs"],
  ["๐Ÿฅž","Stacking pancakes"],
  ["๐Ÿ’","Putting a cherry on top"],
  ["๐Ÿ—","Seasoning wings"],
  ["๐Ÿ…","Crushing tomatoes"],
  ["๐Ÿ","Chunking pineapples"],
  ["๐Ÿ’–","Adding a pinch of something perfect"],
  ["๐Ÿ“","Writing recipes"],
  ["๐Ÿ—“","Planning menus"],
  ["๐ŸŒฐ","Cracking nuts"],
  ["๐Ÿฟ","Popping popcorn"],
  ["๐Ÿพ","Popping champers"],
  ["๐Ÿ†","Planting eggs"],
  ["๐Ÿฅ‘","Mashing avocados"],
  ["๐ŸŒ","Peeling bananas"],
  ["๐Ÿ”","Flipping burgers"],
  ["๐Ÿป","Clinking glasses"],
  ["๐Ÿด","Polishing silverware"],
  ["๐Ÿช","Baking cookies"],
  ["๐Ÿฃ","Rolling sushi"],
  ["๐Ÿถ","Warming sake"],
  ["๐Ÿฑ","Boxing bento"],
  ["๐ŸŒฏ","Wrapping burritos"],
  ["โ˜•๏ธ","Brewing coffee"],
  ["๐Ÿ","Coring apples"],
  ["๐ŸŒฟ","Growing herbs"],
  ["๐Ÿฐ","Slicing cakes"],
  ["๐ŸŸ","Frying fries"],
  ["๐Ÿ‘","Peeling peaches"],
  ["๐Ÿ›","Spicing curry"],
  ["๐ŸŒฎ","Assembling tacos"],
  ["๐Ÿ“ธ","Photographing plates"],
  ["๐Ÿ›Ž","Dinging bells"],
  ["๐Ÿซ","Melting chocolate"],
  ["๐Ÿœ","Cooking ramen"],
  ["๐Ÿฅ–","Baking baguettes"],
  ["โ„๏ธ","Shaving ice"],
  ["๐Ÿฅ›","Blending milkshakes"],
  ["๐Ÿ„","Chopping mushrooms"],
  ["๐ŸŸ","Searing fish"],
  ["๐Ÿ˜‹","Licking lips"],
  ["๐Ÿคž๐Ÿพ","Crossing fingers"],
  ["๐Ÿ‘Š๐Ÿฟ","Bumping fists"],
  ["โ˜๐Ÿฝ","Throwing in one last thing"],
  ["๐Ÿ˜™๐Ÿ‘Œ","Doing that Italian chef thing"],
  ["๐Ÿ‘ƒ๐Ÿป","Smellinโ€™ smells"],
  ["๐Ÿน","Mixing drinks"],
  ["โœจ","Making magic"],
  ["๐ŸŒฑ","Planting seeds"],
  ["โš—๏ธ","Testing something new"],
]

$(document).ready(function() {
  
  var cycleLoader = function() {
    var index = Math.floor(Math.random() * LOADERS.length);
    var selected = LOADERS[index];
    var selectedEmoji = selected[0];
    var selectedText = selected[1];
    
    // First transition out the old loader
    setTimeout(function(){
      LOADER_CONTAINER.children().addClass("animateOut");
    }, LOADER_INTERVAL - 300); // This negative value should be the same as $animation-duration in the CSS
    
    // Then remove the animated out divs
    LOADER_CONTAINER.children(".emoji").last().remove();
    LOADER_CONTAINER.children(".text").last().remove();
    
    // Then animate in the new one
    LOADER_CONTAINER.append('<div class="emoji">' + selectedEmoji + '</div>');
    LOADER_CONTAINER.append('<div class="text">' + selectedText + '</div>');
  }
  
  setInterval(cycleLoader, LOADER_INTERVAL);  
  cycleLoader(); // Run first time without delay
  
});
            
          
!
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.
Loading ..................

Console