Skip to content

Replace 'transition: all' on * with targeted transitions #7

Description

@BharathASL

Problem

scss/ui.scss line 8 applies a blanket transition to every element:

* {
    transition: all 0.5s;
}

This forces the browser to check every CSS property of every element on any state change, causing layout thrashing and unnecessary paints. The skills section partially overrides this with transition: all 0.2s but still uses all.

Fix

Replace the wildcard rule with targeted properties:

* {
    transition: color 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}

This limits transitions to properties that actually change, avoiding layout reflows on every interaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions