|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
moving fractions of pixels
anyone know what is the smallest amount of pixels you can do in javascript.
I used to believe the pixel was the smallest, then I saw 40.5 etc, then 40.1 etc I realize it probably can't display it as 0.1 of a pixel but what about retaining the value, so it you were animating and like every step you added 0.1, after 10 steps should it move 1 pixel? I am not seeing that. thanks |
|
#2
|
|||
|
|||
|
RE: moving fractions of pixels
I'm no authority on JavaScript, but I'd say that you can make actual movements for whole pixels only. Because CSS is flexible enough, though, you can say 32.3px and it will get rounded to 32.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > moving fractions of pixels |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|