mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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);
|