Using Hype Reactive Content to set (background)images

Yeah, this is possible since v1.1.6 element or as a shorthand $elm, see this update:

The code defining the execution context can be found on line 198 on the unminifed version. As you can see there the context consistent of all command found in hypeDocument plus element and $elm. Furthermore, the proxy resolves unknown variables to the scope (in this instance that is customData). Only keys found in window or the context can escape the proxy trap for unknown keys. By the way, the context is enforced using a with statement … and if you think this is a wild approach it is actually how VUE does it as well.

2 Likes