Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

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


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <div class="container">
    <img src="" alt="Strawberry" class="img-fruit" />
  <div class="control-btn">
    <span class="prev">
      <i class="fa fa-long-arrow-left"></i>
    <span class="next">
      <i class="fa fa-long-arrow-right"></i>
    The garden strawberry is a widely grown hybrid species of the genus Fragaria. It is cultivated worldwide for its fruit.
  <div class="properties">
    <div class="qty">
      <i class="fa fa-minus"></i>
      <span class="number">1</span>
      <i class="fa fa-plus"></i>
    </div><div class="price">
      <h4>Total Price</h4>
      <span class="price-inr">
        <i class="fa fa-inr"></i>
        <span class="amount">7</span>
    </div><div class="delivery">
      <i class="fa fa-fighter-jet"></i>
      <span class="time">In 60 mins</span>
  <input class="ip-add-cart" type="button" value="Add to cart" />

<!-- Start Credit -->
<div class="credit">
  Inspired By
  <a href="" target="_blank">
    <img src="" alt="Dribbble Logo" class="d-logo" />
<!-- End Credit -->


                @import "bourbon"
@import "compass"
  margin: 0
  padding: 0
  outline: none

  height: 100%

  background: #ccc
  font-family: 'Libre Franklin', sans-serif
  // Needs latest Compass, add '@import "compass"' to your scss
  // Permalink - use to edit and share this gradient:
  background-repeat: no-repeat
  background-color: #d2eaea // Old browsers
  @include filter-gradient(#d2eaea, #f7eec3, horizontal) // IE6-9 fallback on horizontal gradient
  @include background-image(linear-gradient(left bottom,  #d2eaea 0%,#f9f9f9 49%,#f9f9f9 49%,#f7eec3 100%))

  position: relative
  margin: 70px auto
  width: 350px
  height: 470px
  text-align: center
  background: #fff
  @include box-shadow(0px 10px 25px rgba(0,0,0,0.1), 0px 60px 75px -25px rgba(0,0,0,0.2))
  cursor: default
    width: 290px
    margin-top: -60px
  div.control-btn span
    position: absolute
    margin-top: 20px
    width: 35px
    height: 35px
    background: #f22d34
    color: #fff
    font-size: 13px
    display: inline-block
    line-height: 36px
    cursor: pointer
    @include border-radius(100%)
    @include box-shadow(0px 2px 7px rgba(241,44,51,0.7))
    @include transition(background 0.3s ease-in)
      background: #de2128
    left: -17.5px
    right: -17.5px
    font-size: 30px
    letter-spacing: 3px
    margin-top: 35px
    color: #ea1d24
    font-size: 11px
    padding: 15px 45px
    color: #878787
    line-height: 22px
    margin-top: 20px
    height: 130px
    &:before, &:after
      content: ' '
      display: inline-block
      clear: both
      display: inline-block
      text-align: center
      width: 33.33%
      float: left
        font-size: 14px
        color: #757575
        padding: 25px 0px
        font-size: 7px
        color: #757575
        background: #dfdfdf
        @include border-radius(100%)
        padding: 4px
        cursor: pointer
        font-size: 11px
        color: #757575
        padding: 5px
        font-size: 18px
        color: #757575
        color: #646363
        font-size: 18px
        padding: 0 5px
        font-size: 15px
        color: #757575
        display: inline-block
        color: #757575
        font-size: 11px
    border: none
    padding: 12px 50px
    background: #f22d34
    color: #fff
    font-size: 12px
    text-transform: uppercase
    font-weight: bold
    //margin-top: 33px
    @include border-radius(25px)
    @include box-shadow(0px 15px 45px rgba(242,45,52,0.5))
    cursor: pointer
    @include transition(background 0.3s ease-in)
      background: #da1920
/* Start Credit Style */ 
  position: absolute
  padding: 0px 10px
  padding-bottom: 8px
  height: 15px
  right: 10px
  top: 10px
  display: inline-block
  background: rgba(255, 255, 255, 0.7)
  font-size: 7px
  font-weight: bold
  color: rgba(0, 0, 0, 0.7)
  border: 1px solid rgba(0, 0, 0, 0.1)
  box-shadow: 0px 10px 15px -15px rgba(0, 0, 0, 0.3)
  cursor: default

    border: 1px solid rgba(0, 0, 0, 0.2)

    position: relative
    width: 14px
    margin-left: 3px
    top: 4px

/* End Credit Style */


                var num = 1,
    price = 7;

  var _num = parseInt($("span.number").text()) + 1;

  var _num = parseInt($("span.number").text()) - 1;
  if(_num > -1)

function updatePrice(num,price){