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="header">
<div class="item">
    <div class="primary">
      <div class="spoiler">
      <iframe class="present" src="!1m10!1m8!1m3!1d178688.38038032036!2d-1.0667825132755415!3d45.59042526411341!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sde!4v1411841033913" width="600" height="450" frameborder="0" style="border:0"></iframe>
    <div class="title">
      <h2>Click to open ...</h2>
      <div class="circle-wrap">
        <button tabindex="1"   type="button" class="toggle-tada">
          <div class="caret-wrap">
            <span class="caret">
      <div class="secondary">
      By clicking the colourful button, You agree the terms and conditions and Your Present will appear and make you happy!


                @import url(,100)
html * 
  font-family: Roboto !important
  font-weight: 100
  box-sizing: border-box

@mixin vcenter
  position: relative
  top: 50%
  transform: translateY(-50%)
  width: 50px
  height: 50px
  position: absolute
  pointer: cursor
  top: -19px
  right: 20px
  transition: all 0.6s ease
  transform: scale(1.0,1.0)
.circle-wrap > *
  outline: 0
  border: none
  cursor: pointer
  width: 100%
  border-radius: 50%
  text-align: center
  padding: 50% 0
  line-height: 0
  margin: 0
  background-color: rgb(233, 93, 227)
  color: white
  font-size: 20px
  box-shadow: 2px 2px 10px -2px rgb(77, 77, 77)
.tada2 .circle-wrap
  transition: all 0.6s ease
  transform: scale(0.8,0.8)

  height: 60px
  width: 100%
  background-color: rgb(23, 165, 165)
  color: white
  box-shadow: 2px 2px 5px 2px #ddd
    text-align: center
    @include vcenter
    margin: 0 auto
    font-size: 30px
  width: 100%
  overflow: hidden
  margin: 80px auto
  max-width: 600px
  width: 100%
  height: 300px
  background-color: #eee
  color: darkgray
  font-size: 50px
  position: relative
  text-align: right
    margin: 0 10px
    position: absolute
    bottom: 40px
    right: 0

  position: absolute
  top: 0px
  left: 0px
  width: 100%
  height: calc(100% + 77px)
  background-color: red
  transform: translateY(100%)
  transition: all 0.8s 0.05s ease

  transition: all 0.5s ease
  transform: translateY(0%)
.title, .secondary
  padding: 0 10px
  z-index: 2
  background-color: rgb(250,250,250)
  border-top: 1px solid rgb(218,218,218)
  position: relative
  width: 100%
  color: rgb(134,134,134)
  font-size: 30px
  padding: 10px 10px
  transition: all 0.6s ease

  color: rgb(172, 172, 172)
  line-height: 20px
  font-size: 14px
  padding: 20px 0
  transform: translateY(77px)
  transition: all 0.6s ease
  transform: rotate(90deg) 
  transition: all 0.6s ease

  display: block
  transform: scaleY(2.0)
.tada2 .caret-wrap
  transform: rotate(270deg)




                setTimeout(function() {

$('.toggle-tada').click(function() {