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.

            
              <section>
  <div class="background">
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516883786691-09148a0e0784?ixlib=rb-0.3.5&s=5e9d057483b1682c2a6153fe7f3afa96&auto=format&fit=crop&w=1382&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516825926085-d40d553ac06e?ixlib=rb-0.3.5&s=3ce2571cd0e6ead93d5d0a9b0143401c&auto=format&fit=crop&w=1350&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1509893532573-7cf260437101?ixlib=rb-0.3.5&s=52122b938fe64a51802bd144ad62eec3&auto=format&fit=crop&w=1350&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516866034928-a73b724bedfc?ixlib=rb-0.3.5&s=b61efcbca8fbf42693b450163c35a780&auto=format&fit=crop&w=1352&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516883614341-6d712fba261b?ixlib=rb-0.3.5&s=f32c00cdc450bad2fcc790e7ab3b105e&auto=format&fit=crop&w=1350&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516883786691-09148a0e0784?ixlib=rb-0.3.5&s=5e9d057483b1682c2a6153fe7f3afa96&auto=format&fit=crop&w=1382&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516840137192-9f76d34133b9?ixlib=rb-0.3.5&s=b7090a1bc9c919f3ac59f6ebe53fcf62&auto=format&fit=crop&w=1351&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516883870728-9e398630f638?ixlib=rb-0.3.5&s=07abf021e8cfa809ed89a2cc6e247981&auto=format&fit=crop&w=1350&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516883786691-09148a0e0784?ixlib=rb-0.3.5&s=5e9d057483b1682c2a6153fe7f3afa96&auto=format&fit=crop&w=1382&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516884173055-18ce50d545c4?ixlib=rb-0.3.5&s=7640f9f9dc4e458b90382973d2917762&auto=format&fit=crop&w=1350&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516883786691-09148a0e0784?ixlib=rb-0.3.5&s=5e9d057483b1682c2a6153fe7f3afa96&auto=format&fit=crop&w=1382&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516883786691-09148a0e0784?ixlib=rb-0.3.5&s=5e9d057483b1682c2a6153fe7f3afa96&auto=format&fit=crop&w=1382&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516883786691-09148a0e0784?ixlib=rb-0.3.5&s=5e9d057483b1682c2a6153fe7f3afa96&auto=format&fit=crop&w=1382&q=80" class="circle"></div></div>
    <div class="circle-wrap"><div data-image-src="https://images.unsplash.com/photo-1516883786691-09148a0e0784?ixlib=rb-0.3.5&s=5e9d057483b1682c2a6153fe7f3afa96&auto=format&fit=crop&w=1382&q=80" class="circle"></div></div>
  </div>
</section>
<div class="glow"></div>
            
          
!
            
              @import url('https://fonts.googleapis.com/css?family=Montserrat:400,700');

* {
  margin:0;
  padding:0;
  outline:none;
  list-style:none;
  text-decoration:none;
  box-sizing:border-box;
  color:#111;
  background: transparent;
  border:none;
}

body {
  background: #000 no-repeat center center;
  background-size: cover;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  transition:0.2s background ease-out;
  -webkit-transition:0.2s background ease-out;
  -moz-transition:0.2s background ease-out;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

section {
  height: 100vh;
  width: 100%;
  position: relative;
  z-index: 3;
}

.background {
  position: absolute;
  top: 50%;left: 50%;
  transform: translate(-50%, -50%);
}
.circle-wrap {
  position: absolute;
  top: 0;left: 0;right: 0;bottom: 0;
  margin: auto;
  width: 5vw;
  height: 5vw;
  transition: 0.3s all ease-out;
  -webkit-transition: 0.3s all ease-out;
} 
.circle {
  position: absolute;
  height: 100%;width: 100%;
  top: 0;left: 0;right: 0;bottom: 0;
  margin: auto;
  border:2px solid #bcdfbc;
  border-radius:50%;
  animation:rotateAnim 5s infinite linear;
  opacity: 0.3;
}
.circle.active {
  border-color: #bcdfbc;
  opacity: 1;
  box-shadow: 0 0 80px rgba(188, 223, 188, 0.3) inset, 0 0 80px rgba(188, 223, 188, 0.3);
}

@keyframes rotateAnim {
  0%{
    transform:rotate(0) scale(1, 1);
  }
  50% {
    transform:rotate(180deg) scale(1, 0.9);
  }
  100% {
    transform:rotate(360deg) scale(1, 1);
  }
}



.glow {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 2;
  top: 0;left: 0;
  background: linear-gradient(45deg, rgba(0,0,0,1) 0%,rgba(20,30,30,1) 15%,rgba(0,0,0,1) 30%,rgba(20,30,30,1) 45%,rgba(0,0,0,1) 60%,rgba(20,30,30,1) 75%,rgba(0,0,0,1) 100%);
  background-size: 600%;
  background-position: 0 0;
  animation: gradientAnimation 20s linear infinite alternate;
  mix-blend-mode: hard-light;
  opacity: 0.8;
}


@keyframes gradientAnimation {
  0%{
    background-position: 0 0;
  }
  100%{
    background-position: 100% 0;
  }
}
            
          
!
            
              var posZ = 1;

$(document).ready(function(){
  $('.circle-wrap:first-of-type .circle').addClass('active');
  setTransitionDuration('.circle-wrap', 0.1, 0);
  $(window).bind('mousewheel', function(e){
    var e = window.event || e;
    var delta = Math.max(-1, Math.min(1, (e.wheelDelta || -e.detail)));
    posZ += (-delta * 0.1);
    if (posZ < 0.3) {
      posZ = 0.3;
    }
    if (posZ > 1) {
      posZ = 1;
    }
    console.log(posZ);
    $('section').css({
      'transform': 'scale('+posZ+')'
    });
    return false;
  });
});

$('.circle').hover(function(){
  var eLbackground = $(this).attr('data-image-src');
  $('body').css({
    'background-image': 'url('+eLbackground+')'
  })
  $('.circle').removeClass('active');
  $(this).toggleClass('active');
});

cwLength = $('.circle-wrap').length;
$('.circle-wrap').each(function(index){
  $(this).css({
    'height':(index * 10) + 40+'vw',
    'width':(index * 10) + 40+'vw',
    'z-index': cwLength - index
  })
});
$('.background').css({
    'height':(cwLength * 10) + 40+'vw',
    'width':(cwLength * 10) + 40+'vw',
});


$(window).mousemove(function(e){
  var x= e.pageX - ($(window).innerWidth() / 1.2);
  var y= e.pageY - ($(window).innerHeight() / 1.2);
  $('.circle-wrap').css({
    'transform': 'translateX('+parseInt(x*(-0.1))+'px) translateY('+parseInt(y*(-0.1))+'px)'
  });
});

function setTransitionDuration(selector, dur, add) {
  var i = 0;
  $(selector).each(function(){
    i++;
    var eLduration = (dur * i) + add;
    $(this).css({
      "transition-duration": eLduration+"s",
      "-webkit-transition-duration": eLduration+"s" 
    })
  });
}
            
          
!
999px
Loading ..................

Console