Heartcode CanvasLoader is a lightweight JavaScript UI library, which uses the HTML canvas element to draw and animate circular preloaders. The library is currently in beta, some minor changes and improvements might be done to it in the near future.
Added support for high-ppi (eg. retina) displays.
The devicePixelRatio value is used to scale the canvas. The context is recreated and rescaled whenever the canvas dimensions are updated.
High-ppi support is only for the canvas - not the VML engine.
Added support for high-ppi (eg. retina) displays. The devicePixelRatio value is used to scale the canvas. The context is recreated and rescaled whenever the canvas dimensions are updated. High-ppi support is only for the canvas - not the VML engine.