我找到了这个:
<%@ taglib uri="http://svgfaces.org/tags-svg" prefix="s"%>
<%@ taglib uri="http://svgfaces.org/tags-svg-animation" prefix="a"%>
<%@ taglib uri="http://svgfaces.org/tags-svg-event" prefix="e"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<s:svg width="100%" height="100%">
<!-- Rectangle to hide/show -->
<c:forTokens items="1,2,3,4,5,6,7,8,9,13,14,15" delims="," var="s">
<s:polygon x="120" y="-50" strokeWidth="1" stroke="black" fill="white" points="0,0 50,0 60,10 60,20 0,20" id="text${s}" />
</c:forTokens>
<!-- hide-button -->
<s:rect x="10" y="180" id="hide" width="100" height="20" fill="red">
<e:onclick>
<c:forTokens items="1,2,3,4,5,6,7,8,9,13,14,15" delims="," var="s">
<a:move path="M0 ${s*30+100} L 0 0" id="text${s}" dur="0.4"/>
<a:hide id="text${s}" delay="0.4" />
</c:forTokens>
</e:onclick>
</s:rect>
<s:text x="15" text="Hide" y="195"/>
<!-- show-button -->
<s:rect x="10" y="200" width="100" height="20" fill="green" id="show">
<e:onclick>
<c:forTokens items="1,2,3,4,5,6,7,8,9,13,14,15" delims="," var="s">
<a:display id="text${s}" />
<a:move path="M0 0 L 00 ${s*30+100}" id="text${s}" dur="0.4"/>
</c:forTokens>
</e:onclick>
</s:rect>
<s:text x="15" text="Show" y="215"/>
</s:svg>