Lay Theme Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    wavy underline

    General Discussion
    2
    3
    578
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      ccastells last edited by

      Hello, I am trying to add this style of underlining into the site but doesn't seem to be working. Could someone help me please? Thanks! :)

      https://codepen.io/daviddarnes/pen/OgaRYw?q=animate underline&order=popularity&depth=everything&show_forks=false

      http://andrei-lascu.com

      1 Reply Last reply Reply Quote 0
      • mariusjopen
        mariusjopen Global Moderator last edited by

        Hi @ccastells
        I looked at the code and it seems simple.

        Can you show what you already did?

        Many wishes!!

        Marius

        www.mariusjopen.world

        C 1 Reply Last reply Reply Quote 0
        • C
          ccastells @mariusjopen last edited by

          Hi @mariusjopen ,
          I copied the css into the custom css & html page:

          a {
          text-decoration: none;
          position: relative;
          padding-bottom: 1em;
          overflow: hidden;
          color: white;
          &:after {
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          white-space: nowrap;
          content: attr(data-text)attr(data-text);
          color: transparent;
          line-height: 1.8;
          text-decoration: underline;
          text-decoration-style: wavy;
          text-decoration-color: #ffc823;
          }
          &:hover:after {
          animation: wavy-slide 3s linear infinite;
          }
          }

          @keyframes wavy-slide {
          to {
          margin-left: -51%;
          }
          }

          But it doesn't seem to work... :s
          I also tried changing the &:after/&:hover to a:after/a:hover, but again didn't work.

          I've set the underline stroke to 1px in the customise section so you can see where the links are.
          http://andrei-lascu.com/info/

          Any idea of how I can fix it?

          Many thanks!!! :)
          Carlota

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Before you post

          Use the Search Feature. Maybe there is already a solution to your issue.

          1. Update Lay Theme and all Lay Theme Addons
          2. Disable all Plugins
          3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
          4. Now see if your problem solved itself
          5. Go here, see if your problem is listed here:
          Troubleshooting

          When you post:
          1. Post a link to where the problem is
          2. If the problem is difficult to explain, post screenshots / link to a video to explain it

          Thanks!

          Online Users

          C

          Recent Topics

          • C

            image carousel bugging out

          • N

            help needed with cleaning up and optimising lay theme portfolio website

          • R

            Html5 Video Player issue

          laytheme.com