Standard usage with default settings
CodeApply transition
Code
$('#example2').flashMe({
transition: 500
});
Flash the background too!?
Code
$('#example3').flashMe({
backgroundColors: "surprise"
});
Specify the interval
Code
$('#example4').flashMe({
interval: 100
});
Specify the colors to flash with. (same applies to backgroundColors)
Code
$('#example4').flashMe({
colors: ["#43fa4e", "#2afdec", "#4ecdae"]
});
Create something truly awesome
| Option | Default | Values |
|---|---|---|
| colors | "surprise" |
false (don't flash the color attribute) array of colors (["#43fa4e", "#2afdec", "#4ecdae"]) |
| backgroundColors | "surprise" |
false (don't flash the background-color attribute) array of colors (["#43fa4e", "#2afdec", "#4ecdae"]) |
| interval | 1000 | interval between flashes in milliseconds |
| transition | false | transition speed in milliseconds |