var paper = Raphael("paper", 500, 500);
var bar = paper.path(
"M 100, 500" +
"L 200, 450" +
"L 300, 500" +
"Z"
).animate({
path:
"M 100, 350" +
"L 200, 300" +
"L 300, 350" +
"L 300, 500" +
"L 100, 500" +
"Z"
}, 1000).attr("fill", "green").attr("stroke", "none");
var bar = paper.path(
"M 100, 500" +
"L 200, 450" +
"L 300, 500" +
"L 300, 500" + // эта строка
"Z"
)