Replace Docs home Rive animation with HTML/CSS - #6564
Open
fern-api[bot] wants to merge 1 commit into
Open
Conversation
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: |
Contributor
Author
|
Requested by: kapil.gowru |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-canvasblock 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/overviewlink 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-elementanimation-delay. Light/dark theming via CSS variables, plusprefers-reduced-motionsupport.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