Temporarily sets inline CSS styles on an element.
This preview temporarily changes the background and foreground colors of the targeted fragment:
up.preview('highlight', function(preview) {
preview.setStyle({
'color': 'yellow',
'background-color': 'red'
})
})
The element or selector to change.
If omitted, the targeted fragment will be changed.
One or more CSS properties with kebab-case keys.