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.

            
              %h1 Lollipop Transition
.wrap
  .content
    %h2 Well Hello!
    %p Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.
  
    %p Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.
  
%a.button.glyphicon.glyphicon-plus{:href => "#"}
            
          
!
            
              $button: #007fed
$background: #e6e6e6
  
body
  background: $background
  width: 100%
  height: 100vh
  position: relative
h1
  color: darken($background, 12%)
  font-weight: 200
  text-align: center
  position: absolute
  top: 45%
  width: 100%
h2
  color: $button
  font-weight: bold
  border-bottom: 1px solid #eee
  padding-bottom: 15px
  margin-bottom: 15px
p
  color: #001818
.wrap
  position: absolute
  overflow: hidden
  top: 10%
  right: 10%
  bottom: 85px
  left: 10%
  padding: 20px 50px
  display: block
  border-radius: 4px
  transform: translateY(20px)
  transition: all 0.5s
  visibility: hidden
  
  .content
    opacity: 0
  
  &:before
    position: absolute
    width: 1px
    height: 1px
    background: white
    content: ''
    bottom: 10px
    left: 50%
    top: 95%
    color: #fff
    border-radius: 50%
    -webkit-transition: all 600ms cubic-bezier(0.215, 0.61, 0.355, 1)
    transition: all 600ms cubic-bezier(0.215, 0.61, 0.355, 1)
  
  &.active
    display: block
    visibility: visible
    box-shadow: 2px 3px 16px darken($background, 15%) 
    transition: all 600ms
    transform: translateY(0px)
    transition: all 0.5s
      
    &:before
      height: 2000px
      width: 2000px
      border-radius: 50%
      top: 50%
      left: 50%
      margin-left: -1000px
      margin-top: -1000px
      display: block
      -webkit-transition: all 600ms cubic-bezier(0.215, 0.61, 0.355, 1)
      transition: all 600ms cubic-bezier(0.215, 0.61, 0.355, 1)
  
    .content
      position: relative
      z-index: 1
      opacity: 1
      transition: all 600ms cubic-bezier(0.55, 0.055, 0.675, 0.19)
     

a.button
  padding: 11px 11px 13px 13px
  outline: none
  border-radius: 50%
  background: $button
  color: #fff
  font-size: 24px
  display: block
  position: fixed
  left: 50%
  bottom: 20px
  top: auto
  margin-left: -25px
  text-decoration: none
  transition: transform 0.25s

  &:hover
    text-decoration: none
    background: lighten($button, 10%)
  &.active
    transform: rotate(135deg)
    transition: transform 0.5s
            
          
!
            
              $('a').on('click', function(){
  $('.wrap, a').toggleClass('active');
  
  return false;
});
            
          
!
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