This provides a default renderer implementation based on CSS background positions. Most renderers should leverage lemon.lime instead of lemon.lime.impl. This renderer leverages impl so it can be provided as a default renderer when creating a sprite via lemon.lime. It is a design goal of this library to support state transition keys exclusively via the lemon.lime namespace, hence the CssRenderer type accepting transition-x style functions at creation time.
The css renderer supports configuration via a lemon.lime.css/renderer key. This configuration map accepts an :id field indicating a dom id to be replaced. An :append field may be provided to control how the sprite is added to the dom. The :append key must be a function of 3 arguments. It will receive the sprite element, a target identified by :id if available, and the given :id.
This provides a default renderer implementation based on CSS background positions. Most renderers should leverage lemon.lime instead of lemon.lime.impl. This renderer leverages impl so it can be provided as a default renderer when creating a sprite via lemon.lime. It is a design goal of this library to support state transition keys exclusively via the lemon.lime namespace, hence the CssRenderer type accepting transition-x style functions at creation time. The css renderer supports configuration via a lemon.lime.css/renderer key. This configuration map accepts an :id field indicating a dom id to be replaced. An :append field may be provided to control how the sprite is added to the dom. The :append key must be a function of 3 arguments. It will receive the sprite element, a target identified by :id if available, and the given :id.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close