5 lines
6.9 KiB
JSON

{
"id": "api/animations/AnimationFactory",
"title": "AnimationFactory",
"contents": "\n\n<article>\n <div class=\"breadcrumb-container\">\n <div class=\"breadcrumb\">\n <script type=\"application/ld+json\">\n {\n \"@context\": \"http://schema.org\",\n \"@type\": \"BreadcrumbList\",\n \"itemListElement\": [\n { \"@type\": \"ListItem\", \"position\": 1, \"item\": { \"@id\": \"https://angular.io//api\", \"name\": \"API\" } },\n { \"@type\": \"ListItem\", \"position\": 2, \"item\": { \"@id\": \"https://angular.io/api/animations\", \"name\": \"@angular/animations\" } },\n { \"@type\": \"ListItem\", \"position\": 3, \"item\": { \"@id\": \"https://angular.io/api/animations/AnimationFactory\", \"name\": \"AnimationFactory\" } }\n ]\n }\n </script>\n <a href=\"/api\">API</a> > <a href=\"api/animations\">@angular/animations</a>\n </div>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/animations/src/animation_builder.ts?message=docs(animations)%3A%20describe%20your%20change...#L66-L82\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/animations/src/animation_builder.ts#L66-L82\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n \n <header class=\"api-header\">\n <h1 id=\"animationfactory\">AnimationFactory<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/animations/AnimationFactory#animationfactory\"><i class=\"material-icons\">link</i></a></h1>\n \n <label class=\"api-type-label class\">class</label>\n \n \n \n </header>\n \n <aio-toc class=\"embedded\"></aio-toc>\n\n <div class=\"api-body\">\n \n <section class=\"short-description\">\n <p>A factory object returned from the <code><a href=\"api/animations/AnimationBuilder\" class=\"code-anchor\">AnimationBuilder</a></code>.<code>build()</code> method.</p>\n\n \n </section>\n \n \n \n <section class=\"class-overview\">\n<code-example language=\"ts\" hidecopy=\"true\">\nabstract class <a href=\"api/animations/AnimationFactory\" class=\"code-anchor\">AnimationFactory</a> {\n <a class=\"code-anchor\" href=\"api/animations/AnimationFactory#create\">abstract <span class=\"member-name\">create</span>(element: any, options?: AnimationOptions): AnimationPlayer</a>\n}\n</code-example>\n\n \n \n\n</section>\n\n\n \n\n \n \n \n\n\n\n\n\n\n\n\n\n\n\n\n<section class=\"instance-methods\">\n <h2 id=\"methods\">Methods<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/animations/AnimationFactory#methods\"><i class=\"material-icons\">link</i></a></h2>\n \n <a id=\"create\"></a>\n<table class=\"is-full-width method-table instance-method\">\n <thead><tr><th>\n <div class=\"with-github-links\">\n <h3 id=\"create\">\n create()\n \n <a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"api/animations/AnimationFactory#create\"><i class=\"material-icons\">link</i></a></h3>\n <div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/packages/animations/src/animation_builder.ts?message=docs(animations)%3A%20describe%20your%20change...#L73-L81\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n <a href=\"https://github.com/angular/angular/tree/12.0.0-next.7/packages/animations/src/animation_builder.ts#L73-L81\" aria-label=\"View Source\" title=\"View Source\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">code</i></a>\n</div>\n </div>\n </th></tr></thead>\n <tbody>\n <tr>\n <td class=\"short-description\">\n <p>Creates an <code><a href=\"api/animations/AnimationPlayer\" class=\"code-anchor\">AnimationPlayer</a></code> instance for the reusable animation defined by\nthe <code><a href=\"api/animations/AnimationBuilder\" class=\"code-anchor\">AnimationBuilder</a></code>.<code>build()</code> method that created this factory.\nAttaches the new player a DOM element.</p>\n\n </td>\n </tr>\n \n <tr>\n <td>\n <div class=\"overload-info\">\n \n\n <code-example language=\"ts\" hidecopy=\"true\" class=\"no-box api-heading\">abstract <span class=\"member-name\">create</span>(element: any, options?: AnimationOptions): AnimationPlayer</code-example>\n\n \n\n <h6 class=\"no-anchor\" id=\"parameters\">Parameters</h6>\n <table class=\"is-full-width list-table parameters-table instance-method-overload-parameters\">\n <tbody>\n \n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>element</code>\n </td>\n <td class=\"param-type\"><code>any</code></td>\n <td class=\"param-description\">\n <p>The DOM element to which to attach the animation.</p>\n\n </td>\n </tr>\n <tr class=\"instance-method-overload-parameter\">\n <td class=\"param-name\">\n <a id=\"\"></a>\n <code>options</code>\n </td>\n <td class=\"param-type\"><code><a href=\"api/animations/AnimationOptions\" class=\"code-anchor\">AnimationOptions</a></code></td>\n <td class=\"param-description\">\n <p>A set of options that can include a time delay and\nadditional developer-defined parameters.</p>\n<p> Optional. Default is <code>undefined</code>.</p>\n\n </td>\n </tr>\n </tbody>\n</table>\n\n \n <h6 class=\"no-anchor\" id=\"returns\">Returns</h6>\n <p><code><a href=\"api/animations/AnimationPlayer\" class=\"code-anchor\">AnimationPlayer</a></code></p>\n\n \n\n\n \n\n \n</div>\n </td>\n </tr>\n \n\n \n\n \n </tbody>\n</table>\n\n \n</section>\n\n\n\n \n\n\n </div>\n</article>\n\n<!-- links to this doc:\n - api/animations\n - api/animations/AnimationBuilder\n - api/animations/AnimationPlayer\n-->\n<!-- links from this doc:\n - /api\n - api/animations\n - api/animations/AnimationBuilder\n - api/animations/AnimationFactory#animationfactory\n - api/animations/AnimationFactory#create\n - api/animations/AnimationFactory#methods\n - api/animations/AnimationOptions\n - api/animations/AnimationPlayer\n - https://github.com/angular/angular/edit/master/packages/animations/src/animation_builder.ts?message=docs(animations)%3A%20describe%20your%20change...#L66-L82\n - https://github.com/angular/angular/edit/master/packages/animations/src/animation_builder.ts?message=docs(animations)%3A%20describe%20your%20change...#L73-L81\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/animations/src/animation_builder.ts#L66-L82\n - https://github.com/angular/angular/tree/12.0.0-next.7/packages/animations/src/animation_builder.ts#L73-L81\n-->"
}