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.

            
              .scroll
#fullpage
  .section.section1
    h2.title Some Uses For
    h1.title2 Rainbow Gradient Animations
  .section.section2
    nav.navbar Navigation Bars
      img.hamburger(src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/551157/hamgurger.svg")
  .section.section3
    h1.clip Text Clips
  .section.section4
    .button 
      span Hover Animations
  .section.section5
    h2.conclude1 Now go forth and make the web
    h1.conclude2.clip Fabulous
  
            
          
!
            
              @mixin rainbow(){
  background: repeating-linear-gradient(-45deg,red 0%, yellow 7.14%, rgb(0,255,0) 14.28%, rgb(0,255,255) 21.42%, cyan 28.56%, blue 35.7%, magenta 42.84%, red 50%);
	background-size:600vw 600vw;
	-webkit-animation:'slide' 10s infinite linear forwards;
}
@keyframes slide{
  0%{
    background-position-x: 0%;
  }
  100%{
    background-position-x: 600vw;
  }
}

body{
  font-family: 'filson-soft';
  margin: 0;
  overflow:hidden;
  
    color: white;
  h2, h1{
    margin: 0;
    position:relative;
    top: 50%;
    text-align: center;
    width: 100vw;
    transform:translateY(-50%);
  }
}
.section1{
  @include rainbow;
}
.title{
  top: 30%;
  margin-bottom: 10vh;
  font-size: 5vw;
}
.title2{
  top: 30%;
  font-size: 8vw;
  line-height: 8vw;
}
.navbar{
  position:relative;
  top: calc(50% - 50px);
  @include rainbow;
  height: 100px;
  line-height: 100px;
  padding-left: 50px;
  font-size: calc(12px + 3vw);
  img{
    height: 50px;
    width: 50px;
    position: absolute;
    right: 25px;
    top: 25px;
  }
}
.clip{
  font-size: 15vw;
  @include rainbow;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
.button{
  border-radius: 10px;
  width: 40vw;
  height: 15vw;
  font-size: 3vw;
  vertical-align: center;
  text-align: center;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background-color: red;
  display:table;
  &:hover{
    @include rainbow;
    animation-duration: 3.5s;
  }
  span{
    font-weight: 500;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
  }
}
[class^="conclude"]{
  top: 35%;
  color: black;
  margin-bottom: 10vh;
}
.conclude1{
  font-size: 3vw;
}
.scroll{
  cursor: pointer;
  width: 6vw;
  height: 6vw;
  position:absolute;
  bottom: 0;
  z-index: 100;
  background-image:url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/551157/menu-drop.svg");
  left: 50%;
  transform:translate(-50%,-50%);
}
            
          
!
            
              $(document).ready(function(){
  $('#fullpage').fullpage({
    onLeave: function(index, nextIndex, direction){
      if(index == 4 && direction == "down"){
        $('.scroll').animate({
          'opacity': '0'
        }, 100);
      }
      else{
        $('.scroll').animate({
          'opacity': '0'
          }, 100).delay(500).animate({
          'opacity': '1'
        })
      }
      
    }
  });
  $('.scroll').on('click', function(){
    $.fn.fullpage.moveSectionDown();
  })
})

            
          
!
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