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

feat: add ssr support #3

Merged
merged 13 commits into from
Sep 6, 2024
Merged

feat: add ssr support #3

merged 13 commits into from
Sep 6, 2024

Conversation

ivodolenc
Copy link
Owner

Type of Change

  • New feature

Request Description

SSR-Ready 🥳🎉

Adds native SSR support for all full-stack meta frameworks such as SvelteKit, Next, Nuxt and others that use server-side rendering under the hood.

So, Effekt can now be safely imported in all environments (ssr/client) without additional configs and will not cause possible server issues (500 undefined etc).

import { animate } from 'effekt'

animate('.el', {
  x: [0, 600, 300],
  background: ['#cf3', '#0df'],
  duration: 1,
})

Of course, client-side rendering works normally as expected.

@ivodolenc ivodolenc added the feat New feature label Sep 6, 2024
@ivodolenc ivodolenc merged commit b4a5146 into main Sep 6, 2024
@ivodolenc ivodolenc deleted the feat/ssr branch September 6, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant