
Untitled
By: a guest on
Aug 12th, 2012 | syntax:
None | size: 1.05 KB | hits: 12 | expires: Never
SVG set attribute fill not working
<set attributeName="fill" to="#AEAEAE" begin="button.mouseover" end="button.mouseout"/>
<div id="button">show svg onhover
<svg id="play" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" width="42px" height="62px" viewBox="0 0 24 32" style="enable-background:new 0 0 24 32;" xml:space="preserve" xmlns:xml="http://www.w3.org/XML/1998/namespace">
<g id="Layer_1">
</g>
<g id="play">
<polygon points="0,0 24,16 0,32 "/>
</g>
</svg>
</div>
#button {
height: 75px;
width: 275px;
font-size: 25px;
text-align: center;
background: #FF702A;
border-radius: 10px;
padding-top: 40px;
margin-top: 70px;
margin-left: 150px;
opacity: 0.7;
letter-spacing: 1px;
font-variant: small-caps;
color: #EEEEEE;
#button:hover {
opacity: 1.0;
font-size: .01em;
#play{
position: absolute;
margin-left: -90px;
margin-top: -10px;
visibility: hidden;
#play:hover {
visibility: visible;
#button { fill: #FF702A; }
#button:hover { fill: #AEAEAE; }