html - Overlap of text on SCSS Transitions -


(works only for web-kit browsers)

I am creating a navigation with those links that become widespread and show the text once you hover over them. All this works correctly except for an issue; If the mouse is taken away from the button, the text will not be adequately disappeared and the second part will be pushed under the button (and looks very ugly!).

I am struggling to find a solution to this problem, I have tried to set the width and height of the spans to 0, as well as speed up the transition from which the text disappears quickly But do not work ..

HTML:

  & lt; NAV & gt; & Lt; ul id = "item" & gt; & Lt; Li & gt; & Gt; & Lt; Span class = "extra" & gt; View & lt; / Span & gt; & Lt; / li & gt; & Lt; Li & gt; + & lt; Duration class = "extra" & gt; And added lt; / Span & gt; & Lt; / li & gt; & Lt; / Ul & gt; & Lt; div id = "search" & gt; & Lt; Input type = "text" ng-model = "typed" /> & Lt; / Div & gt; & Lt; / Neo & gt;   

SCSS: nav {width: 100%; Padding: 6px 6px 4px 6px; Status: fixed; Top: 0; Background color: #dde; Div {Display: Inline-Block; float right; Padding: 4px 15px 4px 5px; }} Ul # item {float: left; Li {Display: Inline-Block; Padding: 5px 10px; Background color: #EF; Color: # 99A; Width: 10px; Height: 20px; Hidden flurry; -webkit-transition: width 0.2s linear, color 0.5s linear, background color 0.5s linear; } Li: Hover {background-color: #ccd; Color: # 778; Width: 45px; Cursor: indicator; } Li: hover span {opacity: 1; Visibility: visible; } Period {Opacity: 0; Font-size: 14px; Padding-left: 8px 5px; -WebKit-Infection: Opacity .25S Linear, Visibility.1 S. Linear .3s; Visibility: hidden; }}

If you have #items li {white-space: pre; } , Lee's content will not be wrapped, and the label will appear after + while increasing, and while shrinking it will disappear without disturbance.

View

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -