mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
429 B
TypeScript
20 lines
429 B
TypeScript
import { Options } from "jquery.appear";
|
|
|
|
$(document).ready(() => {
|
|
// basic usage
|
|
$('#foo').appear(() => {
|
|
$('#text').text('Appeared');
|
|
});
|
|
|
|
// with options
|
|
const options: Options<string> = {
|
|
data: 'test',
|
|
one: false,
|
|
accX: 50,
|
|
accY: 100
|
|
};
|
|
$('#foo').appear<string>((element: HTMLElement, data: string) => {
|
|
$(element).text(data);
|
|
}, options);
|
|
});
|