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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

              body {
  background-image: url('https://cmkt-image-prd.global.ssl.fastly.net/0.1.0/ps/143140/1160/772/m1/fpnw/wm0/bar_lounge_drink_menu_mockup2-.jpg?1405393764&s=fd2c2c0618813055510041d1dd8e9485');
  // background-color: darkblue;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  overflow: hidden;
  width: 400px;
  height: auto;
.ripple {
  width: 1px;
  height: 1px;
  border-radius: 50%;
  // background-color: #BFC6D6;
  background: radial-gradient(#BFC6D6, transparent);
  animation-name: mymove;
  animation-duration: 15s; 
  animation-timing-function: ease-out;
  animation-iteration-count: 1;
  position: absolute;
  opacity: 0;

@keyframes mymove {
    0% {filter: blur(2px)}
    50% {opacity: 0.07; transform: scale(3, 3); 
      filter: blur(1px); 
    100% {transform: scale(5, 5); 
      filter: blur(1px); 
      transform: rotate(180deg)}
.notice {
  position: absolute;
  z-index: 10;
  background-color: black;
  width: 25%;
  color: white;
  padding: 1em;
  font-family: arial;
  border-radius: 5px;
  border: 2px solid grey;
    $(".hi").before('<div class="notice">Hover over the background to see smoke</div>')
  }, 2000);
$("html").on('mousemove', function(coords){
  let xCoord = coords.clientX;
  let yCoord = coords.clientY;
  $('.hi').append("<div class='ripple'></div>");
  $('.ripple:last').offset({top:yCoord, left:xCoord });
  let maxWidthSmoke = Math.random()*70+30;
  let smokeRising = Math.random()*500+400;
  let plusOrMinus = Math.random() < 0.5 ? -1 : 1;
  let smokeDirection = Math.random()*90 * plusOrMinus;
    opacity: 0,
    width: maxWidthSmoke,
    height: Math.random()*70+30,
    top: `-=${smokeRising}`,
    left: `-=${smokeDirection}`
    // backgroundColor: 'black'
  }, 15000, function(){
Loading ..................