mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-13 04:12:50 +00:00
17 lines
264 B
TypeScript
17 lines
264 B
TypeScript
import { Options } from "jquery-gray";
|
|
|
|
// basic usage
|
|
$('.images').gray();
|
|
|
|
$('.images').toggleClass('grayscale-off');
|
|
|
|
// with options
|
|
const options: Options = {
|
|
fade: true,
|
|
classes: {
|
|
fade: 'grayscale-fade'
|
|
}
|
|
};
|
|
|
|
$('.images').gray(options);
|