I am trying create nice animation during loading content using ajax. I want to use display icon during reloading div with \"Content\", however I can\'t figured out is it possibl
.loading #img_loading { position: fixed; top: 50%; left: calc(50% + 55px); display: block; }
The above will solve the half of the problem, you need to update the left dynamically with javascript.