Skip to content

Replace Docs home Rive animation with HTML/CSS - #6564

Open
fern-api[bot] wants to merge 1 commit into
mainfrom
fern/docs-home-rive-to-css
Open

Replace Docs home Rive animation with HTML/CSS #6564
fern-api[bot] wants to merge 1 commit into
mainfrom
fern/docs-home-rive-to-css

Conversation

@fern-api

@fern-api fern-api Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Replaces the Rive canvas animation for the Docs product card on the home page with an HTML/CSS implementation that mirrors the original animation.

What changed

  • fern/products/home/pages/welcome.mdx: swapped the #docs-rive-canvas block for an HTML mockup (.docs-mockup) that reproduces the documentation-UI layout: brand + search bar, top-right controls, tabs, sidebar with an active item and GET/POST endpoint rows, a content title, hero image, and paragraph lines. The card's /docs/getting-started/overview link is preserved.
  • fern/assets/styles.css: added the mockup styles. The layout uses the original 404x262 artboard coordinate system (font-size: calc(100cqw / 404), 1em == one artboard unit) so it scales fluidly to the card width. A staggered fade + rise build-in (@keyframes dm-in) mirrors the Rive intro, with per-element animation-delay. Light/dark theming via CSS variables, plus prefers-reduced-motion support.
  • fern/products/home/pages/images/docs-hero.png: grayscale hero image extracted from the existing Docs fallback SVG (no new external asset).
  • fern/rive-animation.js: removed the now-unused Docs Rive initialization. SDK and Ask Fern Rive animations are untouched.

Verified with fern check (0 errors) and previewed in both light and dark themes.

Requested by: Fern Support

@fern-api
fern-api Bot requested a review from devalog as a code owner August 7, 2026 15:29
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://fern-preview-fern-docs-home-rive-to-css.docs.buildwithfern.com/learn

Here are the markdown pages you've updated:

@fern-api

fern-api Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

Requested by: kapil.gowru
Slack thread: View conversation

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.

0 participants