javascript - Apply spin.js spinner to target and NOT its parent -
When you are in the position of spin.js spinner, then you have the option. I think these options say that Keeps the parents in line with the goals I do not want this.
But I want the spinner to be in the position inside the goal div and inside the center.
Set up the original:
var opts = {Lines: 13, // The length of the drawing line: 5, // Length of each line width: 2, // line thickness radius: 5, // radius of the inner circle circle: 1, // rotate the corner rounding (0..1): 58, // rotation offset direction: 1, 1 1: clockwise, - 1: The color of the counterclock: '#fff', // #rgb or #rrggbb or color speed array: 0.9, // mark per second: 100, // shadow shadows: false, // what is the one Shadow hwaccel render is: Addiction, // hardware acceleration class is to use name: 'spinner', // class to assign spinner jendex: 2 e9, // z-index (up to 2000000000000 default) Top: '50% ', // Top position despite parent: '50% '// position relative to left parent}; // show spinner instead of icon var target = document.getElementById ('followdiv'); Word spinner = new spinner (opt) Spin (target); $ (Target) .data ('spinner', spinner);
Thanks, any thoughts?
#followdiv {/ * ... * / status: relative; }
It says All the elements posted in me will be given a relatively small space .
Comments
Post a Comment