css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              %a.logo{:href => "/"}
  %svg.polyonlion{:version => "1.1", :viewBox => "13 103.7 586 580", :xmlns => "http://www.w3.org/2000/svg"}
    %defs
      %filter#polycleaner{"color-interpolation-filters" => "sRGB"}
        %feComponentTransfer
          %feFuncA{:type => "table", :tableValues => "0 0.5 1 1"}
    %g{:filter => "url(#polycleaner)"}
      %g#polyonlion-mouth
        %polygon{:fill => "#231F20", :points => "306,524.3 388.3,551.9 311.6,502 \t\t"}
        %polygon{:fill => "#333333", :points => "223.7,551.9 306,524.3 300.4,501.8 \t\t"}
      %g#polyonlion-nose
        %polygon{:fill => "#333333", :points => "359.6,420.7 306.2,448.6 354.7,448.6 \t\t"}
        %polygon{:fill => "#454545", :points => "306,413.9 306.2,448.6 359.6,420.7 \t\t"}
        %polygon{:fill => "#707070", :points => "306,413.9 252.4,420.7 306.2,448.6 \t\t"}
        %polygon{:fill => "#454545", :points => "252.4,420.7 257.5,448.6 306.2,448.6 \t\t"}
        %polygon{:fill => "#333333", :points => "257.5,448.6 306.4,484.9 306.2,448.6 \t\t"}
        %polygon{:fill => "#333333", :points => "306.4,484.9 306,524.3 318.2,476.1 \t\t"}
        %polygon{:fill => "#231F20", :points => "306.2,448.6 306.4,484.9 354.7,448.6 \t\t"}
        %polygon{:fill => "#231F20", :points => "293.8,475.5 306,524.3 306.4,484.9 \t\t"}
      %g#polyonlion-eye--left
        %polygon{:fill => "#454545", :points => "211.3,319.9 192.4,325.5 228.4,339 261.2,326.2 \t\t"}
        %polygon{:fill => "#333333", :points => "261.2,326.2 228.4,339 248.7,355.1 \t\t"}
        %polygon{:fill => "#231F20", :points => "192.4,325.5 202.7,353.9 248.7,355.1 228.4,339 \t\t"}
        %polygon{:fill => "#231F20", :points => "248.7,355.1 259.2,377.6 261.2,326.2 \t\t"}
      %g#polyonlion-eye--right
        %polygon{:fill => "#454545", :points => "350.8,326.2 363,355.1 383.6,339 366,338.7 \t\t"}
        %polygon{:fill => "#333333", :points => "350.8,326.2 352.8,377.6 363,355.1 \t\t"}
        %polygon{:fill => "#333333", :points => "400.7,319.9 350.8,326.2 366,338.7 383.6,339 419.6,325.5 \n"}
        %polygon{:fill => "#231F20", :points => "363,355.1 383.6,339 419.6,325.5 409.3,353.9 \t\t"}
      %g#polyonlion-face
        %polygon{:fill => "#CCCCCC", :points => "490.1,341.9 409.3,353.9 425.5,411.7 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "419.6,325.5 409.3,353.9 490.1,341.9 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "415.4,278.3 400.7,319.9 419.6,325.5 490.1,341.9 \t\t"}
        %polygon{:fill => "#BFBFBF", :points => "451.4,238.6 415.4,278.3 490.1,341.9 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "451.4,238.6 353.7,279.5 415.4,278.3 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "415.4,278.3 353.7,279.5 400.7,319.9 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "306,219.3 353.7,279.5 451.4,238.6 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "306,219.3 160.6,238.6 258,279.5 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "306,219.3 258,279.5 306,296.6 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "306,219.3 306,296.6 353.7,279.5 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "353.7,279.5 306,296.6 350.8,326.2 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "353.7,279.5 350.8,326.2 400.7,319.9 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "350.8,326.2 306,382.3 352.8,377.6 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "261.2,326.2 306,382.3 350.8,326.2 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "194.6,278.3 211.3,319.9 258,279.5 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "258,279.5 211.3,319.9 261.2,326.2 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "194.6,278.3 122.2,341.9 192.4,325.5 211.3,319.9 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "160.6,238.6 122.2,341.9 194.6,278.3 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "160.6,238.6 194.6,278.3 258,279.5 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "202.7,353.9 186.3,411.7 259.2,377.6 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "259.2,377.6 186.3,411.7 252.4,420.7 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "261.2,326.2 259.2,377.6 306,382.3 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "409.3,353.9 352.8,377.6 425.5,411.7 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "352.8,377.6 359.6,420.7 425.5,411.7 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "352.8,377.6 306,382.3 359.6,420.7 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "306,382.3 306,413.9 359.6,420.7 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "306,382.3 252.4,420.7 306,413.9 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "259.2,377.6 252.4,420.7 306,382.3 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "306,296.6 261.2,326.2 350.8,326.2 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "258,279.5 261.2,326.2 306,296.6 \t\t"}
        %polygon{:fill => "#BFBFBF", :points => "490.1,341.9 425.5,411.7 439.7,485.8 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "257.5,448.6 229.4,502.2 293.8,475.5 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "257.5,448.6 172.6,485.8 229.4,502.2 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "354.7,448.6 382.6,502.2 439.7,485.8 \t\t"}
        %polygon{:fill => "#BFBFBF", :points => "439.7,485.8 382.6,502.2 388.3,551.9 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "311.6,502 388.3,551.9 382.6,502.2 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "318.2,476.1 311.6,502 382.6,502.2 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "354.7,448.6 318.2,476.1 382.6,502.2 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "306,524.3 306.2,566.9 388.3,551.9 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "388.3,551.9 306.2,566.9 361.2,605.5 \t\t"}
        %polygon{:fill => "#BFBFBF", :points => "306.2,566.9 250.9,605.5 361.2,605.5 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "223.7,551.9 250.9,605.5 306.2,566.9 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "306,524.3 223.7,551.9 306.2,566.9 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "300.4,501.8 229.4,502.2 223.7,551.9 \t\t"}
        %polygon{:fill => "#BFBFBF", :points => "293.8,475.5 229.4,502.2 300.4,501.8 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "172.6,485.8 223.7,551.9 229.4,502.2 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "186.3,411.7 172.6,485.8 257.5,448.6 \t\t"}
        %polygon{:fill => "#BFBFBF", :points => "122.2,341.9 172.6,485.8 186.3,411.7 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "425.5,411.7 354.7,448.6 439.7,485.8 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "186.3,411.7 257.5,448.6 252.4,420.7 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "122.2,341.9 186.3,411.7 202.7,353.9 \t\t"}
        %polygon{:fill => "#E4E4E4", :points => "369.6,191.6 306,219.3 451.4,238.6 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "242.4,191.6 160.6,238.6 306,219.3 \t\t"}
        %polygon{:fill => "#CCCCCC", :points => "192.4,325.5 122.2,341.9 202.7,353.9 \t\t"}
        %polygon{:fill => "#BFBFBF", :points => "425.5,411.7 359.6,420.7 354.7,448.6 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "409.3,353.9 363,355.1 352.8,377.6 \t\t"}
        %polygon{:fill => "#D9D9D9", :points => "259.2,377.6 248.7,355.1 202.7,353.9 \t\t"}
      %g#polyonlion-mane
        %polygon{:fill => "#F06F28", :points => "369.6,191.6 242.4,191.6 306,219.3 \t\t"}
        %polygon{:fill => "#F79333", :points => "242.4,191.6 306,57.7 369.6,191.6 \t\t"}
        %polygon{:fill => "#F06F28", :points => "160,88.5 306,57.7 242.4,191.6 \t\t"}
        %polygon{:fill => "#FAB03F", :points => "160.6,238.6 242.4,191.6 160,88.5 \t\t"}
        %polygon{:fill => "#F79333", :points => "60.2,184.7 160.6,238.6 160,88.5 \t\t"}
        %polygon{:fill => "#FAB03F", :points => "60.2,184.7 122.2,341.9 160.6,238.6 \t\t"}
        %polygon{:fill => "#F06F28", :points => "60.2,184.7 13,341.9 122.2,341.9 \t\t"}
        %polygon{:fill => "#F1562F", :points => "13,341.9 49.4,503.7 122.2,341.9 \t\t"}
        %polygon{:fill => "#F79333", :points => "122.2,341.9 49.4,503.7 172.6,485.8 \t\t"}
        %polygon{:fill => "#FAB03F", :points => "172.6,485.8 49.4,503.7 223.7,551.9 \t\t"}
        %polygon{:fill => "#F06F28", :points => "49.4,503.7 116.5,620 223.7,551.9 \t\t"}
        %polygon{:fill => "#F1562F", :points => "223.7,551.9 116.5,620 250.9,605.5 \t\t"}
        %polygon{:fill => "#FFC149", :points => "250.9,605.5 116.5,620 203.9,694.2 \t\t"}
        %polygon{:fill => "#FAB03F", :points => "250.9,605.5 203.9,694.2 306,734.3 \t\t"}
        %polygon{:fill => "#F06F28", :points => "361.2,605.5 250.9,605.5 306,734.3 \t\t"}
        %polygon{:fill => "#F79333", :points => "361.2,605.5 306,734.3 408.3,694.2 \t\t"}
        %polygon{:fill => "#CB2E20", :points => "361.2,605.5 408.3,694.2 495.5,620 \t\t"}
        %polygon{:fill => "#F06F28", :points => "388.3,551.9 361.2,605.5 495.5,620 \t\t"}
        %polygon{:fill => "#FAB03F", :points => "562.6,503.7 388.3,551.9 495.5,620 \t\t"}
        %polygon{:fill => "#F06F28", :points => "439.7,485.8 388.3,551.9 562.6,503.7 \t\t"}
        %polygon{:fill => "#F1562F", :points => "490.1,341.9 439.7,485.8 562.6,503.7 \t\t"}
        %polygon{:fill => "#CB2E20", :points => "599,341.9 490.1,341.9 562.6,503.7 \t\t"}
        %polygon{:fill => "#F1562F", :points => "551.8,184.7 490.1,341.9 599,341.9 \t\t"}
        %polygon{:fill => "#F79333", :points => "451.4,238.6 551.8,184.7 490.1,341.9 \t\t"}
        %polygon{:fill => "#FAB03F", :points => "455.8,88.8 451.4,238.6 551.8,184.7 \t\t"}
        %polygon{:fill => "#F06F28", :points => "455.8,88.8 369.6,191.6 451.4,238.6 \t\t"}
        %polygon{:fill => "#F1562F", :points => "306,57.7 369.6,191.6 455.8,88.8 \t\t"}
            
          
!
            
              @import bourbon

$polyonlion-factor: 1.125
$polyonlion-count-mane: 27
$polyonlion-count-face: 57
$polyonlion-count: $polyonlion-count-mane + $polyonlion-count-face
$polyonlion-height: 115px * $polyonlion-factor
$polyonlion-width: 98px * $polyonlion-factor
$polyonlion-stagger: 0.025s
$polyonlion-config: (name: polyonlion, duration: 100ms, timing: linear, iteration: 1, fill-mode: forwards)

@function sh-setup($config)
  @return zip(map-values($config)...)

+keyframes(polyonlion)
  to
    +transform(scale(1))
    opacity: 1

html, body
  height: 100%
body
  display: flex
  flex-direction: column
  align-items: center
  justify-content: center
  width: 100%
  background: #151C2A
svg
  max-width: 100%
      
.polyonlion

  > g polygon
    opacity: 0
    +transform-origin(center center)
    transition: 0.25s fill linear, 0.25s stroke linear

    .no-cssanimations &
      +transform(scale(1))
      opacity: 1

    .no-js &
      +transform(scale(0))

@for $i from 1 through $polyonlion-count
  .no-js .polyonlion > g polygon:nth-of-type(#{$i})
    +animation(sh-setup($polyonlion-config))
    +animation-delay($polyonlion-stagger * $i)

@for $i from 1 through $polyonlion-count-mane
  .polyonlion > g polygon:nth-of-type(#{$i})
    transition-delay: 0.02s * $i

@for $i from 1 through $polyonlion-count-mane
  .polyonlion:hover g#polyonlion-mane polygon:nth-of-type(#{$i})
    fill: hsl(10 * $i, 100%, 60%)

.logo
  display: block
  height: $polyonlion-height
  width: $polyonlion-width

  span
    display: inline-block
    width: 0
    height: 0
  
  .polyonlion
    height: $polyonlion-height
    max-width: 100%
    width: $polyonlion-width
            
          
!
            
              CSSPlugin.useSVGTransformAttr = false;
tmax_options = 
  delay: 0,
  repeat: 0
tmax_tl = new TimelineMax(tmax_options)
polyonlion_shapes = $('svg > g polygon')
polyonlion_stagger = 0.025
polyonlion_duration = 0.1675
polyonlion_staggerFrom = 
  scale: 0
  opacity: 0
  transformOrigin: 'center center'
polyonlion_staggerTo = 
  opacity: 1
  scale: 1
  ease: Linear.easeOut
tmax_tl.staggerFromTo polyonlion_shapes, polyonlion_duration, polyonlion_staggerFrom, polyonlion_staggerTo, polyonlion_stagger, 0
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console