I have a rails view with this html:
<body onload='<%= visual_effect(:appear, :main_counter, :duration=>3.0) %>'>
<div class="counter" id="main_counter">some content</div>
</body>
and a stylesheet:
.counter{
opacity:0;
}
The effect works as expected but when its done the div's text disappears, I am guessing the opacity is going back to 0. How can I make it stay with full opacity?