Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add integrated transitions #1911

Merged
merged 1 commit into from
Dec 23, 2018
Merged

add integrated transitions #1911

merged 1 commit into from
Dec 23, 2018

Conversation

Rich-Harris
Copy link
Member

This adds four transitions — fade, fly, draw and slide — into the Svelte repo itself. It also adds the family of easing equations that are recommended for use with transitions, animations and tween.

The module matches the name of the directive:

<script>
  import { fade } from 'svelte/transition';
  let visible = false;
</script>

<label>
  <input type="checkbox" bind:checked={visible}>
  visible
</label>

{#if visible}
  <div transition:fade>
    fades in and out
  </div>
{/if}

/* store.js */
{
input: 'store.mjs',
// runtime API
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants