Blink

Documentation updated on February 7th.

Description

Blink is a UI feedback utility. It creates a visual highlight changing background-color from yellow to white.

Demo

This is a text that you can blink.

Code snippet

Any HTMLElement, for example:

<p id="example">The element you want to blink.</p>

Instance component

This is the way to create a Blink:

var foo = $("#example").blink();

Configuration

Any widget can be configurated through parameters written in JSON. Here is an example:

var foo = $("#example").blink({
	"bar": foobar,
	"baz": quux
});

You can see the complete list of parameters in Blink API documentation.

Events

The main widget's actions trigger custom events, which you can suscribe to execute any action.

Here is an example of the ready event, triggered when component ends its load process:

foo.on("ready", function () {
	var that = this; // Where "this" is the returned object of component
});

You can see the complete list of events in Blink API documentation.

Learn more about events on our step-by-step guide.

Keep reading

Find more in Blink API documentation. There you'll find the most complete info of this component and others.

Troubleshooting

You can easily report issues through our issue tracker, or simply tweet to @chicoui.