cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              <a class="mblogo animate" href="https://marsbased.com/" target="_blank">
  <h1>
    <strong>mars</strong>
    based
  </h1>
</a>
            
          
!
            
              $mblogo-size: 400px
$mblogo-background: black
$mblogo-text: white
$mblogo-font-family: "Helvetica Neue",sans-serif
$mblogo-font-family-condensed: "HelveticaNeue-CondensedBold", "Helvetica Neue",sans-serif

=mblogo-point($size)
  width: $size
  height: $size
  border-radius: 100%
  content: ""
  background-color: $mblogo-background
  display: block
  position: absolute
    
.mblogo
  background-color: $mblogo-background
  width: $mblogo-size
  height: $mblogo-size
  font-size: $mblogo-size
  border-radius: 100%
  position: relative
  vertical-align: middle
  display: block
  
  &:after
    +mblogo-point(7.5%)
    top: 5.6%
    right: 0
  
  &:before
    +mblogo-point(10%)
    top: 35.6%
    right: -22.5%
  
  
  h1
    font-family: $mblogo-font-family
    top: 50%
    margin-top: -21%
    margin-left: 9%
    position: absolute
    font-size: 20%
    color: $mblogo-text
    font-weight: normal
    line-height: 1em
    text-align: center
    display: inline  
    
    strong
      font-family: $mblogo-font-family-condensed
      font-size: 160%
      margin-left: -10%
      font-weight: 500

//////////////////// ANIMATION

@keyframes mblogo-point
  0%
    transform: scale(0.1)
    opacity: 0
  
  80%
    transform: scale(1.5)
    opacity: 100
   
  100%
    transform: scale(1)
    opacity: 100
  
@keyframes mblogo-text
  0%
    transform: translateX(-20px)
    opacity: 0
  
  50%
    transform: translateX(-20px)
    opacity: 0
   
  100%
    transform: translateX(0)
    opacity: 100
  
.animate
  &.mblogo
    animation: mblogo-point 1.5s ease-out
    
    &:after
      animation: mblogo-point 1s ease-in
    
    &:before
      animation: mblogo-point 1s ease-in
    
    h1
      animation: mblogo-text 3s ease-out
      
      strong
        animation: mblogo-text 3s ease-out
      
    

//////////////////// LAYOUT

html
  display: table
  height: 100%
  width: 100%
  
body
  display: table-cell
  vertical-align: middle
  background-color: #fff
  
.mblogo
  margin: auto
  

            
          
!
999px
Loading ..................

Console