Skip to content
This repository was archived by the owner on Dec 8, 2017. It is now read-only.

Improve .sidebar-nav a Hover Animation #59

Closed
mattrothenberg opened this issue Apr 29, 2016 · 0 comments
Closed

Improve .sidebar-nav a Hover Animation #59

mattrothenberg opened this issue Apr 29, 2016 · 0 comments

Comments

@mattrothenberg
Copy link

mattrothenberg commented Apr 29, 2016

I think we can improve the animation on the .sidebar-nav a elements by transitioning both the box-shadow and padding properties instead of relying on the global transition: .4s which is currently in place.

As it stands, the border style that gets added on hover (border-left: 4px solid #1188ff) is causing the animation to be very laggy.

My proposal:

.sidebar-nav a {
    /* omitting other styles */
    box-shadow: none;
    transition: all .4s ease-out;

    &:hover {
        padding-left: 15px;
        box-shadow: inset 4px 0 0 #1188ff;
    }

}
nihonjinrxs pushed a commit to nihonjinrxs/data-driven-government that referenced this issue Jul 2, 2016
[WIP] Use GuidesStyle18F.update_theme
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant