您可以在 github 页面帐户上使用 Lottie-Files / bodymovin

Can you use Lottie-Files / bodymovin on a github pages account

BodyMovin / LottieFiles - 要求您将 After Effects 动画以 JSON 格式存储在您的服务器上。

因为 GitHub Pages 是一个没有后端的静态站点,这是否意味着您不能将 LottieFiles 与 GitHub Pages 一起使用?

如果可以的话,有没有人有这样做的例子 -

我将 bodymovin 与 Json After Effects 文件一起使用到 运行 其他网站上的动画,而不是 github 页面

does this mean that you cannot use LottieFiles with GitHub Pages?

是的,即使在 <lottie-player> 元素中声明为网络播放器,lottiefile 也不会被 GitHub 解释。

一个 alternative/workaround 将在您的 GitHub 页面中 embed a video 以显示动画的外观。
有可能with Jekyll-pages.