Single CSS Block - Brief
Single CSS Block is added at end of body tag.
css(css_object, property_holder)
Above is the required parameters for creating single code block on runtime. You can give raw css object and string too, which is a valid css string, means
css({color: '#000'}, 'body');
css(style({color: '#000'}), 'body');
Both above lines are valid, Yugal will manage code accordingly.
Running this method will instantly inject generated code into body tag.
Last updated
Was this helpful?