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.

            
              %body
 / font - HeyDings - SIL Open Font License - http://www.heydonworks.com/article/a-free-icon-web-font -
 / haml generating svg icon animations by dehash.com released under MIT License https://opensource.org/licenses/MIT
 -$letterA = "M68.35 26.15 L68.35 76.95 L29.3 76.95 L29.3 26.15 L68.35 26.15 M48.85 82.8 Q51.25 82.8 53 84.5 Q54.7 86.25 54.7 88.65 Q54.7 91.1 53 92.8 Q51.25 94.55 48.85 94.55 Q46.4 94.55 44.7 92.8 Q42.95 91.1 42.95 88.65 Q42.95 86.25 44.7 84.5 Q46.4 82.8 48.85 82.8 M75.05 19.5 Q73.95 18.35 72.25 18.35 L25.4 18.35 Q23.75 18.35 22.6 19.5 Q21.5 20.6 21.5 22.25 L21.5 96.5 Q21.5 98.15 22.6 99.25 Q23.75 100.4 25.4 100.4 L72.25 100.4 Q73.95 100.4 75.05 99.25 Q76.15 98.15 76.15 96.5 L76.15 22.25 Q76.15 20.6 75.05 19.5"
 -$letterB = "M27.85 19.25 Q21.9 22.75 18.1 28 Q14.35 33.2 13.05 39.35 Q11.7 45.5 12.3 52.2 Q12.9 58.9 15.45 65.65 Q17.1 70.1 19.65 74.6 Q22.25 79.2 26 84 Q31.85 91.5 39.5 95.85 Q47.15 100.2 55.6 100.6 Q64.05 101 72.35 96.4 Q77.35 94.05 79.1 91.2 L63 67.5 Q57.7 69.65 54.6 72.45 Q51.45 75.3 48.65 80.65 Q28.6 69.8 29.5 47.65 Q35.75 48.05 39.9 46.65 Q44.05 45.2 48.15 41.8 Q42.85 30.2 35.65 15.9 Q32.4 16.6 27.85 19.25 M55.25 36.5 L44.9 14.35 L40.25 14.65 L52.15 39.55 L55.25 36.5 M85.55 84.85 L71.5 64.75 L67.3 66 L82.9 88.75 L85.55 84.85"
 -$letterC = "M35.35 72.45 L35.35 84.2 L15.65 84.2 L15.65 72.45 L35.35 72.45 M58.7 42.5 L38.85 42.5 L38.85 30.75 L58.7 30.75 L58.7 42.5 M82.25 84.2 L62.5 84.2 L62.5 72.45 L82.25 72.45 L82.25 84.2 M90.35 93.95 L87 87.4 L87 69.55 Q87 68.85 86.55 68.35 Q86.15 67.85 85.45 67.85 L59.4 67.85 Q58.7 67.85 58.2 68.35 Q57.7 68.85 57.7 69.55 L57.7 78.3 L51.75 78.3 L51.75 58.7 L66.8 58.7 Q69.9 58.7 67.85 54.5 Q67.6 53.8 66.7 52.25 L63.5 45.7 L63.5 27.85 Q63.5 27.15 63 26.65 Q62.5 26.15 61.8 26.15 L35.75 26.15 Q35.05 26.15 34.6 26.65 Q34.2 27.15 34.2 27.85 L34.2 45.7 L30.85 52.25 Q30.75 52.45 30.55 52.85 Q30.1 53.9 29.85 54.4 Q29.6 54.9 29.25 55.75 Q28.9 56.65 28.9 57.1 Q28.9 57.5 29.05 57.95 Q29.2 58.4 29.75 58.6 Q30.25 58.8 31.15 58.7 L45.9 58.7 L45.9 78.3 L40.15 78.3 L40.15 69.55 Q40.15 68.85 39.7 68.35 Q39.25 67.85 38.55 67.85 L12.5 67.85 Q11.8 67.85 11.35 68.35 Q10.85 68.85 10.85 69.55 L10.85 87.4 L7.6 93.95 Q7.5 94.15 7.25 94.65 Q6.75 95.6 6.5 96.15 Q6.25 96.7 5.9 97.5 Q5.55 98.35 5.55 98.8 Q5.55 99.2 5.7 99.7 Q5.85 100.2 6.4 100.35 Q6.95 100.5 7.8 100.5 L43.45 100.5 Q46.7 100.5 44.65 96.2 Q44.25 95.5 43.45 93.95 L40.15 87.4 L40.15 84.2 L57.7 84.2 L57.7 87.4 L54.5 93.95 Q54.4 94.15 54.1 94.65 Q53.6 95.6 53.35 96.15 Q53.15 96.7 52.8 97.5 Q52.45 98.35 52.45 98.8 Q52.45 99.2 52.6 99.7 Q52.75 100.2 53.25 100.35 Q53.8 100.5 54.7 100.5 L90.35 100.5 Q93.55 100.5 91.5 96.2 Q91.1 95.5 90.35 93.95"
 -$letters = $letterA, $letterB, $letterC
 .container 
 - $cnt = 0
 - $letters.each do |letter|
 - $cnt = $cnt + 1
  .svgletter
   %svg{:width => "240px", :height => "240px", :class=>"svgcon", :viewBox=> "0 0 120 120", :xmlns=> "http://www.w3.org/2000/svg", :version=> "1.1"}
    %g{:fill=>"none", :'stroke-width'=>"2", :'stroke-linecap'=>"butt"}
     %path{:id=>"p" + $cnt.to_s, :d=> letter, :stroke=>"#333", :pathLength=>"6"}
      %animate{:attributeName=>"stroke-dasharray", :values=>"0,290;290,0", :begin=>$cnt.to_s + "s", :dur=>"3s"}

            
          
!
            
              @import "compass/css3";

g{

  fill: #333333;
  animation: toRed 5s forwards;
  animation-delay: 1s;

}

path {
 stroke: #fff;
  // shadow code found here   https://codepen.io/awesomephant/pen/AKogj
 -webkit-svg-shadow: 12px 12px 14px darken(#000, 10);
}

body {
  background-color: #d0d0d0;
  margin: 70px;
}

.svgletter{
     display: inline-block;

} 

@keyframes toRed{
  to{fill:teal;} 
}

            
          
!
            
              // just a little test of haml generating svg icon animations styled via css 
// svg displays elsewhere but svg animations only on  webkit and red css fade in on webkit + ff too
// got the svg animation idea from https://codepen.io/Mrshcom/pen/EDnAp + https://codepen.io/joni/pen/trspc
            
          
!
999px
Loading ..................

Console