How can I create a 'scribbled' underline effect in Webflow and change its color?

Published on
September 22, 2023

To create a "scribbled" underline effect in Webflow and change its color, you can follow these steps:

  1. Add a text element: Start by adding a text element to your Webflow project. This will be the text that you want to have the "scribbled" underline effect.

  2. Style the text: Apply the desired font, size, and color to the text element. This will help create the foundation for the effect.

  3. Add the underline effect: To create the "scribbled" underline effect, you can use a combination of pseudo-elements and CSS. In the Webflow Designer, select the text element and go to the "Custom Code" section of the element's settings:

  • Add a custom class: Assign a custom class to the text element if you haven't already.

  • Add the CSS code: In the "Custom Code" section, add the following CSS code:

    ```css
    .custom-class::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 10px;
    background-color: #000; /_ Change this to the desired color _/
    z-index: -1;
    transform: skewX(45deg);
    opacity: 0.75;
    }
    ```

    This code uses the ::after pseudo-element to create the underline effect. It sets the position, size, color, and skew of the underline. You can customize these properties to achieve the desired effect.

  1. Adjust the color: To change the color of the "scribbled" underline effect, simply replace the background-color value in the CSS code with your desired color. You can use either a hex color code (#000000) or a CSS color name (black).

  2. Fine-tune the effect: You can further customize the "scribbled" underline effect by adjusting the opacity, height, and transform properties in the CSS code. Experiment with different values to achieve the desired look.

Once you've followed these steps, you should have a "scribbled" underline effect in Webflow that you can adjust and customize to fit your design aesthetic.

Additional Questions:

  • How can I create a dashed underline effect in Webflow?
  • How do I change the size of the text in Webflow?
  • Can I create custom animations in Webflow?