Skip to content

Add browser UI fade-in transition animation#32

Merged
ovsky merged 4 commits intomainfrom
feature/ui-ux/initial-aniamtion
Nov 25, 2025
Merged

Add browser UI fade-in transition animation#32
ovsky merged 4 commits intomainfrom
feature/ui-ux/initial-aniamtion

Conversation

@ovsky
Copy link
Owner

@ovsky ovsky commented Nov 25, 2025

This pull request introduces a CSS-based fade-in animation for the main content across multiple HTML pages in the assets directory, improving the user experience by providing a smoother visual transition on load. Additionally, it removes global CSS transitions that previously affected all elements, and makes a Windows-specific improvement to ensure the browser window background is consistently dark, eliminating any white flashes during startup. Minor code cleanups and structural adjustments are also included.

Fade-in Animation Implementation:

  • Added a ul_fade_in keyframe animation to fade in the main content on load for all major HTML files (contextmenu.html, downloads-panel.html, downloads.html, history.html, menu.html, new_tab_page.html, quick-inspector.html, release_notes.html, static-sties/google-static.html) and in the shared stylesheet ui.css. The animation is applied to the body or main content container, ensuring a smooth appearance. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19]

Removal of Global Transitions:

  • Removed the global transition: all 0.2s ease-in-out; rule from all stylesheets and HTML files to prevent unwanted transitions on every element and improve performance. [1] [2] [3] [4] [5] [6]

Windows-Specific Dark Background Enhancement:

  • In Browser.cpp and Browser.h, added logic to set the native window class background to a dark color on Windows, ensuring the title bar and any unpainted areas remain dark, and properly releasing resources on destruction. [1] [2] [3]

Minor Code and Structure Cleanups:

  • Added/cleaned up empty <script> tags and removed commented-out or unused code in several HTML files for better maintainability. [1] [2] [3] [4] [5] [6] [7] [8]
  • Minor visual and accessibility tweaks in ui.html, such as removing unnecessary comments and ensuring dropdowns and icons are more clearly structured. [1] [2] [3]

These changes collectively improve the visual polish and user experience of the browser UI, especially on first load and on Windows systems.

Introduces a CSS-based fade-in effect for the body element in menu.html and google-static.html using keyframes and animation properties. This improves visual appearance on load without requiring JavaScript.
The /crashdumps directory is now ignored by git to prevent accidental commits of crash dump files.
Introduces a CSS-only fade-in effect for multiple HTML assets by animating opacity on page load. Removes global transition styles and ensures fade-in is handled via keyframes, with no JavaScript required. For google-static.html, the fade-in is applied only to the main content to avoid a white flash. Updates ui.css and references to the animation in ui.html.
Eliminated unnecessary HTML comments about CSS fade-in animations across multiple asset files for cleaner markup. Improved dark mode consistency by ensuring the native window background is dark on Windows, including proper resource cleanup in Browser class. Minor CSS and HTML cleanups for unified style.
@ovsky ovsky merged commit 2d8de7a into main Nov 25, 2025
6 checks passed
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.

1 participant