miii / vue-lettering

✏ Web typography tool for Vue to split text into pieces for CSS selection with ease.
https://miii.github.io/vue-lettering
MIT License
11 stars 0 forks source link

Improve SSR support #41

Open miii opened 4 years ago

miii commented 4 years ago

As for now, the actual DOM manipulation is always performed client-side as the current implementation of the directive requires the document context. While loading, a data-lettering="loading" attribute is added to the elements to hide it before the directive is bound.

A future implementation may use VNode manipulation natively to remove the document dependency.

am0 commented 4 years ago

I'm getting a Cannot add property data-lettering, object is not extensible error while using this with the occasional Nuxt project I do, so this would be greatly appreciated! 👍