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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              section.slider
    input(type="radio", name="pagination" id="membershipSlide", checked="true")
    input(type="radio", name="pagination" id="billingSlide")
    input(type="radio", name="pagination" id="storefrontSlide")
    .slider__backgrounds.slider__backgrounds__bottom.slider__backgrounds__bottom--membership
    .slider__backgrounds.slider__backgrounds__bottom.slider__backgrounds__bottom--billing
    .slider__backgrounds.slider__backgrounds__bottom.slider__backgrounds__bottom--storefront
    .slider__backgrounds.slider__backgrounds__top.slider__backgrounds__top--membership
    .slider__backgrounds.slider__backgrounds__top.slider__backgrounds__top--billing
    .slider__backgrounds.slider__backgrounds__top.slider__backgrounds__top--storefront
    .slider__slides
      .slider__slides__slide
        h3.slider__slides__slide__title.slider__slides__slide__title--membership Membership
        h4.slider__slides__slide__sub-title.slider__slides__slide__sub-title--membership Create your own subscription business
        p.slider__slides__slide__text.slider__slides__slide__text--membership You’ll have customers signing up for your new business in just a few minutes. Plasso handles all the technical details like recurring billing, member management and more.
        a.slider__slides__slide__link.slider__slides__slide__link--membership(href="#") Learn More
      .slider__slides__slide
        h3.slider__slides__slide__title.slider__slides__slide__title--billing Billing
        h4.slider__slides__slide__sub-title.slider__slides__slide__sub-title--billing Create your own subscription business
        p.slider__slides__slide__text.slider__slides__slide__text--billing You’ll have customers signing up for your new business in just a few minutes. Plasso handles all the technical details like recurring billing, member management and more.
        a.slider__slides__slide__link.slider__slides__slide__link--billing(href="#") Learn More
      .slider__slides__slide
        h3.slider__slides__slide__title.slider__slides__slide__title--storefront Storefront
        h4.slider__slides__slide__sub-title.slider__slides__slide__sub-title--storefront Create your own subscription business
        p.slider__slides__slide__text.slider__slides__slide__text--storefront You’ll have customers signing up for your new business in just a few minutes. Plasso handles all the technical details like recurring billing, member management and more.
        a.slider__slides__slide__link(href="#") Learn More
    .slider__pagination
      label.slider__pagination__section.slider__pagination__section--membership#membershipSection(for="membershipSlide") Membership
      label.slider__pagination__section.slider__pagination__section--billing#billingSection(for="billingSlide") Billing
      label.slider__pagination__section#storefrontSection.slider__pagination__section--storefront(for="storefrontSlide") Storefront
            
          
!
            
              body
  color: #768093
  background-color: #ffffff
  -webkit-font-smoothing:antialiased
  -moz-osx-font-smoothing:grayscale
  text-rendering:optimizeLegibility
  font-size: 16px
  overflow: hidden

*
  padding: 0
  margin: 0
  box-sizing: border-box
  -moz-box-sizing: border-box
  -webkit-box-sizing: border-box
  font-family: 'Nunito', sans-serif
  line-height: 1.4em

a
  text-decoration: none

.slider
  position: relative
  width: 100%
  margin: 50px 0

  &__backgrounds
    position: absolute
    height: 380px
    width: 100%
    opacity: 0
    transition: opacity 1s linear
    will-change: opacity

    &__bottom
      clip-path: polygon(0 11.4%, 100% 0%, 100% 88.9%, 0% 100%)
      
      &--membership
        background-color:  #ffd9df

      &--billing
        background-color: #c8f0da

      &--storefront
        background-color: #d8e9ff

    &__top
      clip-path: polygon(0 19.7%, 100% 0%, 100% 80.3%, 0% 100%)

      &--membership
        background: linear-gradient(#f44c67, #fb377f 50%)

      &--billing
        background: linear-gradient(#3cd781, #21b88f 50%)
      
      &--storefront
        background: linear-gradient(#6472ff, #4a42e6 50%)

  &__slides
      display: grid
      grid-template-columns: 100% 100% 100%
      transition: transform 1s ease-in-out
      will-change: transform
      height: 380px

      &__slide
        z-index: 1000
        background-color: white
        margin: auto auto
        padding: 12% 55px 12% 55px
        box-shadow: rgba(29, 29, 31, 0.15) 0px 10px 60px
        max-height: 380px
        @media screen and (max-width: 500px)
          margin: 0 5% 0 5%

        &__title
          font-size: 45px
          font-weight: 400
          @media screen and (max-width: 500px)
            font-size: 34px
        
          &--membership
            color: #f44c67
          
          &--billing
            color: #2fca74
            
          &--storefront
            color: #4f5ef5

        &__sub-title
          font-size: 16px
          font-weight: 300
          margin-bottom: 75px
          @media screen and (max-width: 500px)
            font-size: 14px
          @media screen and (max-width: 400px)
            margin-bottom: 15px
          
          &--membership
            color: #f44c67
            
          &--billing
            color: #2fca74
            
          &--storefront
            color: #4f5ef5

        &__text
          font-size: 14px
          font-weight: 400
          width: 318px
          margin-bottom: 30px
          @media screen and (max-width: 500px)
            width: 100%

        &__link
          text-transform: uppercase
          font-size: 12px
          font-weight: bold
          text-align: right
          display: block
          
          &--membership
            color: #f44c67

          &--billing
            color: #2fca74

          &--storefront
            color: #4f5ef5
  &__pagination
    display: block
    text-align: center
    margin-top: 25px

    &__section
      display: inline-block
      width: 100px
      height: 2px
      background-color: #1d1d1d
      cursor: pointer
      margin-right: 30px
      @media screen and (max-width: 400px)
        width: 50px
        margin-right: 15px
      overflow: hidden
      will-change: transform
      opacity: 0.1
      transition: opacity 0.5s linear

      &:last-of-type
        margin-right: 0

#membershipSlide,
#billingSlide,
#storefrontSlide
  display: none

#membershipSlide:checked
  ~ .slider__backgrounds__top--membership,
  ~ .slider__backgrounds__bottom--membership
    opacity: 1
  ~ .slider__slides 
    transform: translateX(0%)
  ~ .slider__pagination .slider__pagination__section--membership
    opacity: 1

#billingSlide:checked
  ~ .slider__backgrounds__top--billing,
  ~ .slider__backgrounds__bottom--billing
    opacity: 1
  ~ .slider__slides 
    transform: translateX(-100%)
  ~ .slider__pagination .slider__pagination__section--billing
    opacity: 1

#storefrontSlide:checked
  ~ .slider__backgrounds__top--storefront,
  ~ .slider__backgrounds__bottom--storefront
    opacity: 1
  ~ .slider__slides 
    transform: translate(-200%)
  ~ .slider__pagination .slider__pagination__section--storefront
    opacity: 1
            
          
!
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.

Console