【JS】sth about fadeOut
I want to write a star animation ,so i test fadeOut and fadeIn ,but it doesn’t work if only use <img> tag .
function shining_stars(star) { $(".star").fadeOut(1000); }; shining_stars(".star"); <img src="img/3.jpg" />
I am wondering if the fadeOut has any problem .but i test a <p> tag ,it works.so i try a <div> tag outside ,it woks. I guess it just work for block tag .
<div class="star"><img src="img/3.jpg" /></div>
Then i test </span> tag ,it works.then ,i don’t know why ,anyone can explain ,thanks~
<p>This is a paragraph.</p> <span>This is a paragraph.</span>
————★ From Laker's blog ★
Coding and changing~
Fighting and insisting~