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

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.

HTML

              
                // https://www.freepik.com/premium-vector/infographic-arrow-design-with-8-options-steps-infographics-business-concept_10510578.htm#&position=0&from_view=detail#&position=0&from_view=detail#position=0
.row
  .item
    .back
      h1="1"
    .front
      i.material-icons="biotech"
      h2="research"
      p="Lorem impsum dolor sit amet, consecteur adispicing elt, sed."

  .item
    .back
      h1="2"
    .front
      .material-icons="tips_and_updates"
      h2="idea"
      p="Lorem impsum dolor sit amet, consecteur adispicing elt, sed."

  .item
    .back
      h1="3"
    .front
      .material-icons="question_mark"
      h2="strategy"
      p="Lorem impsum dolor sit amet, consecteur adispicing elt, sed."

  .item
    .back
      h1="4"
    .front
      .material-icons="rocket"
      h2="aspiration"
      p="Lorem impsum dolor sit amet, consecteur adispicing elt, sed."
    
.row
    
  .item
    .back
      h1="5"
    .front
      .material-icons="wifi_protected_setup"
      h2="process"
      p="Lorem impsum dolor sit amet, consecteur adispicing elt, sed."

  .item
    .back
      h1="6"
    .front
      .material-icons="timer"
      h2="time"
      p="Lorem impsum dolor sit amet, consecteur adispicing elt, sed."

  .item
    .back
      h1="7"
    .front
      .material-icons="key"
      h2="experience"
      p="Lorem impsum dolor sit amet, consecteur adispicing elt, sed."

  .item
    .back
      h1="8"
    .front
      .material-icons="sports_score"
      h2="goal"
      p="Lorem impsum dolor sit amet, consecteur adispicing elt, sed."

              
            
!

CSS

              
                // https://coolors.co/82df00-00e346-00cda8-45bcc5-5ba6ce-5786b8-586a97-4c4e62

$color-1: #82df00
$color-2: #00e346
$color-3: #00cda8
$color-4: #45bcc5
$color-5: #5ba6ce
$color-6: #5786b8
$color-7: #586a97
$color-8: #4c4e62

$white: #F8FAFB
$dark: #4f4f4f

$number-text: 'Spartan', sans-serif

body
  font-family: $number-text
  background-color: $white
  color: $dark
  display: flex
  flex-direction: column
  align-items: center
  justify-content: center
  margin: 0
  height: 100vh
  
.row
  display: flex
  flex-direction: row
  margin-bottom: 20px
  
.item
  margin-right: 10px
  overflow: hidden
  height: 200px
  width: 220px
  position: relative
  display: flex
  align-items: end
  justify-content: end
  .back
    position: absolute
    z-index: -1
    width: 100%
    height: 100%
    top: 0
    left: 0
    text-align: center
    h1
      font-size: 150px
      margin: 0
      margin-right: 30px
      
  .front
    width: 70%
    left: 60%
    text-align: center
    h2
      margin: 0
      font-family: helvetica
      font-weight: 400
      font-size: 14px
      text-transform: uppercase
    p
      font-size: 10px
      font-family: helvetica
      font-weight: 200px
      padding: 0px 8px 0px 16px
      text-align: left
     
h1
  &::after
    content: ""
    display: block
    position: absolute
    top: 50%
    left: 50%
    background-color: rgba(0,0,0,0.7)
    width: 50px
    height: 50px
    box-shadow: 1px 1px 50px 25px rgba(0,0,0,0.9)
    transform: rotateZ(45deg) translate(15px)
    transition: all 0.3s ease-in
      
.item
  &::after
    content: ""
    position: absolute
    top: 0
    left: 0
    width: 300px
    height: 300px
    border-left: 2px solid white
    background-image: radial-gradient(circle at left, #ccc 0%, $white 30%)
    z-index: -1
    transform: rotateZ(45deg) translate(25%)
  
.item
  .back
    h1
      transform: translateX(0px)
      transition: transform 0.3s ease-in
  &:hover
    .back
      h1
        transform: translate(-20px, -7px)
        &::after
          transform: rotateZ(45deg) translate(30px)
  
.row
  .item:nth-child(1)
    .back
      h1
        color: $color-1

  .item:nth-child(2)
    .back
      h1
        color: $color-2

  .item:nth-child(3)
    .back
      h1
        color: $color-3

  .item:nth-child(4)
    .back
      h1
        color: $color-4

.row:nth-child(2)
  .item:nth-child(1)
    .back
      h1
        color: $color-5

  .item:nth-child(2)
    .back
      h1
        color: $color-6

  .item:nth-child(3)
    .back
      h1
        color: $color-7

  .item:nth-child(4)
    .back
      h1
        color: $color-8
              
            
!

JS

              
                
              
            
!
999px

Console