CSS 文字装饰 text-decoration & text-emphasis · Issue #103 · chokcoco/iCSS

PHOTO EMBED

Thu Apr 29 2021 07:32:10 GMT+0000 (Coordinated Universal Time)

Saved by @ycljcfer

.transition {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 0.1em;
    cursor: pointer;
    transition: .5s;

    &:hover {
        text-decoration-color: pink;
        text-decoration-thickness: 0.15em;
        color: pink;
    }
}

/* <p class="trasition"></p> */
content_copyCOPY

https://github.com/chokcoco/iCSS/issues/103