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.

            
              .cont
  %a(href="#") :HOVER
  %svg(height="40" width="120")
    - (1..120).each do |i|
      %line(x1="#{i}" y1="0" x2="#{i}" y2="40")
 
            
          
!
            
              $c1: #035e7b
$c2: #fff
$c3: #eff1c5
$t: 0.3s
$d: $t / 121

@import url('https://fonts.googleapis.com/css?family=Signika+Negative:700')

body
  margin: 0
  background-color: $c3
  font-family: 'Signika Negative', sans-serif

.cont, .cont > a, svg
  position: absolute
  height: 40px
  width: 120px
.cont 
  top: 50vh
  left: 50vw
  margin: -20px 0 0 -60px
  a
    z-index: 2
    display: block
    line-height: 40px
    text-align: center
    text-decoration: none
    font-size: 20px
    color: $c3
    transition: all $t

    &:hover
      ~ svg > line:nth-child(odd)
        transform: scaleY(1.2)
        opacity: 0.2
      ~ svg > line:nth-child(even)
        transform: scaleY(-0.2) translateX(-1px)
        opacity: 0.2
        
      transform: scale(1.1)
      color: $c1
  

svg
  overflow: visible
  line
    stroke: $c1
    stroke-width: 1px
    transition: all $t
    transform-origin: 50% 0%
  @for $i from 1 through 121
    line:nth-child(#{$i})
      transition-delay: $i * $d
  &:hover
    line:nth-child(odd)
      transform: scaleY(1.2)
    line:nth-child(even)
      transform: scaleY(-0.2)
            
          
!
999px
Loading ..................

Console