# svelte-transitions-fly **Repository Path**: mirrors_sveltejs/svelte-transitions-fly ## Basic Information - **Project Name**: svelte-transitions-fly - **Description**: Fly transition plugin for Svelte - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2025-09-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## DEPRECATED — As of Svelte v3, transitions are built into the main package # svelte-transitions-fly Fly transition plugin for [Svelte](https://svelte.technology). [Demo](https://svelte.technology/repl?version=2.5.0&gist=07f809dba875d3c4f85ecd47a044ec3e) ![fly-hello](https://cloud.githubusercontent.com/assets/1162160/25782007/fe173098-330f-11e7-9071-68d464ca72f0.gif) ## Usage Recommended usage is via [svelte-transitions](https://github.com/sveltejs/svelte-transitions), but you can use this module directly if you prefer. Note that it assumes an ES module or CommonJS environment. Install with npm or yarn: ```bash npm install --save svelte-transitions-fly ``` Then add the plugin to your Svelte component's exported definition: ```html {#if visible}
hello!
{/if} ``` ## Parameters `x` and `y` are the position the node will fly in from (and out to). Both default to zero: ```html
flies in from the left
``` You can also specify `delay` and `duration` parameters, which default to `0` and `400` respectively, and a custom `easing` function (which should live on your `helpers`): ```html
wheee!!!!
``` ## License [MIT](LICENSE)