// track_path.forEach( function(elem, i){ // elem.animate({stroke: 'rgb(0,0,0)'}, 50, mina.easein); // }); //}; //track_path.hover(hoverRed, hoverBlack) //track_0_1.hover( // function() { // track_0_1.animate({stroke: 'rgb(255,0,0)', strokeWidth: '10.0'}, 50, mina.easein); // }, // function() { // track_0_1.animate({stroke: 'rgb(0,0,0)', strokeWidth: '4.0'}, 50, mina.easein); // } //); s.attr({ width: 1000, height: 1000 }); //Snap.load("mascot.svg", function (f) { // Note that we traversre and change attr before SVG // is even added to the page // f.selectAll("polygon[fill='#09B39C']").attr({fill: "#bada55"}); // g = f.select("g"); // s.append(g); // Making croc draggable. Go ahead drag it around! // g.drag(); // Obviously drag could take event handlers too // Looks like our croc is made from more than one polygon... //}); //s.text(200, 100, "Snap.svg"); //Provide an array of strings (or arrays), to generate tspans //var t = s.text(200, 120, ["Snap", ".", "svg"]); //t.selectAll("tspan:nth-child(3)").attr({ // fill: "#900", // "font-size": "20px" //});