![list of css hover effects list of css hover effects](https://webdevtrick.com/wp-content/uploads/menu-hover-underline.jpg)
#List of css hover effects code
If you have a look at the code you will noticed that we use the psuedo element: before with an absolute positioning. The underline decoration is not actually an underline, it merely looks like one. Because we are using SCSS we set a variable that we can simply reuse throughout our code when defining the “timing” value in our transition property, this is what it looks like: $bounce: cubic-bezier(.68,-0.55.27,1.55) Creating the underline decoration You could potentially create a more controlled animation using I am however satisfied with the result from the cubic-bezier function. To achieve the effect we are going for we make sure that we overshoot the end position both in the beginning I loosely based this on of the 12 principles of animation, #5 Follow through and overlapping. Timing is arguably the most important aspect of animation, and spending time to get it right will greatly enhance the “feel” of your designs. Below you can see the cubic-bezier as seen when edited in fire-fox. We create the animation using the cubic-bezier function in CSS, this sets the timing for the animation and is really easy to create when you use the developer tools in Firefox and/or one of the online tools like . Step 3: CSS or Cascading Style Sheets is compiled with SCSS.The best thing about SCSS is that it provides the Compiled CSS with browser support which makes it compatible across major browsers. It’s important to note that the line animates from the center of the link outwards. Next up we create the underline effect using CSS. Take note that all the code can be found in the codepen, and if you don’t understand SCSS you can use the drop down arrow in codepen to view the compiled CSS.