Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Border thickness transition

Is there a way to ease-in-out between 2 border thicknesses?

My code:

nav a {
border-bottom: 1px solid #AADA4B;
}


nav a:hover {
border-bottom: 3px solid #AADA4B;
}

Thanks very much for the help. Sam.

like image 832
Sam Avatar asked Mar 12 '13 19:03

Sam


People also ask

How does border thickness change?

Select one or more cells that have a border that you want to change. Right-click over the cells you've chosen and select Format Cells and, in the popup window, click the Border tab. For a continuous line, choose one of the thicker styles from the Line box. In the Presets section, click your existing border type.

What is the minimum thickness for border lines?

The recommended Line weight for the 'Drawing frame' (Border) for engineering drawings is 0.7mm.

What is thickness of border line?

border-width: thin medium thick 10px;right border is medium. bottom border is thick. left border is 10px.


1 Answers

Sure, just transition border or border-width on the a element:

nav a {
/* -moz-, -o-, -webkit- prefixes omitted for brevity */
transition: border-width 0.1s ease-in-out;
border-bottom: 1px solid #AADA4B;
}
like image 85
BoltClock Avatar answered Oct 28 '22 06:10

BoltClock