I have this SVG element in HTML:
<g id="Group-8" transform="translate(108.800000, 0.293172)" fill="#FF056A" opacity="0.1">
Here you can see an attribute called opacity
and it's value is 0.1
Now I want to increase it's value to 0.3, 0.6, 0.9 and then again to 0.6, 0.3, 0.1. It should do this all the time.
I have used Javascript setTimeout
method but don't know how to make it do what I want :(
setTimeout(function() {
$("#Group-8-Copy-2").attr('opacity', '0.3');
}, 1000);