You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 8, 2017. It is now read-only.
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;
}
}
The text was updated successfully, but these errors were encountered:
nihonjinrxs
pushed a commit
to nihonjinrxs/data-driven-government
that referenced
this issue
Jul 2, 2016
I think we can improve the animation on the
.sidebar-nav a
elements by transitioning both thebox-shadow
andpadding
properties instead of relying on the globaltransition: .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:
The text was updated successfully, but these errors were encountered: