fgnass / spin.js

A spinning activity indicator
http://spin.js.org
MIT License
9.3k stars 1.02k forks source link

Append div (with absolute position) and spin it #248

Closed nicolomonili closed 10 years ago

nicolomonili commented 10 years ago

Description of problem here : http://stackoverflow.com/questions/25665335/spin-js-append-div-with-absolute-position-and-spin-it

Jsfiddle here : http://jsfiddle.net/nicolomonili/5y0tkt2s/

fgnass commented 10 years ago

The .append() method does not return the appended node but leaves the chain as it is. Hence the spinner is added to #test in your example. You can fix this by using .appendTo() instead: http://jsfiddle.net/x84ycuuu/

nicolomonili commented 10 years ago

the spin is not added to test div. i must dynamically create a new div and spin it !

fgnass commented 10 years ago

Did you look at http://jsfiddle.net/x84ycuuu/? It does exactly that.

nicolomonili commented 10 years ago

yes i look , but i solved in this way : http://jsfiddle.net/5y0tkt2s/1/

thanks :D