Hype Style Caster
What is Hype Style Caster?
Hype Style Caster is a tool that allows you to dynamically style elements on your web page. This is especially useful for when you want to change the appearance of an element based on user interaction or other conditions on the page.
With Hype Style Caster, you can easily change the style of any element on your page, without having to write any CSS code in Head HTML. All you need to do is add a data-style-declaration
attribute to the element, and specify the style you want to apply in that attribute. Hype Style Caster will then take care of applying the style to the element.
Why use Hype Style Caster over regular CSS?
Often you can do the same with just in-lining some CSS in your Head HTML! That said, there are some benefits to using Hype Style Caster. Your style’s definition is included in your Hype documents and doesn’t require anything to be declared in Head HTML. The dynamic benefits come into play when combining it with Hype Action Events or Hype Data Magic. They also might be useful in cases where styles should change depending on custom data.