Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

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.

HTML

              
                <div class="table">
  <div class="table-cell">
    <div class="container">
      <div class="card">
        <a class="btn" href="https://codepen.io/Anna_Batura/" target="_blank">
          Button
        </a>
      </div>
      <svg class="svg-1" width="147px" height="148px" viewBox="0 0 147 148" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <defs>
        <filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-1">
            <feOffset dx="0" dy="5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
            <feGaussianBlur stdDeviation="15" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
            <feColorMatrix values="0 0 0 0 0.266666667   0 0 0 0 0.694117647   0 0 0 0 0.607843137  0 0 0 0.7 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1"></feColorMatrix>
            <feMerge>
                <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
                <feMergeNode in="SourceGraphic"></feMergeNode>
            </feMerge>
        </filter>
    </defs>
    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" filter="url(#filter-1)">
        <g id="Artboard-1" transform="translate(-146.000000, -3.000000)" fill="#44B19B">
            <g id="tr1" transform="translate(218.000000, 72.000000) scale(-1, -1) translate(-218.000000, -72.000000) translate(169.000000, 22.000000)">
                <path d="M45.1796875,76.9648438 L0.58984375,100 L20,0 L45.1796875,76.9648438 Z" id="Triangle-1" fill-opacity="0.423318614"></path>
                <path d="M97.1992188,79.2382812 L18.9960938,0 L40,62 L97.1992188,79.2382812 Z" id="Triangle-1"></path>
            </g>
        </g>
    </g>
</svg>

<svg class="svg-2" width="150px" height="130px" viewBox="0 0 150 130" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <defs>
        <filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-1">
            <feOffset dx="0" dy="5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
            <feGaussianBlur stdDeviation="15" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
            <feColorMatrix values="0 0 0 0 0.729411765   0 0 0 0 0.247058824   0 0 0 0 0.341176471  0 0 0 0.543447124 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1"></feColorMatrix>
            <feMerge>
                <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
                <feMergeNode in="SourceGraphic"></feMergeNode>
            </feMerge>
        </filter>
    </defs>
    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" filter="url(#filter-1)">
        <g id="Artboard-1" transform="translate(-124.000000, -151.000000)" fill="#BA3F57">
            <g id="tr2" transform="translate(202.000000, 211.000000) scale(1, -1) translate(-202.000000, -211.000000) translate(151.000000, 171.000000)">
                <polygon id="Triangle-1" fill-opacity="0.831946332" points="23 0 44 62 0 62 "></polygon>
                <path d="M101.199219,79.2382812 L22.9960938,0 L44,62 L101.199219,79.2382812 Z" id="Triangle-1" fill-opacity="0.554376132"></path>
            </g>
        </g>
    </g>
</svg>

<svg class="svg-3" width="154px" height="139px" viewBox="0 0 154 139" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <defs>
        <filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-1">
            <feOffset dx="0" dy="5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
            <feGaussianBlur stdDeviation="15" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
            <feColorMatrix values="0 0 0 0 0.568627451   0 0 0 0 0.631372549   0 0 0 0 0.968627451  0 0 0 0.7 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1"></feColorMatrix>
            <feMerge>
                <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
                <feMergeNode in="SourceGraphic"></feMergeNode>
            </feMerge>
        </filter>
    </defs>
    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" filter="url(#filter-1)">
        <g id="Artboard-1" transform="translate(-3.000000, -50.000000)" fill="#91A1F7">
            <g id="tr3" transform="translate(30.000000, 72.000000)">
                <polygon id="Triangle-1" points="22 20 44 82 0 82 "></polygon>
                <path d="M103,0 L21.4453125,19.0859375 L44,82 L103,0 Z" id="Triangle-1" fill-opacity="0.62720788"></path>
            </g>
        </g>
    </g>
</svg>
    </div>
  </div>
</div>
<svg class="svg-3 svg-b" width="154px" height="139px" viewBox="0 0 154 139" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <defs>
        <filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-1">
            <feOffset dx="0" dy="5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
            <feGaussianBlur stdDeviation="15" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
            <feColorMatrix values="0 0 0 0 0.568627451   0 0 0 0 0.631372549   0 0 0 0 0.968627451  0 0 0 0.7 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1"></feColorMatrix>
            <feMerge>
                <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
                <feMergeNode in="SourceGraphic"></feMergeNode>
            </feMerge>
        </filter>
    </defs>
    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" filter="url(#filter-1)">
        <g id="Artboard-1" transform="translate(-3.000000, -50.000000)" fill="#91A1F7">
            <g id="tr3" transform="translate(30.000000, 72.000000)">
                <polygon id="Triangle-1" points="22 20 44 82 0 82 "></polygon>
                <path d="M103,0 L21.4453125,19.0859375 L44,82 L103,0 Z" id="Triangle-1" fill-opacity="0.62720788"></path>
            </g>
        </g>
    </g>
</svg>
<svg class="svg-2 svg-b" width="150px" height="130px" viewBox="0 0 150 130" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <defs>
        <filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="filter-1">
            <feOffset dx="0" dy="5" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
            <feGaussianBlur stdDeviation="15" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
            <feColorMatrix values="0 0 0 0 0.729411765   0 0 0 0 0.247058824   0 0 0 0 0.341176471  0 0 0 0.543447124 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1"></feColorMatrix>
            <feMerge>
                <feMergeNode in="shadowMatrixOuter1"></feMergeNode>
                <feMergeNode in="SourceGraphic"></feMergeNode>
            </feMerge>
        </filter>
    </defs>
    <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" filter="url(#filter-1)">
        <g id="Artboard-1" transform="translate(-124.000000, -151.000000)" fill="#BA3F57">
            <g id="tr2" transform="translate(202.000000, 211.000000) scale(1, -1) translate(-202.000000, -211.000000) translate(151.000000, 171.000000)">
                <polygon id="Triangle-1" fill-opacity="0.831946332" points="23 0 44 62 0 62 "></polygon>
                <path d="M101.199219,79.2382812 L22.9960938,0 L44,62 L101.199219,79.2382812 Z" id="Triangle-1" fill-opacity="0.554376132"></path>
            </g>
        </g>
    </g>
</svg>
              
            
!

CSS

              
                @import "compass"
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,700,300)

=keyframes($animation-name)
  @-webkit-keyframes #{$animation-name}
    @content
  @-moz-keyframes #{$animation-name}
    @content
  @keyframes #{$animation-name}
    @content

body
  background-color: #0F142A
  height: 100vh
  overflow: hidden
  text-align: center
  font-family: 'Yanone Kaffeesatz', sans-serif
.table
  display: table
  width: 100%
  height: 100%
.table-cell
  display: table-cell
  vertical-align: middle
.container
  position: relative
  width: 300px
  max-width: 100%
  margin: 0px auto
  background-color: #161C33
.card
  overflow: hidden
  .btn
    background-color: #0F142A
    display: block
    text-decoration: none
    position: relative
    cursor: pointer
    width: 55%
    margin: 80px auto
    font-size: 30px
    color: #44B19B
    line-height: 50px
    height: 50px
    border: 3px solid rgba(79, 117, 128, 0.5)
    z-index: 1
    @include transition(all 0.3s)
    &:hover
      border-radius: 10px
      box-shadow: 0 0 14px 1px #A74C64, 0 0 70px 10px #91A1F7, 0 0 126px 23px #45B19B

svg
  z-index: 2
    
.svg-1, .svg-2, .svg-3
  position: absolute
  top: 20px
  left: -135px
  @include transition(all 0.3s)
.svg-1
  @include animation(fly-1 10s infinite ease-in-out)  
.svg-2
  top: 80px
  left: 308px
  @include animation(fly-2 7s infinite ease-in-out)  
.svg-3
  top: 160px
  left: 100px
  @include animation(fly-3 5s alternate infinite ease-in-out)
    
.svg-b
  opacity: 0.2
  @include scale( 5.1 )
  top: -50px
  left: 30px
  @include animation(fly-4 10s alternate infinite ease-in-out)
.svg-2.svg-b
  top: auto
  bottom: -124px
  left: auto
  right: -24px
  
+keyframes(fly-1)
  50%
    @include rotate(12deg)
+keyframes(fly-2)
  50%
    @include rotate(-10deg)
+keyframes(fly-3)
  50%
    @include rotate(4deg)
+keyframes(fly-4)
  50%
    @include scale(5.2)


              
            
!

JS

              
                
              
            
!
999px

Console